Thank u very much!

Andrew Hill wrote:

>The scope into which struts places the ActionForm instance is defined by you
>in the struts config file in the action definition. For example in the
>follwing action definition thingy the "scope" attribute states to use the
>request context. If you specify session, then the session context will be
>used.
>
><action path="/login"
>type="com.unist.plot.to.conquer.the.World"
>name="evilActionForm"
>scope="request"
>input="/secretPlans.jsp">
><forward name="success" path="/global/hegemony.do"/>
><forward name="failure" path="/new/world/order.do"/>
></action>
>
>To have your fields reset to default values when a request is made, you may
>override the reset() method in ActionForm and set the default field values
>there. (If you are using any checkboxes you will want to do this anyway to
>set them to false).
>
>The signature of the reset() method is:
>
>public final void reset(ActionMapping mapping, HttpServletRequest request);
>
>This is called by struts before it populates the ActionForm from a request.
>
>-----Original Message-----
>From: kiuma [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, September 19, 2002 21:44
>To: Struts Users Mailing List
>Subject: [STRUTS] Cleasing form fields fields
>
>
>Hello,
>
>how can I have a clean form field the second time I visit it?
>It seems it keeps data into session. How can I clean those fields,
>without cleaning other informations?
>
>Thanks,
>kiuma
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>.
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to