wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "bean:include tag help" Watch "bean:include tag help" New topic
Author

bean:include tag help

jayanandan thiagarajan
Greenhorn

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

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.
 
 
subject: bean:include tag help
 
Similar Threads
Conditional includes
response.sendRedirect is not working
losing request objects with include
to Inclue jsp page in another using jsf
Strut's bean:include and jsp's jsp:include tag