• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

bean:include tag help

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic