If the action type is Action, it works fine. It is strange that if the action type is a DispatchAction, the validation error body page will fill the whole screen.
Is it true that DispatchAction is not suitable for suggested option 1? Thnx On Tue, 15 Mar 2005 00:28:31 -0500, David G. Friedman <[EMAIL PROTECTED]> wrote: > Daniel, > > Why aren't you doing one of the following: > > 1. set your input from "/ChgPassword.jsp" to the tile "user.chgPassword". > > 2. change validate="true" to validate="false" then perform the validation > call in your Action whenever you need it. That way, you'll know when > validation fails and can send the visitor to the "failure" mapping instead > of using the action's "input" attribute. > > Regards, > David > > -----Original Message----- > From: Daniel PC Leung [mailto:[EMAIL PROTECTED] > Sent: Monday, March 14, 2005 8:52 AM > To: Struts Users Mailing List > Subject: Tiles does not function in case validation error? > > In case validation error, the header, footer and menu portions > disappear when error messages display on top of the body page which > occupies the whole screen. > > If I can click "cancel" or validation is okay, Tiles function > properly. Only the body page is changed. > > <action path="/chgPassword" > type="com.security.user.ChgPasswordAction" > name="chgPasswordForm" > scope="request" > validate="true" > input="/ChgPassword.jsp"> > <forward name="success" path="user.chgPassword"/> > <forward name="failure" path="user.chgPassword"/> > <forward name="cancel" path="user.userProfileMaint"/> > </action> > > Anything I can change? > > thanks > > --------------------------------------------------------------------- > 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]