reset password
Author Message
Wesleyla2011
Posts: 4
Posted 00:47 Apr 10, 2014 |

I uploaded every needed on cs3 and test the url : http://cs3.calstatela.edu/cs320stu26/HelloServlet. and it works. How can I change it to work on url: http://cs3.calstatela.edu/cs320stu26/lab1/HelloServlet

acervantes
Posts: 28
Posted 00:49 Apr 10, 2014 |

You will need to update your web.xml file by adding a URL Mapping to "/Lab1/HelloServlet" for your Servlet.

plakhan
Posts: 37
Posted 09:16 Apr 10, 2014 |

You can also add the a line of code before the class HelloServlet. Just put @WebServlet(/lab1/HelloServlet). Hopes this works.

Also the URL which you have mentioned will not work, unless you put the default port i.e.8080 in the URL.

So idealy the URL will be "hhtp://cs3.calstatela.edu:8080/<user_name>/Servlet Class"