struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Tataryn" <craiger...@hotmail.com>
Subject Re: Action object doesn't get attributes...
Date Sat, 13 Jul 2002 02:27:58 GMT
Thanks, I'll pass the info along!

Craig.


>From: "Craig R. McClanahan" <craigmcc@apache.org>
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: Struts Users Mailing List <struts-user@jakarta.apache.org>
>Subject: Re: Action object doesn't get attributes...
>Date: Fri, 12 Jul 2002 15:30:25 -0700 (PDT)
>
>
>
>On Fri, 12 Jul 2002, Craig Tataryn wrote:
>
> > Date: Fri, 12 Jul 2002 16:28:52 -0500
> > From: Craig Tataryn <craiger316@hotmail.com>
> > Reply-To: Struts Users Mailing List <struts-user@jakarta.apache.org>
> > To: struts-user@jakarta.apache.org
> > Subject: Action object doesn't get attributes...
> >
> > Here is a question from a collegue of mine (see below).  Basically last 
>year
> > when they started using Struts on one of their web applications they 
>could
> > use request.getAttributes from their Action object and everything worked
> > fine.  However, now it seems that they need to use an ActionForm object
> > which isn't possible in this case since the form objects to be submitted
> > change based on the user logged in.
> >
> > Anyone have an answer?  I just saw a mail from Craig explaining that 
>form
> > parameter values are treated differently now than they were before, 
>however
> > he says they are using the same version of struts (1.0) as they did 
>before.
> >
>
>The request (and response) are passed to the Action as method parameters
>-- so the request attributes are definitely available inside an Action's
>perform() or execute() method.
>
>Remember that request *attributes* are things that your application has
>stored there.  If you're looking for the input information from the client
>browser, you probably want the request *parameters* instead (which are
>also available from the passed request instance).
>
>Craig
>
>
> > Thanks,
> >
> > </tataryn:craig>
> >
> > Original message:
> >
> > For those of you who I asked already, I did some more testing and
> > included some more information:
> >
> > Have any of you come accross the following?
> >
> > It seems that the form attributes are not available to the struts Action
> > object unless they are put into an ActionForm. If they are not put into
> > an ActionForm (or if there is no ActionForm defined for the page) then
> > the data is unavailable to that Action object.
> >
> > This did not happen in last years application (both are using the same
> > struts version). Is there some configuration setting that might be
> > causing this? Is the presence of ANY ActionForm that is defined on that
> > page mess up forms for which there is no ActionForm?
> >
> > Thanks for any info you might have on this.
> >
> > Craig W. Tataryn
> > Programmer/Analyst
> > Compuware
> >
> > _________________________________________________________________
> > Send and receive Hotmail on your mobile device: http://mobile.msn.com
> >
> >
> > --
> > To unsubscribe, e-mail:   
><mailto:struts-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: 
><mailto:struts-user-help@jakarta.apache.org>
> >
> >
>
>
>--
>To unsubscribe, e-mail:   
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: 
><mailto:struts-user-help@jakarta.apache.org>


Craig W. Tataryn
Programmer/Analyst
Compuware

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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


Mime
View raw message