Hi, sorry, i misunderstood the meaning of "specified filename",
i have already used the tiles-plugin with the tiles-def.xml in the 
struts-config.xml like this:

   <plug-in className="org.apache.struts.tiles.TilesPlugin" >

     <!-- Path to XML definition file -->
     <set-property property="definitions-config"
         value="/WEB-INF/tiles-defs.xml" />
     <!-- Set Module-awareness to true -->
     <set-property property="moduleAware" value="true" />
   </plug-in>

Tiles works well with the ForwardAction like:

<action path="/viewA"
   type="org.apache.struts.actions.ForwardAction"
parameter="a.page"/>

but not with the LocaleAction like:

  <action path="/processLanguage"
   name="languageForm"
   type="org.apache.struts.actions.LocaleAction">
   <forward name="success" path="b.page"/>
</action>
when the pageAttribute in the jsp is not set and the forward in the 
struts-config is used.
Then occurs the following exception:

java.lang.IllegalArgumentException: Path does not start with a "/" character

I am confused, because I use tiles an so I can take the tilesDefinition as 
pathAttribute.

But the requestProcessor( not the TilesRequestProcessor ) has a Problem with 
this.

at 
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:377)
at 
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(ApplicationContextFacade.java:198)
at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
at 
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
at 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
at 
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)

regards rula

----- Original Message ----- From: "Antonio Petrelli" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Friday, June 09, 2006 8:08 AM
Subject: Re: tiles and forwards


rula2005 ha scritto:
I specified no filenames in struts-config.xml

That's funny, how do you think that Tiles knows what definition file to use?

http://struts.apache.org/struts-action/struts-tiles/installation.html

As you can see it states:

   * *Using Tiles With Struts Action* - You will also need to configure
     the Tiles Plugin and the Tiles Request Processor to allow the
     framework to respond to Tiles-based Action Forwards. Below is a
     sample Tiles Plugin configuration.

         <plug-in className="org.apache.struts.tiles.TilesPlugin">
         <set-property
             property="definitions-config"
                value="/WEB-INF/tiles-defs.xml"/>
         </plug-in>

HTH
Antonio

---------------------------------------------------------------------
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