Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to run JSP  RSS feed

 
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?
 
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>
 
if you think brussel sprouts are yummy, you should try any other food. And this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!