Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where to put JSP

 
sandeep kumar jangra
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everybody, I m new to jsp and tomcat. when i store my application in examples folder in tomcat webapps then everything works fine but when i put it in webapps folder it gives error 404. Where shud I put my application. do I need to do anything so that my files run from webapps.
kindly help and tell full procedure
thanx in advance
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since this is a Tomcat setup issue, moving to the Tomcat forum.
 
Tim Baker
Ranch Hand
Posts: 541
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, the jsp-examples folder is a context. if you want them in another folder, you create another context. so read a tomcat tutorial on how to create contexts in your tomcat configs. If you want them to just show up in the root of your server ie http://localhost:8080/my.jsp then you can just put them in the ROOT folder and you can safely delete whats already in there. Thats proably the easiest solution
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic