session.setAttribute("file", temp);
vs.
request.getAttribute("file");
you know that request and session are different scopes?
change the second line to request.getSession().getAttribute("file");
regards
leon
On 10/11/05, Chris Pat <[EMAIL PROTECTED]> wrote:
> Hello
> When I use the code below the Action "playThis" claims
> the file attribute is null. It is not unless I am
> loosing the session on the findforward. How can I
> store a value in the session and forward to an Action?
> The first line of the "playThis action is String file
> = (String) request.getAttribute("file"); so why is
> attribute null? Any enlightment welcomed.
>
> System.out.println("file= "+temp);
> session.setAttribute("file", temp);
> return actionMapping.findForward("playThis");
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> 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]