File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes bean:include tag help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "bean:include tag help" Watch "bean:include tag help" New topic

bean:include tag help

jayanandan thiagarajan

Joined: Apr 27, 2006
Posts: 21
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

Joined: May 24, 2003
Posts: 425
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.
I agree. Here's the link:
subject: bean:include tag help
It's not a secret anymore!