Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

bean:include tag help

 
jayanandan thiagarajan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai
here i am using bean:include tag to load the content of the another jsp file.As every one knows this is just like <jsp:include> tag.But the thing i want to know is i couldn't access the jsp page's response as i expected .
Coz , jsp:include tag returns the result of jsp page but bean:include returns the String format of the entire page as itself.But in the material they written only diff is struts bean tag will store the result in the page scope attribute,but the jsp include tag will write into the output stream.
And one more thing i couldny access the jsp page while i maintain all the jsp pages in private.Even i try to retrive the jsp page within the module relative page.I tried page,forward tags .
Please help me .Thanks in advance for ur help.
 
Purushoth Thambu
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your included page depends on certain HttpServletRequest attributes (like parameter or header)? When the included page is invoked the HttpServletRequest object is created, existing HttpServletRequest is not passed to the included JSP file. Just make sure the included page is not depended on the HttpServletRequest parameter if it is dependent then include them in the URL of the included page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic