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

Values to be passed from a string to a JSP session using session object.

Dear Developers,

i have a aspx page which is returns a variable in a session for example: Session("EmpDis")

which displays name. Now i want to extract that value from the session and display in my JSP page.

The Data Exchange is being done Using the Session Object .

Once i get this value i will pass this value to an RFC which will give me certain detials

Please do help me how do i extract that value from the session and display in my JSP page.

Thanks and Regards,

Soumyadeep.

Full points will be given, thanks in advance

Edited by: Soumyadeep Ghosh on Aug 2, 2008 2:15 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2008 at 02:56 PM

    check with

    session.getAttribute("");

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 03, 2008 at 08:45 AM

    Soumyadeep Ghosh

    Please try one of these,

    <% String strSession = session.getAttribute("sessVar");

    %>

    or

    <% String strSession = session.getValue("sessVar");

    %>

    Here sessVar is name of the session variable . the value is null by default

    Ram

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 04, 2008 at 05:03 AM

    Hi,

    Inside your JSP,

    <%

    String strSessionVar=null;

    if(session.getAttribute("AttributeName")!=null)

    {

    strSessionVar=(String)session.getAttribute("AttributeName");

    }

    %>

    Regards,

    Srinivas.

    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.