struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Pat <cpa...@yahoo.com>
Subject Re: findforward w/session objects
Date Wed, 12 Oct 2005 14:13:11 GMT
Hi Geeta
Thank you.  Even though it is a major point, I am
getting killed by syntatic problems.  I know the
sophisticated issues but the "blocking & tackling" is
my present downfall.  I feel like I am the teacher and
student in the Jaime Escalante story, grin.

--- gramani@intellicare.com wrote:

> Chris Pat <cpanon@yahoo.com> wrote on 10/11/2005
> 05:31:03 PM:
> 
> > 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.
> 
> Chris, here's your problem: You are storing temp as
> a session attribute, 
> but retrieving it as a request sttribute. So replace
> (String) 
> request.getAttribute("file") with (String)
> session.getAttribute("file"), 
> and you should be ok..
> 
> > 
> >     System.out.println("file= "+temp);
> >     session.setAttribute("file", temp);
> >     return actionMapping.findForward("playThis");
> 
> Regards,
> Geeta
>  



		
__________________________________ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs

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


Mime
View raw message