Hey All/Antonio . . .
Unfortunately I need to revisit this issue . . .
I decided to not use Tiles 2.1 and go back to the
struts-tiles-1.3.10.jar. In other words just use the Tiles that comes
with Struts 1.3. I added the Tiles Plug-In and changed everything
back from tiles.apache.org . . . to struts.apache.org . . . Now, I'm
getting the "Path page.logon does not start with a "/" character".
Relevant source code follows:
If someone could assist me I'd really appreciate it . . .
Thanks,
Andy
******* struts-config.xml ************
<action path="/logon"
type="struts.Logon"
cancellable="true"
validate="false">
<forward name="ShowLogon" path="page.logon"/>
</action>
******* tiles-defs.xml *****************
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.3//EN"
"http://struts.apache.org/dtds/tiles-config_1_3.dtd">
<tiles-definitions>
<definition name="base.definition" path="/layouts/template.jsp">
<put name="title" value="Tiles tutorial homepage" />
<put name="header" value="/header.jsp" />
<put name="menu" value="/menu.jsp" />
<put name="leftnav" value="/leftnav.jsp" />
<put name="footer" value="/footer.jsp" />
</definition>
<definition name="page.logon" extends="base.definition">
<put name="body" value="/logon.jsp" />
</definition>
</tiles-definitions>
******** portion of action *************
forward = mapping.findForward("ShowLogon");
// Finish with
return (forward);
On Tue, Dec 29, 2009 at 4:49 PM, Andy T <[email protected]> wrote:
> Thanks Antonio . . . I've been out for a few days but I just wanted to
> acknowledge your help . . . As always, it's much appreciated . . .
>
> Andy
>
> On Mon, Dec 21, 2009 at 9:59 AM, Antonio Petrelli
> <[email protected]> wrote:
>> 2009/12/21 Andy T <[email protected]>:
>>> I'm using Struts 1.3 and Tiles 2.1.
>>
>> Tiles 2 does not work with Struts 1.x via the Struts plugin, sorry.
>> You can still use Tiles 2 without a plugin, but you have to do it your
>> actions:
>> http://tiles.apache.org/2.1/framework/tutorial/basic/pages.html
>> See "Render the definition" section at the end of the page.
>>
>> Ciao
>> Antonio
>>
>