I'm sorry, but I'm not quite sure I understand the response.  I don't know
what the item is that I need to include on this single error page you refer
to.  Also, I'm not sure I understand what the criteria is .  What I _think_
you mean is that I'm to include all error reporting from what would be
multiple error pages onto a single one.  Please correct if this assumption
is wrong.    

The cruxt of my problem though is the fact that I _don't_ want a single
error page.  Most of the examples I've seen, as well as  follow the pattern
of reporting errors on the same page that failed validation.  The problem is
that the examples only include 1 .jsp page, and so naturally using the input
attribute of the action mapping makes sense.  If they've only got one page
to go through, any errors can be returned back to that page via the input
attribute.

But the problem is that when you get into multiple pages, the input
attribute can't be used. Say a user is in the middle of a multi-page
registration process. If the user makes a mistake on page4.jsp, they should
be returned to page4.jsp, and have those errors reported on that page.  And
so my question from all this is basically, what's the best way to do this?

Carl

-----Original Message-----
From: adam [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 6:30 PM
To: Struts Users Mailing List
Subject: Re: Multiple error pages for a single action mapping


Remember, one error page can just be use a simple include based on your 
error criteria for multiple other error pages.

Schmidt, Carl wrote:

>Thank you for the reply.  However, isn't setInput essentially setting the
>input attribute of the action mapping tag in struts-config.xml?  In other
>words, since the action mapping is part of a global collection, will the
>setInput changes be reflected to any other users on the site, accessing
>these pages?
>
>Carl 
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, April 24, 2002 12:08 PM
>To: [EMAIL PROTECTED]
>Subject: Multiple error pages for a single action mapping
>
>
>Hi
>I believe you are checking you inputs while you going through the pages. 
>E.g..: page2 checking for date-of-birth or it's format. 
>When you checking this you could say something like 
>mapping.setInput("/page2.jsp"); instead of setting your input page on
>struts-config action.
>
>I hope this will help.
>
>
>Anton M David          
>Developer
>IS Solutions Plc
>Switchboard: 01932-893333
>Direct: 01932-893370
>Fax: 01932-893433
>Mobile: 07880771179
>Email: [EMAIL PROTECTED] 
>http://www.issolutions.co.uk
>
>UK Registered Office, Windmill House, 91 - 93 Windmill Road, Sunbury on
>Thames, Middlesex TW16 7EF
>Company registration number 1892751
>
>
>
>
>--
>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