Hi Andy

A session variable can be "expensive". Why not just put it on the request by
using "request.setAttribute" in one action and getting it again using
"request.getAttribute" in another action?

What is your "parameter"? A simple type, object, graph of objects?




----- Original Message ----- 
From: "andy wix" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 30, 2004 1:03 PM
Subject: NEWBIE: How to pass parameters between JSPs


> Hi,
>
> It's probably better to store them in the session rather then passing from
> page to page.
> In Login action:
>
>         HttpSession session = request.getSession();
>          session.setAttribute("YourParams", params);
>
> and get them in the next page:
>
>          YourClass xxx = (YourClass)session.getAttribute("YourParams");
>
> regards,
> Andy
>
> _________________________________________________________________
> Express yourself with cool new emoticons
http://www.msn.co.uk/specials/myemo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to