aspose file tools*
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
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: 18911
    
    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!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How do I get the requested url?