reset password
Author Message
AldoGil
Posts: 19
Posted 17:11 Mar 12, 2020 |

My program works fine in the eclipse browser but when I upload it to the server, when I click next, it doesn't find the servlet file. I'm simply using the name of the file in the "a" tag as the reference <a href="name of servlet"

cysun
Posts: 2935
Posted 17:20 Mar 12, 2020 |

Use a relative URL for the Next link.

AldoGil
Posts: 19
Posted 17:27 Mar 12, 2020 |

Isn't that the way to do relative?

<a href="DrivingTestBrowser">Next</a>

cysun
Posts: 2935
Posted 17:28 Mar 12, 2020 |
AldoGil wrote:

Isn't that the way to do relative?

<a href="DrivingTestBrowser">Next</a>

Yes, it is.

AldoGil
Posts: 19
Posted 17:30 Mar 12, 2020 |

It's not working. Now when I go to 

http://cs3.calstatela.edu:8080/cs3220stu05/DriverTestBrowser

I get 404 immediately instead of getting to the first page and clicking next then getting 404.

cysun
Posts: 2935
Posted 17:32 Mar 12, 2020 |

Check the URL mapping of your servlet.

arthur.naullet
Posts: 3
Posted 18:15 Mar 12, 2020 |

Sir, I've make a printer  in my class instead of JSP is that wrong because every is working well ?

cysun
Posts: 2935
Posted 18:19 Mar 12, 2020 |
arthur.naullet wrote:

Sir, I've make a printer  in my class instead of JSP is that wrong because every is working well ?

Not sure what you meant by "make a printer".

The assignment says "your implementation must use the MVC architecture discussed in class", so yes, you must use a JSP (and you can't use JSP scripting elements).

arthur.naullet
Posts: 3
Posted 18:24 Mar 12, 2020 |

Oh sorry we got some issues with Zoom..

fyang15
Posts: 35
Posted 19:27 Mar 12, 2020 |

How do you embed the index increment code? I couldn't figure it out.