Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: session scoped beans


Message #1 by "COSKAN GUNDOGAR" <cgundogar@t...> on Tue, 21 Aug 2001 12:23:30 +0200
boss
u can easily get the value....

nothing worng in that

servlet has method
HttpServlet aa=3Drequest.getSession(false);
aa.put("name","value");

then retrive it by

get method




On Tue, 21 Aug 2001 COSKAN GUNDOGAR wrote :
>
>hi i want to ask about session tracking
>
>for example i have a bean whic is declared as
><jsp:usebean id="example" name="x_pck.ExampleBean" 

>scope="session"/>
>
>then i use this bean in a page and i set the variables 
>for that bean
>
>and i want to ask you that how can i use this variables 
>in another pages in
>that session.  because it must have a meaning to 
>declare it session scope.
>
>do i have to use session.putValue("example") and get it 
>with session.getValue("example")
>
>or can i declare it with the same id  as <jsp:usebean 
>id="example" name="x_pck.ExampleBean" scope="session"/>
>and reach the variables of that class
>
>please help me for my question.



  Return to Index