Interesting.
Isn't the ".do" extension just a placeholder for ".jsp" or some other
extension that is mapped in your struts-congif.xml?
I was also under the impression (maybe incorrectly) that I could map a URI
to a file (or in this case a tile definition) in my struts-config.xml and
also associate action classes with my tiles.

I'll try your " jsp page with a <tiles:insert definition="home.page" /> tag"
idea and see how that goes.

Thanks.


-----Original Message-----
From: Antonio Petrelli [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 07, 2006 10:09 AM
To: Struts Users Mailing List
Subject: Re: configuring tiles with struts 1.2.9

Darren Hall ha scritto:
>> I think that the URL is wrong :-)
>> If you configured your webapp in as the ROOT webapp, then you can access 
>> that action at:
>>
>> http://localhost/flc.do
>>     
>
> This application is not the root application, it is the "flc" application,
> located at the path "/flc" (under the webapps folder). However, from my
> struts-config.xml (see below) file, I have a mapping for the path /flc to
my
> tile definition "home.page". Will this not work?
>   

No, it is the mapping of:
http://localhost/flc/flc.do

But maybe you want to access the "home.page" definition as your 
homepage, right?
If it is so, you have to know that you cannot put as a homepage things 
that are not an html or a jsp page (therefore an action is not correct).
Why don't you use simply a jsp page with a <tiles:insert 
definition="home.page" /> tag?

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