RE: Blank page returned from ActionForm

2005-05-26 Thread Andy
I should qualify my last e-mail. I did change the execute method, to include amongst other things the saveError call (thanks Dave), as shown in the Struts example. Andy. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

RE: Blank page returned from ActionForm

2005-05-26 Thread Andy
ilto:[EMAIL PROTECTED] >Sent: 26 May 2005 17:39 >To: Struts Users Mailing List >Subject: Re: Blank page returned from ActionForm > > >Michael Jouravlev wrote: > >>I usually get blank pages when I do not have a proper "forward" >>defined, but in your case it is

Re: Blank page returned from ActionForm

2005-05-26 Thread Dave Newton
Michael Jouravlev wrote: I usually get blank pages when I do not have a proper "forward" defined, but in your case it is "input" and it looks ok. On 5/26/05, Andy <[EMAIL PROTECTED]> wrote: When I select Submit, entering data into my form fields so the form is parsed as valid, the forward w

Re: Blank page returned from ActionForm

2005-05-26 Thread Andrew Thorell
I remember trying the messagesPresent tags in my jsps but found the extra code to be not worth the extra effort. It's just a whole lot of extra code for a quick fix by naming the error property by name. In the example: errors.add("login", new ActionMessage("errors.login.invalid")); I'm using str

Re: Blank page returned from ActionForm

2005-05-26 Thread Dave Newton
Andrew Thorell wrote: GLOBAL_ERRORS is deprecated (sp?) Looks like they changed it to just use the Super class constant. Yes, but doesn't the errors tag just look for errors, not messages? I don't recall which release you were using; sorry if I'm just spouting. What happens if you check fo

Re: Blank page returned from ActionForm

2005-05-26 Thread Andrew Thorell
GLOBAL_ERRORS is deprecated (sp?) Looks like they changed it to just use the Super class constant. Andrew On 5/26/05, Dave Newton <[EMAIL PROTECTED]> wrote: > Andy wrote: > > >>>errors.add(ActionErrors.GLOBAL_MESSAGE,new > >>>ActionMessage("logon.form.password.invalid")); > >>> > >>>

Re: Blank page returned from ActionForm

2005-05-26 Thread Michael Jouravlev
It seems to me that Struts cannot find logon.jsp. Hmm... are you sure you spelled it correctly? The case, the location? What if you removed the leading slash? I usually get blank pages when I do not have a proper "forward" defined, but in your case it is "input" and it looks ok. Not much help fro

Re: Blank page returned from ActionForm

2005-05-26 Thread Andrew Thorell
The only other thing I can think of is in the application.properties file: errors.header= errors.prefix= errors.suffix= errors.footer= logon.form.password.invalid=Invalid Password. all should be set to something. I've included mine as an example public ActionErrors Validate(...) { ActionEr

Re: Blank page returned from ActionForm

2005-05-26 Thread Dave Newton
Andy wrote: errors.add(ActionErrors.GLOBAL_MESSAGE,new ActionMessage("logon.form.password.invalid")); Is this the key that errors are retrieved by in html:errors? Isn't the key for errors GLOBAL_ERRORS? Dave

RE: Blank page returned from ActionForm

2005-05-26 Thread Andy
l [mailto:[EMAIL PROTECTED] >Sent: 26 May 2005 14:12 >To: Struts Users Mailing List >Subject: Re: Blank page returned from ActionForm > > >/** >* Double check the property 'Property' inside the Errors tag, it could >be name, I just don't *have my code infront

Re: Blank page returned from ActionForm

2005-05-26 Thread Dave Newton
Andrew Thorell wrote: I could be wrong, but I thought saveErrors was only needed in the Action Class, not the ActionForm class? Whoops, I suck. Just drank non-carbonated Chinese Red Bull and I'm all confused :/ Have you tried setting validate="true" for the action mapping? Dave ---

Re: Blank page returned from ActionForm

2005-05-26 Thread Andrew Thorell
I could be wrong, but I thought saveErrors was only needed in the Action Class, not the ActionForm class? Andrew T > Probably because you didn't read all the docs ;) > > I don't see where you're saving the errors: > > saveErrors(request, errors); > > This is important. > > Dave -

Re: Blank page returned from ActionForm

2005-05-26 Thread Dave Newton
Andy wrote: In LogonForm.java (I have getters/setters for HTML fields, and a reset method, not shown) - public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { log.debug("validate"); ActionErrors errors = new ActionErrors(); i

Re: Blank page returned from ActionForm

2005-05-26 Thread Andrew Thorell
/** * Double check the property 'Property' inside the Errors tag, it could be name, I just don't *have my code infront of me to double check. */ errors.add("login", new ActionMessage("logon.form.password.invalid")); I've never been able to return an error using ActionErrors.GLOBAL_MESSAGE before