Are you sure that you have an "input" entry in your action mapping in your
struts-config.xml file pointing to the JSP where you want to end up?
If you don't provide an input entry you forward into the blue....and not to
the JSP where you expect to end up.
You could also use the relative URL of your JSP to create an actionforward
(new ActionForward( "<myjspURL>" ))

Regards,
Guus

----- Original Message -----
From: "SUPRIYA MISRA" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 15, 2001 16:39
Subject: RE: <html:errors> problem


> I have used exactly what he is doing without validating and it works....
>
>
> >From: Mike Dewhirst <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >Subject: RE: <html:errors> problem
> >Date: Wed, 15 Aug 2001 15:36:49 +0100
> >
> >I think the problem stems from the fact that you are creating and
> >populating
> >the ActionErrors object in the Action Class instead of the validate
> >method()
> >of the Action Form. You should also turn on validation in the action
maping
> >for this Action in strus-config.xml.
> >
> >Hope this helps!
> >
> >Have a look at the user guide, it's very good and contains the details on
> >how to do the above:
http://jakarta.apache.org/struts/userGuide/index.html
> >
> >-----Original Message-----
> >From: Yang, Yexing [mailto:[EMAIL PROTECTED]]
> >Sent: 15 August 2001 15:31
> >To: '[EMAIL PROTECTED]'
> >Subject: <html:errors> problem
> >
> >
> >Hi,everyone
> >I have a problem about using the <html:errors/>, in Servlet side I use
> >something look like following:
> >
> > ActionErrors errors = new ActionErrors();
> > errors.add("mike",new ActionError("Login Failed !"));
> > if(!errors.empty()){
> > saveErrors(request,errors);
> > System.out.println("Login Error: " +
> >mapping.getInput().toString());
> > return  (new ActionForward(mapping.getInput()));
> > }
> >
> >    from the std.out I can check errors is not empty, but on Jsp page , I
> >use
> ><html:errors/>, it doesn't come out any error info. I am not quite sure
if
> >I
> >am doing the right way or not.
> >
> >do someone can please give some advice about it
> >
> >Thanks in advance
> >
> >
> >=**********************************************************
> >
> >If you are not the intended recipient, employee or agent responsible for
> >delivering the message to the intended recipient, you are hereby notified
> >that any dissemination or copying of this communication and its
attachments
> >is strictly prohibited.
> >
> >If you have received this communication and its attachments in error,
> >please return the original message and attachments to the sender using
the
> >reply facility on e-mail.
> >
> >Internet communications are not secure and therefore the UCLES Group does
> >not accept legal responsibility for the contents of this message.  Any
> >views or opinions presented are solely those of the author and do not
> >necessarily represent those of the UCLES Group unless otherwise
> >specifically stated.
> >
> >This footnote also confirms that this email message has been swept by
> >MIMEsweeper for the presence of computer viruses although this does not
> >guarantee that this email is virus free.
> >
> >**********************************************************=
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>

Reply via email to