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

Setting the path of servlet and jsp pages

 
JayaSiji Gopal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a web application which has the following directory structure:



I have my web.xml as follows:



What changes should I do to web.xml so that -

1) after logging into the application, index.jsp is displayed.
2) when i click on any link on index.jsp, it finds the servlet and shows up the next right jsp page with the styles.

index.jsp is -



I have pasted only important pieces of index.jsp.

Right now, what happens is -

1)i login, it does not find index.jsp and it shows up directory structure on the browser as jsp and styles.
2) i click on jsp, it shows up index.jsp, but does not find the stylesheet.
3) in index.jsp, i click on add mcd user, it finds add_mcd_user.jsp but no stylesheet.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64708
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The base of your web app should be the folder containing WEB-INF.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic