Of course you can.  Before the JSP is rendered, the associated Action class
completes its methods.  When the HTML form is first submitted, place the
request parameters in session scope.  Because the Action form is passed as a
parameter to the execute() method of the class, you simply test the form's
accessors for the HTML form fields and, if empty or null, set their states
with the session object's parameters values.  Of course, you should not have
to do this, as your Action form is in session scope by default and it's
values should persist.  I found that having an empty reset() method in the
form did not reset the form's values to defaults:

public void reset( ActionMapping mapping, HttpServletRequest request) {
  super.reset( mapping, request );
}

More probably is there is something awry in your mapping in
struts-config.xml.

Mark

-----Original Message-----
From: Marcus Biel [mailto:Marcus.Biel@;bmw.de]
Sent: Thursday, October 31, 2002 8:00 AM
To: [EMAIL PROTECTED]
Subject: Re: <logic:present parameter>


Sorrry, this was a bit to short for me.

Which field are you talking about ?
I guess you mean the ActionForm.
If you mean the ActionForm, how could I fill it using my Action ???
First of al the ActionForm gets called, THEN the Action gets called,
so I could hardly fill my ActionForm from my ActionClass.

Marcus



[EMAIL PROTECTED] schrieb:
> 
> Keep the original value in the associated Action class and populate the
> field when the JSP is reloaded.
> 
> Mark
>

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

Reply via email to