You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Blessing, Jeffrey" <bl...@msoe.edu> on 2001/09/25 01:18:12 UTC
validate() fails to re-populate the html:form
I've just recently read the entire thread on this issue posted
last Wed 9/19/01 and still have the following problem:
When the validate() method of my form bean returns a non-
empty ActionErrors list, struts fails to re-populate the form
fields with the text that was submitted successfully. I've
checked the following:
In ApplicationResources.properties:
========================
errors.header=<ul>
errors.footer=</ul><hr>
In struts-config:
==========
<action path="/saveTriage"
type="org.apache.struts.webapp.example.SaveTriageAction"
name="triageForm"
scope="request"
input="/triage.jsp"
validate="true">
</action>
The errors list *is* reported successfully on the input JSP page, however.
This is the only JSP page involved (no wizard like series of JSP pages).
I tried the fix suggested in the list, of changing the scope to "session",
and
the app throws the following exception:
"No bean found under attribute key triageForm"
I've based this app on the struts-example app, as it appears that everyone
else is also doing.
What next?!
Re: validate() fails to re-populate the html:form
Posted by Ted Husted <hu...@apache.org>.
Try downloading Struts-simple, and porting the affected classes there.
http://husted.com/about/struts/resources.htm#projects
Something strange is wrong. It does actually work as documented ;-0
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/
"Blessing, Jeffrey" wrote:
>
> I've just recently read the entire thread on this issue posted
> last Wed 9/19/01 and still have the following problem:
>
> When the validate() method of my form bean returns a non-
> empty ActionErrors list, struts fails to re-populate the form
> fields with the text that was submitted successfully. I've
> checked the following:
>
> In ApplicationResources.properties:
> ========================
> errors.header=<ul>
> errors.footer=</ul><hr>
>
> In struts-config:
> ==========
> <action path="/saveTriage"
> type="org.apache.struts.webapp.example.SaveTriageAction"
> name="triageForm"
> scope="request"
> input="/triage.jsp"
> validate="true">
> </action>
>
> The errors list *is* reported successfully on the input JSP page, however.
> This is the only JSP page involved (no wizard like series of JSP pages).
> I tried the fix suggested in the list, of changing the scope to "session",
> and
> the app throws the following exception:
> "No bean found under attribute key triageForm"
>
> I've based this app on the struts-example app, as it appears that everyone
> else is also doing.
>
> What next?!