dimanche 10 mai 2015

Access to the JSP pages place in subfolders under WebContent folder

I want to deploy some jsp scripts on the Server. I'm using Apache Tomcat. If I put my script, called request.jsp, inside WebContent folder all it's correct. To access it, the URL were: http://localhost:8080/MyService/resquest.jsp. But the problem is that I want to change the URL, for example, I want the URL will be: http://localhost:8080/MyService/rest/request.jsp. So, to do that, I thought that it only was necessary to create the folder rest inside WebContent and then put the script inside this subfolder. But I'm wrong because it doesn't run and the server return to me an 404 http error, so the URL cannot be found.

What is the way to do this? Any comment is greatly appreciated. Thanks so much

Aucun commentaire:

Enregistrer un commentaire