Okay, so it behaves more like a package then... I see... Thanks! -----Original Message----- From: developer [mailto:developer@fdplus.com] Sent: Wednesday, July 31, 2002 6:57 PM To: struts-user Subject: Re: ActionErrors in ActionForm and JSP not showing up... Well actually you could have a "resources" directory under WEB-INF/classes but you have to set it up like this: and you'll be ready to go. ----- Original Message ----- From: To: Sent: Wednesday, July 31, 2002 4:39 PM Subject: RE: ActionErrors in ActionForm and JSP not showing up... > > Nope, never knew that existed... Okay, it did do something... > I get: > > ???en_US.error.requestform.company.required??? > > Which is what you were talking about... > > For the 33rd time I checked my config for my resources and the file is > where the config says it should be.... I also checked for the 50th time > that the key was what I was looking for... > > error.requestform.company.required=You must select a company > > (I am cutting and pasting here) > > parameter="/WEB-INF/resources/applicationresources.properties" > null="false"/> > > I also tried moving it back into my classes directory and not specifying > an alternate location... > > No dice, same errors... > Nothing in the log files... > > So now I know its either not finding the whole resources file or the > keys dont match for that error... If I make it a bad filename, I dont > see any errors also... > > AAARGGGGHHHHHH > > > > > > > > > > > > > -----Original Message----- > From: martin.cooper [mailto:martin.cooper@tumbleweed.com] > Sent: Wednesday, July 31, 2002 3:38 PM > To: struts-user > Subject: RE: ActionErrors in ActionForm and JSP not showing up... > > > Have you tried setting 'null="false"' in your entry > in > struts-config.xml? That would at least tell you whether the problem is > related to picking up the resource string or is something else. > > If the resource string wasn't picked up for some reason, you'll see > those > odd "???.key.???" strings where your resource string should be, instead > of > nothing at all. Horrible for production, but an invaluable debugging > tool. > :-) > > -- > Martin Cooper > > > > -----Original Message----- > > From: wbchmura@Ensign-BickfordInd.com > > [mailto:wbchmura@Ensign-BickfordInd.com] > > Sent: Wednesday, July 31, 2002 6:35 AM > > To: struts-user@jakarta.apache.org > > 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 tag works fine and activates when > > an error > > should be appearing, but the 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 > > > > > > > type="com.ebind.twizard.reports.struts.FormPremadeReport" /> > > > > > > > type="com.ebind.twizard.reports.struts.ActionPremadeReport" > > parameter="reportType" > > name="FormPremadeReport" > > scope="request" > > validate="true" > > input="twizard.premade"> > > > > > redirect="false" /> > > > path="twizard.reportdisplay.ranged" > > redirect="false" /> > > > path="twizard.reportdisplay.ranged" > > redirect="false" /> > > > redirect="false" /> > > > > > > > > > > > > > > Reported Errors:
> > > >
> >
> > > > > name="FormPremadeReport" > > type="com.ebind.twizard.reports.struts.FormPremadeReport" > > scope="request"> > > > > > > > > > > > > > > > > > > -----Original Message----- > > From: martin.cooper [mailto:martin.cooper@tumbleweed.com] > > 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: wbchmura@Ensign-BickfordInd.com > > > [mailto:wbchmura@Ensign-BickfordInd.com] > > > Sent: Tuesday, July 30, 2002 7:21 AM > > > To: struts-user@jakarta.apache.org > > > 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: > > > > > > > > > > > > > > > > > > > > > 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: > > > > For additional commands, e-mail: > > > > > > > > > > -- > > To unsubscribe, e-mail: > > > > For additional commands, e-mail: > > > > > > > > > > -- > > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > > -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: