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
Pie
Posts: 65335
97
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.
 
    Bookmark Topic Watch Topic
  • New Topic