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]

Reply via email to