struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken McWilliams <ken.mcwilli...@gmail.com>
Subject Re: Struts 1.1 and Tiles 2 compatability
Date Mon, 11 Mar 2013 21:29:55 GMT
The link would be useful:
http://stackoverflow.com/questions/13337938/how-to-integrate-struts-2-with-tiles-3


On Mon, Mar 11, 2013 at 3:29 PM, Ken McWilliams <ken.mcwilliams@gmail.com>wrote:

> I don't know struts1 at all, but if you are afforded that ability to
> create a custom result type then you should be able to manually invoke
> tiles (at any version including version 3, which if you're going to put in
> the effort should be your target). Here is how something similar was done
> with Struts2, clearly not the same thing but the web.xml set up for tiles
> and the dependencies for tiles would have the same starting point.
>
>
> On Mon, Mar 11, 2013 at 2:34 PM, Sekar, Sowmya <ssekar@ucsd.edu> wrote:
>
>> Is any version of Struts 1 (example : Struts 1.4) compatible with Tiles
>> 2.2.2.?
>>
>> Thanks, Sowmya
>>
>> -----Original Message-----
>> From: paulus.benedictus@gmail.com [mailto:paulus.benedictus@gmail.com]
>> On Behalf Of Paul Benedict
>> Sent: Monday, March 11, 2013 1:15 PM
>> To: Struts Users Mailing List
>> Subject: Re: Struts 1.1 and Tiles 2 compatability
>>
>> Tiles 2 is not compatible with Struts 1. You must use Tiles 1.
>>
>> Paul
>>
>> On Mon, Mar 11, 2013 at 3:01 PM, Sekar, Sowmya <ssekar@ucsd.edu> wrote:
>>
>> > Hi,
>> >
>> > I am in the process of upgrading from Tiles 1 to Tiles 2.2.2 combined
>> > with Struts 1.1.
>> >
>> > I have the following configuration in struts-config.xml
>> >
>> > <controller
>> > processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
>> >
>> >   <plug-in className="org.apache.struts.tiles.TilesPlugin" >
>> >     <set-property property="definitions-config"
>> > value="/WEB-INF/tiles.xml"/>
>> >     <set-property property="moduleAware" value="true" />
>> >     <set-property property="definitions-parser-validate" value="true" />
>> >   </plug-in>
>> >
>> > Below is the dtd configured in tiles.xml
>> >
>> > <!DOCTYPE tiles-definitions PUBLIC
>> >        "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
>> >        "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
>> >
>> > I have the tiles2.2.2 related jars(tiles-jsp, tiles-servlet,
>> > tiles-template, tiles-api, tiles-core) in my classpath and I use maven
>> > to import jars in my project
>> >
>> > When I start tomcat and display my page, I get the following error,
>> >
>> > Mar 11, 2013 12:54:52 PM
>> > org.apache.catalina.core.ApplicationDispatcher
>> > invoke
>> > SEVERE: Servlet.service() for servlet jsp threw exception
>> > org.apache.tiles.template.NoSuchAttributeException: Attribute 'topmenu'
>> > not found.
>> >        at
>> >
>> org.apache.tiles.template.DefaultAttributeResolver.computeAttribute(DefaultAttributeResolver.java:49)
>> >        at
>> >
>> org.apache.tiles.template.InsertAttributeModel.resolveAttribute(InsertAttributeModel.java:187)
>> >        at
>> > org.apache.tiles.template.InsertAttributeModel.start(InsertAttributeMo
>> > del.java:107)
>> >
>> > It is not able to find any of the attributes in tiles.xml
>> >
>> > Any thoughts?
>> >
>> > Thanks,
>> > Sowmya
>> > ssekar@ucsd.edu
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message