Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Setting the path of servlet and jsp pages

 
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67618
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The base of your web app should be the folder containing WEB-INF.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic