struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Holzer" <bhol...@sgi.sk.ca>
Subject RE: ActionForm and request parameters
Date Thu, 24 Jan 2002 18:40:03 GMT
If you are doing an initial display, are you not loading the form values from within an Action?
 If so, request parameters are easily accessed as the request is one of the parameters to
your perform() method by using the request.getParameter( paramName );

Brian

>>> bryan@bpgc.com 01/24/02 11:54am >>>
But what about the initial display? In order to populate the fields so
that the initial getXXX() calls will display the correct data, I need to
use a request parameter as a lookup key.

Thanks,
Bryan

--
Bryan Glennon (mailto:bryan@bpgc.com)
BPG Consulting, Inc. (http://www.bpgc.com)
Tech Question? (mailto:techQuestion@bpgc.com)


-----Original Message-----
From: Martin Farrell [mailto:Martin.Farrell@emap.com] 
Sent: Thursday, January 24, 2002 11:39 AM
To: 'Struts Users Mailing List'
Subject: RE: ActionForm and request parameters


Hi

You can just use the get set methods within a form, and use the validate
method to control what variables are filled in when. alternatively use
the action.perform method to check what parameters should be collected
when

martin

-----Original Message-----
From: Bryan P. Glennon [mailto:bryan@bpgc.com] 
Sent: 24 January 2002 17:41
To: struts-user@jakarta.apache.org 
Subject: ActionForm and request parameters


Morning -
    Is there anyway to get access to the request parameters in an
ActionForm bean? I need one of the parameters to do a lookup so that I
can correctly populate the form. 

Thanks,
Bryan
--
Bryan Glennon (mailto:bryan@bpgc.com)
BPG Consulting, Inc. (http://www.bpgc.com)
Tech Question? (mailto:techQuestion@bpgc.com)

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


** For great Emap magazine subscription & gift offers visit
http://www.emapmagazines.co.uk **

------------------------------------------------------------------------
--------
The information in this email is intended only for the addressee(s)
named above. Access to this email by anyone else is unauthorised. If you
are not the intended recipient of this message any disclosure, copying, 
distribution or any action taken in reliance on it is prohibited and may
be unlawful. 

Emap plc and or its subsidiaries do not warrant that any attachments are
free from 
viruses or other defects and accept no liability for any losses
resulting from 
infected email transmissions.

Please note that any views expressed in this email may be those of the
originator 
and do not necessarily reflect those of this organisation.
------------------------------------------------------------------------
--------


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



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