You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Pani R <pa...@lycos.com> on 2004/02/11 21:10:45 UTC

[OT] - Request against Session

Hi:

I have a very basic question which is related to a User Registration Process. Lets assume the user registration process spans across 4 pages. User is obviously not logged in to the system and apparently viewing all the content belonging to the public. 

Now, when the un-logged user tries to register, where am I suppose to store the Registration Values, Session or Request? Which one will be the better approach and why?

I'm trying to store it in Request as I thought the Session should be created only after completion of the User Registration process (obviously I create a session and log him in). But, again, when I try to pass the Java object through hidden fields, I get null in my action class. Is there any specific way of pass Jabva Objects in Hidden Fields?

I appreciate any response.

Regards,
Pani



____________________________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: [OT] - Request against Session

Posted by Navjot Singh <na...@net4india.net>.
first some clear thoughts.
1. In html everything is string. it doesn't understand anything else.
2. Session is created the first time the user has sent in a request unless
you have overridden this behavior.
3. If user disables cookies (rare case now a days), storing objects in
session is futile exercise.

Use of session or request varies on requirements basis.

1. Start with first form, collect values, pass as hidden values to second
form and so on
2. Start with first form, collect values, save to session and so on

HTH
Navjot Singh

>-----Original Message-----
>From: Pani R [mailto:pani_rd@lycos.com]
>Sent: Thursday, February 12, 2004 1:41 AM
>To: Struts Users Mailing List
>Subject: [OT] - Request against Session
>
>
>Hi:
>
>I have a very basic question which is related to a User
>Registration Process. Lets assume the user registration process
>spans across 4 pages. User is obviously not logged in to the
>system and apparently viewing all the content belonging to the public.
>
>Now, when the un-logged user tries to register, where am I suppose
>to store the Registration Values, Session or Request? Which one
>will be the better approach and why?
>
>I'm trying to store it in Request as I thought the Session should
>be created only after completion of the User Registration process
>(obviously I create a session and log him in). But, again, when I
>try to pass the Java object through hidden fields, I get null in
>my action class. Is there any specific way of pass Jabva Objects
>in Hidden Fields?
>
>I appreciate any response.
>
>Regards,
>Pani
>
>
>
>____________________________________________________________
>Find what you are looking for with the Lycos Yellow Pages
>http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/de
>fault.asp?SRC=lycos10
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


AW: [OT] - Request against Session

Posted by Oliver Thiel <th...@gmx.de>.
Hi Pani,


I store the registration values in a DTO/VTO and put them in
session scope. For the registration process the session is 
(called: REGISTER:), when the registration process is completed 
I invalid this session and create a new session (called: USER), 
which is necessary to see the other pages.


Hope that helps
Oliver




-----Ursprüngliche Nachricht-----
Von: Pani R [mailto:pani_rd@lycos.com] 
Gesendet: Mittwoch, 11. Februar 2004 21:11
An: Struts Users Mailing List
Betreff: [OT] - Request against Session

Hi:

I have a very basic question which is related to a User Registration
Process. Lets assume the user registration process spans across 4 pages.
User is obviously not logged in to the system and apparently viewing all
the content belonging to the public. 

Now, when the un-logged user tries to register, where am I suppose to
store the Registration Values, Session or Request? Which one will be the
better approach and why?

I'm trying to store it in Request as I thought the Session should be
created only after completion of the User Registration process
(obviously I create a session and log him in). But, again, when I try to
pass the Java object through hidden fields, I get null in my action
class. Is there any specific way of pass Jabva Objects in Hidden Fields?

I appreciate any response.

Regards,
Pani



____________________________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default
.asp?SRC=lycos10

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org