|
Home > Archive > EAserver > April 2005 > Session Tracking
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Camila 2005-04-13, 3:24 am |
| Hi,
i am facing session tracking problem pls help me out .......
i have 2 jsp's.
thru first jsp i am trying to set an attribute.
and i want to get that attribute in the second jsp.
when i try to get the value in the first jsp i am getting the value, but if i
try to get in the second jsp i am unble to get it.
i am including my jsp's pls help :
-------FIRST JSP Starts here --------------
<%@ page import = "SessionManager.*" %>
<%
String ls_log = "AB" ;
session.setAttribute( "theName", ls_log );
%>
<HTML>
<body>
<a href="2.jsp">Testing session </a>
</body>
</HTML>
-------First JSP Ends here -------------------
---------Second JSP Starts here ----------------
<%@ page import = "SessionManager.*" %>
<HTML>
<body>
<%
String session_theName = (String )session.getAttribute( "theName");
out.println("<BR>"+session_theName) ;
%>
</body>
</html>
------------Second JSP ends here ---------------------------
Pls guide .
---== Posted via the PFCGuide Web Newsreader ==---
http://www.pfcguide.com/_newsgroups/group_list.asp
| |
| Dean Jones 2005-04-14, 8:25 pm |
| What's the full URL you are calling?
--
Dean Jones [TeamSybase]
CEO
Certified PowerBuilder Developer
www.powerobjects.com
(612) 339-3355 ext 112
Don't miss this years seminar http://seminar.powerobjects.com
"Camila" <cams@cams.com> wrote in message news:425cb25c$1@foru
ms-2-dub...
> Hi,
> i am facing session tracking problem pls help me out .......
> i have 2 jsp's.
> thru first jsp i am trying to set an attribute.
> and i want to get that attribute in the second jsp.
>
> when i try to get the value in the first jsp i am getting the value, but
> if i
> try to get in the second jsp i am unble to get it.
>
> i am including my jsp's pls help :
>
> -------FIRST JSP Starts here --------------
> <%@ page import = "SessionManager.*" %>
> <%
> String ls_log = "AB" ;
> session.setAttribute( "theName", ls_log );
> %>
> <HTML>
> <body>
> <a href="2.jsp">Testing session </a>
> </body>
> </HTML>
>
> -------First JSP Ends here -------------------
>
>
> ---------Second JSP Starts here ----------------
> <%@ page import = "SessionManager.*" %>
> <HTML>
> <body>
> <%
>
> String session_theName = (String )session.getAttribute( "theName");
> out.println("<BR>"+session_theName) ;
> %>
> </body>
> </html>
>
> ------------Second JSP ends here ---------------------------
>
> Pls guide .
>
> ---== Posted via the PFCGuide Web Newsreader ==---
> http://www.pfcguide.com/_newsgroups/group_list.asp
|
|
|
|
|