The error I'm getting is: javax.servlet.ServletException: Path
BOOK_TRIP_TO_EARTH.tiles does not start with a "/" character
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413)
where the BookTripToEarthAction is a S1 action. (the app is like
HelloWorld, but from the Martian's view, it becomes "GreetingsEarth")
I have the following parameters in web.xml
<context-param>
<param-name>org.apache.tiles.CONTAINER_FACTORY</param-name>
<param-value>
org.apache.struts2.tiles.StrutsTilesContainerFactory
</param-value>
</context-param>
<context-param>
<param-name>
org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</context-param>
and the Tiles Listener as:
<listener>
<listener-class>
org.apache.tiles.listener.TilesListener
</listener-class>
</listener>
The same error when I change the Tiles Container Factory to:
org.apache.tiles.factory.TilesContainerFactory
The S2/T2 pages work fine, but not the S1/T2 pages.
Any Suggestions? Thx,
- Ray Clough
Antonio Petrelli-3 wrote:
>
> 2007/6/15, Ray Clough <[EMAIL PROTECTED]>:
>> So far, it doesn't work.
>
> It seems that you have done everything. What is your exact problem?
>
>> 3. in web-xml add the specified servlet reference. If the config
>> parameter is incorrect on the web site, what should it be?
>
> org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
> For other parameters, see:
> http://tiles.apache.org/config-reference.html
>
>> Note that the TilesListener is already specified
>> in the web.xml file because it was needed for Struts-2/Tiles-2. Could I
>> get by without specifying the Tiles Servlet, and just use a config param
>> to specify the tiles.xml file as the tiles definition source?
>
> If you mean a "context" parameter, then yes. You can drop TilesServlet
> and use TilesListener instead.
>
>>
>> It seems like T2 is intercepting and rendering responses ending in
>> "*.tiles". Is that correct, and is it configurable? My habit has been
>> to use "*.screen" as my Tiles pages mappings.
>
> It's the "TilesDispatchServlet" and currently it is not configurable
> (it lacks some code).
> http://tiles.apache.org/tutorial/advanced/utils.html
> Anyway, if you want to write a patch to make it configurable, we'll be
> happy :-)
>
>>
>> Finally, what would be needed to make S2 work with T2, but not using the
>> Struts-Tiles plugin? It seems to me that one of the weaknesses of the
>> S2 architecture is using a single rendering scheme by specifying a
>> 'type' for the result mappings. This precludes compound rendering
>> types, like jsf-tiles inside S2. That is, I can't have a page with some
>> portions rendered as JSF, some non-JSF, and use Tiles to compose them.
>
> Using S2/T2 plugin does not preclude, AFAIK, using JSF (you should ask
> the Struts Users mailing list for this to be sure). The integration
> between S2 and T2 is only in the result type and in the startup and
> processing.
>
>>
>> As to how the documentation could be clearer about use of servlet OR
>> filter OR listener - I misunderstood it, but would have understood a
>> sentence like: "To configure your application to use Tiles-2, you need
>> to modify the web-xml file to specify using either (1) the TilesServlet,
>> or (2) the TilesFilter, or (3) the TilesListener. The required elements
>> are shown below: ....."
>
> I just updated the site in another way, wait about an hour and see if it
> is ok.
>
>>
>> Also the migration guide does not address some of the steps I specified
>> above, like removing the struts-tiles-xxx.jar file, or removing the
>> tiles-processor and tiles-plugin elements from the struts-config.xml
>> file. I guess those steps are required, but the documentation never
>> told me that, only my previous experience. Lots of people haven't any
>> previous experience to guide them.
>
> Well thanks! Why don't you open an issue for that? Remember to use the
> "TILESSHARED" project.
> If you want you can write a patch for the site. We always welcome help
> by others.
>
> Ciao
> Antonio
>
>
--
View this message in context:
http://www.nabble.com/Tiles-documentation-tf3923991.html#a11157683
Sent from the tiles users mailing list archive at Nabble.com.