on 08-02-2008 1:13 PM
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
Hi,
Inside your JSP,
<%
String strSessionVar=null;
if(session.getAttribute("AttributeName")!=null)
{
strSessionVar=(String)session.getAttribute("AttributeName");
}
%>
Regards,
Srinivas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check with
session.getAttribute("");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.