Bookmark Topic Watch Topic
  • New Topic

Passing variable value from a JSP file to another JSP file embedded within the first

 
Ankit Gandhi
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Report post to moderator
How can we pass a session variable from one JSP which is in a portletSession, to another JSP which we are calling from an IFRAME present in the same JSP.


E.g. "sequenceReports.jsp" has an IFRAME which is defined as �

<IFRAME name="avlReportssource" id="avlReportssource" height= "400" width= "300" marginheight="3" frameborder="0" src='<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/jsp/ebip/ebipadmin/reportadmin/reports/availReports.jsp") %>'>
</IFRAME>

Here we are using �availReports.jsp� to populate the IFRAME. We are using Portlets, and sequenceReports.jsp is present in the PortletSession.

We have a variable in the session, which we want to use in availReports.jsp. In which way can this be done?

We have tried getting the session variable through request object in availReports.jsp, but didn�t get any results.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65663
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!