Any one have any other ideas?  I cannot figure this one out!



-----Original Message-----
From: Chmura, William B. 
Sent: Wednesday, July 31, 2002 9:35 AM
To: struts-user
Subject: RE: ActionErrors in ActionForm and JSP not showing up...



Yes, the page that displays them is the same one that the errant 
information is missing from.
Yes, I am also using Tiles on all these pages...  


The <logic:messagesPresent> tag works fine and activates when an error 
should be appearing, but the <html:errors> tag seems awry.  Or I am.  Or 

both of us...

Any help would be greatly appreciated ...

This is my form-beans and action from the struts-config.xml

<form-beans>
<form-bean name="FormPremadeReport" 
type="com.ebind.twizard.reports.struts.FormPremadeReport" />
</form-beans>

<action path="/premadeReport"
type="com.ebind.twizard.reports.struts.ActionPremadeReport"
parameter="reportType"
name="FormPremadeReport"
scope="request"
validate="true"
input="twizard.premade">
<forward name="continue" path="twizard.premade" redirect="false" />
<forward name="displayRedReport" path="twizard.reportdisplay.ranged" 
redirect="false" />
<forward name="displayYellowReport" path="twizard.reportdisplay.ranged" 
redirect="false" />
<forward name="displayGreenReport" path="twizard.reportdisplay.ranged" 
redirect="false" />
<forward name="success" path="twizard.reportdisplay.ranged" 
redirect="false" />
</action>


<logic:messagesPresent>
<!-- Errors detected -->
<font color="Red">
Reported Errors:<br>
<html:errors property="company"/>
</font>
</logic:messagesPresent>

<html:form action="/premadeReport.do"
        name="FormPremadeReport"
        type="com.ebind.twizard.reports.struts.FormPremadeReport"
        scope="request">








-----Original Message-----
From: martin.cooper [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 9:22 PM
To: struts-user
Subject: RE: ActionErrors in ActionForm and JSP not showing up...


Is the page that's supposed to display the errors returned from the same
request that found them? This may not be the case if you are using 
frames,
redirect or Tiles. The errors are saved as a request attribute, so if 
it's
not the same request, the errors will be gone.

--
Martin Cooper


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 7:21 AM
> To: [EMAIL PROTECTED]
> Subject: ActionErrors in ActionForm and JSP not showing up...
> 
> 
> 
> 
>        if (this.companySelection == null || 
> this.companySelection.equals("")) {
>            System.out.println("FormPremadeReport:validate > 
> No Company 
> Selected");
>            errors.add(ActionErrors.GLOBAL_ERROR, new 
> ActionError("error.requestform.company.required"));
>        }
>        return errors;
> 
> 
> I have the above code in my ActionFormValidate...  When I submit the 
> form it passes the IF (as it should) and returns me to the HTML form 
> page.  BUT my JSP for:
> 
>       <logic:messagesPresent>
>       <!-- Errors detected -->
>       <font color="Red"><html:errors/></font>
>       </logic:messagesPresent>
> 
> Sends back the comment and font tags, but nothing after that...
> 
> Any ideas?  I do have the application properties for all the 
> settings, 
> plus the shown resource above...
> 
> 
> 
> 
> 
> 
> 
> --
> 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]>



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

Reply via email to