I forgot how you implemented your return statement, but

  return  new ActionForward(mapping.getInput());

should work.



-----Original Message-----
From: Gregory F. March [mailto:[EMAIL PROTECTED] 
Sent: July 23, 2003 6:06 PM
To: Struts Users Mailing List
Subject: Re: More validation woes



On Jul 23, 2003, Yansheng Lin <[EMAIL PROTECTED]> wrote:

 |It's a common error. Somehow you are not forwarding back to the jsp page that
 |generated the error.
 |
 |Put a System.out statement in front of mapping.getInputForward().  I bet it's
 |different from mapping.getInput();

Well, actually, I had mapping.getInput, but I got an "imcompatible type"
compile error.  return want's ActionForward while mapping.getInput()
returns String.

The O'Reilly book shows this done with mapping.getInput() too...

According to the javadoc, it looks like getInputForward is the
appropriate call.

Any ideas?

Thanks!

/greg

--
Gregory F. March    -=-    http://www.gfm.net:81/~march    -=-    AIM:GfmNet

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


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

Reply via email to