• Post Reply Bookmark Topic Watch Topic
  • New Topic

One JSP question

 
amit sanghai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have a set of customized web pages for a User and there is information which is going to be repeated across the pages, how the repetition of code can be avoided ?
Can I use <jsp:include > for this?
 
Bhushan Jawle
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can factor out common code into a page and use <jsp:include> if you need the page to be included during request as against during translation which can be done by using <%@include file="a.html"%>
Regards,
Bhushan
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!