struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeremy weber <jeremywe...@yahoo.com>
Subject Validation and Tiles
Date Tue, 17 Dec 2002 14:31:48 GMT
Hello, I am very new to struts so please bear with me.
 Its been going very well up until this point, but now
I am stuck.

I have a simple tile layout called common_layout.
Common_layout uses a header/footer/rightmenu/body
configuration.  I also just started to use the
validation tool.  My first page presents fine.  On it,
is a hyperlink to a second page which has a form. 
Click on the hyperlink correctly displays the second
page including the form.  Submitting the form with
correct information proceeds correctly.  However when
validation fails, instead of taking me to a page
generated by the common_layout.  The page it returns
too only includes the body of the layout.  


Any suggestions as to why this could be happening or
any potential solutions?  I have included snippets of
my config below and would be happy to include anything
else that might be pertinent.


TILE-DEFS.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<component-definitions>
    <definition name="baseDef"
path="/pages/common_layout.jsp">
	<put name="title"  value="Welcome to the VendorSite
Installation" />
	<put name="header" value="/pages/header.jsp"/>
	<put name="body" value=""/>
	<put name="footer" value="/pages/footer.jsp"/>
	<put name="right_menu" value="/pages/rightmenu.jsp"/>
    </definition>
    <definition name="welcomeDef" extends="baseDef">
	<put name="body" value="/pages/welcome.jsp"/>
    </definition>
    <definition name="newDef" extends="baseDef">
	<put name="title" value="New Installation Options"/>
	<put name="body" value="/pages/newinstallation.jsp"/>
    </definition>
    <definition name="appserverDef" extends="baseDef">
	 <put name="title" value="Application Server
Configuration"/>
	 <put name="body" value="/pages/appserver.jsp"/>
    </definition>
    <definition name="database" extends="baseDef">
	<put name="body" value="/pages/database.jsp"/>
    </definition>
    <definition name="vsynch" extends="baseDef">
	<put name="body" value="/pages/vsynch.jsp"/>
    </definition>
    <definition name="vsynchservices"
pextends="baseDef">
	<put name="body" value="/pages/vsynchservices.jsp"/>
    </definition>
</component-definitions>

STRUTS-CONFIG.xml

<!-- ======================================== Form
Bean Definitions -->
<form-beans>
	<form-bean      name="SetupFormBean"
		type="com.vendorsite.install.beans.SetupFormBean"/>
	<form-bean      name="AppServerFormBean"
	
type="com.vendorsite.install.beans.AppServerFormBean"/>
	<form-bean      name="DatabaseFormBean"
		
type="com.vendorsite.install.beans.DatabaseFormBean"/>
	<form-bean      name="VsynchFormBean"
		
type="com.vendorsite.install.beans.VsynchFormBean"/>
	<form-bean      name="VsynchServicesFormBean"
		
type="com.vendorsite.install.beans.VsynchServicesFormBean"/>
	<form-bean      name="S"
		
type="com.vendorsite.install.beans.VsynchServicesFormBean"/>
</form-beans>

<!-- ========== Form Bean Action Mapping Definitions
============ -->
<action path="/SetupFormBean"
	 
type="com.vendorsite.install.actions.SetupFormAction"
	  name="SetupFormBean"
	  input="/pages/newinstallation.jsp"
	  scope="response"
	  redirect="true"
	  validate="true">
	  <forward name="success" path="/appserver.page"/>
	  <forward name="failure"
path="/newinstallation.page"/>
</action>

<!-- jsp mappings -->
       <action path="/welcome"
	 
type="com.vendorsite.install.actions.DefaultSubmitAction">
	  <forward name="success" path="welcomeDef"/>
       </action>
       <action path="/newinstallation"
	 
type="com.vendorsite.install.actions.DefaultSubmitAction">
	  <forward name="success" path="newDef"/>
       </action>





Thanks

Jeremy


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message