What is it doing or not doing that is giving you trouble?

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, October 06, 2004 4:47 PM
> To: [EMAIL PROTECTED]
> Subject: form reset
> 
> 
> Hi guys,
> 
> I know this has been asked before... but nothing seems to be 
> working for me.  I have a ActionForm in which I reset all my 
> fields to null.
> 
> Can someone please not only correct me on what I'm doing 
> wrong but also explain why?
> 
> I've tried both these of these:
> ----------------------
> if ( mapping.getAttribute() != null ) {
>   if ( "request".equals( mapping.getScope() ) ) 
> request.removeAttribute( mapping.getAttribute() );
>   else session.removeAttribute( mapping.getAttribute() );
> }
> ----------------------
> form.reset( mapping, request );
> ----------------------
> 
> Here is my action tag in case I need to change something here:
> 
>         <action
>             path="/path"
>             type="class"
>             name="formname
>             scope="session"
>             input="jsp page">
>             <forward name="success" redirect="false" 
> path="jsp page" />
>         </action>
> 
> Roy.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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

Reply via email to