• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I get the requested url?

 
ashley stewart
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used Apache Tiles for that kind of templating. There are several other commonly-used templating frameworks.
 
ashley stewart
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, that looks like exactly what I need!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic