Skip to Content
author's profile photo Former Member
Former Member

Trying to pass data to a JSP

Hi all,

I am trying to pass data from my iView to a JSP which is opened as popup. The JSP is not in pagelet but in the dist folder. I tried several ways (e.g. servletRequest.setAttribute or httpSession.putValue) but had no success. Anytime I want to read the values from within the JSP they are null.

The data I want to pass is rather long (a complete HTML page), so GET is not suitable.

Any ideas?

Kind regards

Francisco

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2004 at 02:25 PM

    Hello,

    In the 1st page :

    session.setAttribute("myVar",myVarValue);

    In the popup :

    String myVar=(String) session.getAttribute("myVar");

    If myVarValue is your data, you will have it in myVar inn your popup. You can do that with other object type.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.