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 How do I get the requested url? 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 "How do I get the requested url?" Watch "How do I get the requested url?" New topic
Author

How do I get the requested url?

ashley stewart
Greenhorn

Joined: May 21, 2010
Posts: 7
I want to put the requested url into the includes statement so that I can have one template jsp page with the header and footer etc in it and just have the server include content from the requested file for each webpage, so that I don't have to edit every single web page if I change the name of an included file for example. How do I do this?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

I used Apache Tiles for that kind of templating. There are several other commonly-used templating frameworks.
ashley stewart
Greenhorn

Joined: May 21, 2010
Posts: 7
Thanks, that looks like exactly what I need!
 
Don't get me started about those stupid light bulbs.
 
subject: How do I get the requested url?
 
Similar Threads
method POST not allowed
java.net.HttpURLConnection
redirecting a logged in user to the previous page
calling java files from jsp page
LDAP authentication + filter + redirect = mess