struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Barrows" <jbarr...@sssc.com>
Subject RE: To Show Web Home Page That Consists of Tiles
Date Wed, 01 Sep 2004 18:15:37 GMT


> -----Original Message-----
> From: Caroline Jen [mailto:jiapei_jen@yahoo.com]
> Sent: Wednesday, September 01, 2004 11:09 AM
> To: Struts Users Mailing List
> Subject: RE: To Show Web Home Page That Consists of Tiles
> 
> 
> Hi,  I have the following tags in my
> struts.config.xml:
> 
>   <plug-in
> className="org.apache.struts.tiles.TilesPlugin" >
>     <set-property property="definitions-config"
>                      value="/WEB-INF/tiles-defs.xml"/>
>     <set-property property="definitions-debug"
> value="1" />
>     <set-property
> property="definitions-parser-details" value="0" />
>     <set-property
> property="definitions-parser-validate" value="true" />
>   </plug-in>
> 
> I suppose that tiles plug-in is set up correctly.  I
> still have the error: "No context-relative URI
> specified via the 'parameter' attribute".
> 
> I think that the action mapping wants to see a
> "paramter" attribute right after the "type" attribute.
>  Right now, what I have is:
> 
>     <action
>         path="/Home"
>        
> type="org.apache.struts.actions.ForwardAction">
>         <forward
>             name="success"
>             path=".frame.Home"/>	
> 	</action>
> 
> what should I do?

Sorry...  a duh moment for me.....
the ForwardAction requires a parameter attribute, not a forward.   So it should be something
like:
     <action
      path="/Home"
	parameter=".frame.Home"        
	type="org.apache.struts.actions.ForwardAction"/>



> 
> 
> --- Jim Barrows <jbarrows@sssc.com> wrote:
> 
> > > -----Original Message-----
> > > From: Caroline Jen [mailto:jiapei_jen@yahoo.com]
> > > Sent: Wednesday, September 01, 2004 10:47 AM
> > > To: struts-user@jakarta.apache.org
> > > Subject: To Show Web Home Page That Consists of
> > Tiles
> > > 
> > 
> > <snip/>
> > 
> > > 
> > > 
> > > .frame.Validation is a piece of tile.  The error
> > > message I got is: "No context-relative URI
> > specified
> > > via the 'parameter' attribute"
> > 
> > The error message indicates that the tiles plug-in
> > is not intercepting the forward.  Please check the
> > documentation and make sure you have the
> > struts-config.xml set up correctly to use the the
> > tiles plug-in/controller.
> > 
> > 
> > > 
> > > 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
> > > 
> > > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> > user-help@struts.apache.org
> > 
> > 
> 
> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> 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
> 
> 

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


Mime
View raw message