This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Including files using the deployement descriptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Including files using the deployement descriptor" Watch "Including files using the deployement descriptor" New topic
Author

Including files using the deployement descriptor

Asha Pathik
Ranch Hand

Joined: Feb 08, 2006
Posts: 143
Hi all,

I have written the following code in "web.xml" to include "header.jsp" and "footer.jsp" in all the jsp files in the application but it is not working.Is there something wrong with the code?


Asha


SCJP 1.5
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60732
    
  65

Where did you place the header.jsp and footer.jsp files?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Asha Pathik
Ranch Hand

Joined: Feb 08, 2006
Posts: 143
both the files are in webapps folder.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60732
    
  65

They should be in the root folder of the web app.
 
 
subject: Including files using the deployement descriptor
 
Similar Threads
Possible to selectively exlucde a file from having the prelude and coda?
new include tags
Adding prelude-include seems to break default welcome file list
context root
jsp-config prelude and coda