You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Caroline Jen <ji...@yahoo.com> on 2004/09/01 19:47:04 UTC

To Show Web Home Page That Consists of Tiles

How do I specify the action mapping in the
struts-config.xml to show a web home page that
consists of tiles?

The problem is with the action mapping part.  My
index.jsp in the root directory has these two lines:

<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<logic:redirect forward="welcome"/>

and in my struts-config.xml file, the
<global-forwards> forwards the "welcome":

  <global-forwards>

     <forward
        name="welcome"
        path="/do/Home"/>

  </global-forwards>

and in my <action-mappings>, I have:

    <action
        path="/Home"
       
type="org.apache.struts.actions.ForwardAction">
        <forward
            name="success"
            path=".frame.Validation"/>	
    </action>

.frame.Validation is a piece of tile.  The error
message I got is: "No context-relative URI specified
via the 'parameter' attribute"

My tiles-defs.xml looks like:

<!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles
Configuration//EN"
      
"http://jakarta.apache.org/struts/dtds/tiles-config.dtd">

<tiles-definitions>
    <definition name=".frame.Base"
path="/frame/common/layouts/Frame.jsp">
      <put name="title"     value ="${title}"/>
      <put name="upperbar"
value="/frame/common/upperbar.jsp"/>
      <put name="message"  
value="/frame/common/message.jsp"/>
      <put name="content"   value="${content}"/>
      <put name="lowerbar" 
value="/frame/common/lowerbar.jsp"/>
   </definition>
   <definition name=".frame.Validation"
extends=".frame.Base">
      <put name="content"  
value="/frame/content/home.jsp"/>
   </definition>
</tiles-definitions>

 





		
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

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