• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to run JSP  RSS feed

 
Niyas Ahmed Sheikh
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to run some example JSP. For that web.xml file is needed. If so, how to configure the mapping. For sevlet, we are using


For running JSP what needs to be done in the above xml file. Is there any JSP-name, JSP-class...like that.

Another doubt, for each JSP we have to write the web.xml? is there any other shortcut is available to avoid it?
 
Sravan Kumar
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To run a JSP, you do not need to do anything with web.xml .. Just create a folder named WEB-INF under the context root, so it will be recognized as a web application. You can access the JSP directly this way: http://<host>:<port>/<context>/<jspname.jsp>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!