struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Brown <adrianjonbr...@yahoo.com.au>
Subject Re: Is httpServletRequest available in the ActionForm
Date Fri, 27 Sep 2002 04:24:50 GMT
Affirm!

And don't just take my word for it - check this link:

(it's not exactly the same situation, but close-ish!)

http://www.scioworks.net/devnews/strutsDistilled/updates/update-020906/validatingForm.html


Adrian

 --- Aladar The Dinosaur <aladar@telocity.com> wrote:
> Thanks for the info. So, the solution is to use an
> "action" rather than
> trying to do this from the actionForm?
> 
> Scott
> ----- Original Message -----
> From: "Adrian Brown" <adrianjonbrown@yahoo.com.au>
> To: "Struts Users Mailing List"
> <struts-user@jakarta.apache.org>
> Sent: Thursday, September 26, 2002 10:45 PM
> Subject: Re: Is httpServletRequest available in the
> ActionForm
> 
> 
> > Hi Scott,
> >
> > I think what you want to do is initialise the form
> > values? If so, use a request parameter to define
> an
> > initialise call on your Action, like this say:
> >
> > http://yourapp/upload.do?action=initialise
> >
> > check for this action parameter in your perform()
> > method of your action, and then fill in the
> initial
> > values if it equals 'initialise' and return a
> mapping
> > back to the jsp where you want the values
> displayed.
> >
> > If this is confusing, let me know and I'll put
> more
> > info in.
> >
> > If it is too easy, you may wish to consider using
> > DispatchAction to do the above, where the Dispatch
> > action automatically chooses to run a method based
> on
> > the value of a request parameter.
> >
> > Adrian
> >
> >
> >  --- Aladar The Dinosaur <aladar@telocity.com>
> wrote:
> > > Hello,
> > >
> > > Is "request" object available in the ActionForm?
> If
> > > so, how do I access it?
> > >
> > > I'm trying to populate actionForm properties
> with
> > > the information stored in
> > > the session, but don't know how to access the
> > > request object... by the way,
> > > I'm fairly new to java so if this is a newbie
> > > question please excuse.
> > >
> > > Thank you,
> > > Scott
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > >
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <mailto:struts-user-help@jakarta.apache.org>
> > >
> >
> > http://mobile.yahoo.com.au - Yahoo! Messenger for
> SMS
> > - Always be connected to your Messenger Friends
> >
> > --
> > 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>
>  

http://mobile.yahoo.com.au - Yahoo! Messenger for SMS
- Always be connected to your Messenger Friends

--
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