Re: Getting the definition a tile is in (WAS: tiles and forwards)

2006-06-13 Thread Antonio Petrelli
navin mca ha scritto: It won't give the definiton which content the current page but u have to give the definition name which contains the current page. OK just a case of misunderstanding. It is needed to do exactly the opposite, i.e. getting a definition name given the current page...

Re: Getting the definition a tile is in (WAS: tiles and forwards)

2006-06-13 Thread navin mca
>Do you mean that, inside a JSP page, you are able to get the definition >that contains the current JSP page? It won't give the definiton which content the current page but u have to give the definition name which contains the current page. U have to pass the definition name to the Defini

Re: Getting the definition a tile is in (WAS: tiles and forwards)

2006-06-13 Thread Antonio Petrelli
navin mca ha scritto: Hi, We can get the whole defition at run time and can also get its attributes and their value. Let me know if this help you then i will post the code. Do you mean that, inside a JSP page, you are able to get the definition that contains the current JSP page

Re: Getting the definition a tile is in (WAS: tiles and forwards)

2006-06-13 Thread navin mca
Hi, We can get the whole defition at run time and can also get its attributes and their value. Let me know if this help you then i will post the code. regards, Novin Antonio Petrelli <[EMAIL PROTECTED]> wrote: Sorry again, for a mistake I hijacked TWICE my own thr

Getting the definition a tile is in (WAS: tiles and forwards)

2006-06-13 Thread Antonio Petrelli
Sorry again, for a mistake I hijacked TWICE my own thread! Ugh this is a very bad day! If it doesn't work now I will give up, I swear! I am starting a new thread to rephrase a question from Rudolph Lang, so that other users can see this question, because I don't know the answer. Rudolph Lang (an

Getting the definition a tile is in (WAS: tiles and forwards)

2006-06-13 Thread Antonio Petrelli
Sorry, for a mistake I hijacked my own thread! Ugh I am starting a new thread to rephrase a question from Rudolph Lang, so that other users can see this question, because I don't know the answer. Rudolph Lang (and I am pretty curious about the answer :-) ) wants to know if there is a way to get t

Getting the definition a tile is in (WAS: tiles and forwards)

2006-06-13 Thread Antonio Petrelli
I am starting a new thread to rephrase a question from Rudolph Lang, so that other users can see this question, because I don't know the answer. Rudolph Lang (and I am pretty curious about the answer :-) ) wants to know if there is a way to get the Tiles definition that contains the current JSP

Re: tiles and forwards

2006-06-13 Thread Rudolf Lang
Do you mean that you want to get the definition the file "locale.jsp" is in? If yes I think it is better to start a new thread, because I don't know the answer and I would like someone else to see this question. Otherwise, please explain what you mean. That's exactly what i mean, thanks. Rudo

Re: tiles and forwards

2006-06-12 Thread Antonio Petrelli
Rudolf Lang ha scritto: The next is, how can I get the actual tilesDefintion in the locale.jsp (perhaps by jstl and EL) or in the LocaleAction.java ? Do you mean that you want to get the definition the file "locale.jsp" is in? If yes I think it is better to start a new thread, because I don't

Re: tiles and forwards

2006-06-09 Thread Rudolf Lang
Antonio Petrelli ha scritto: Can you post the code of your action? At least the part when you return the forward in the "execute" method? I have a suspect. Now I use my own LocaleAction (extends Action !) with the following returns : if (page != null && page.length() > 0) return new Act

Re: tiles and forwards

2006-06-09 Thread rula2005
tonio Petrelli" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, June 09, 2006 12:45 PM Subject: Re: tiles and forwards Can you post the code of your action? At least the part when you return the forward in the "ex

Re: tiles and forwards

2006-06-09 Thread rula2005
e); } } - Original Message - From: "Antonio Petrelli" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, June 09, 2006 1:00 PM Subject: Re: tiles and forwards Antonio Petrelli ha scritto: Can you post the code of your action? At least the part

Re: tiles and forwards

2006-06-09 Thread Antonio Petrelli
Antonio Petrelli ha scritto: Can you post the code of your action? At least the part when you return the forward in the "execute" method? I have a suspect. Uh sorry, I didn't notice that you used an internal Struts action! Anyway let me think about it --

Re: tiles and forwards

2006-06-09 Thread Antonio Petrelli
rula2005 ha scritto: 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: Mmm... this is strange... Can you post the code of your action? At least the

Re: tiles and forwards

2006-06-09 Thread rula2005
ocessor.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" Sent: Friday, June 09, 2006 8:08 AM Subject: Re: tiles and fo

Re: tiles and forwards

2006-06-09 Thread Antonio Petrelli
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 als

Re: tiles and forwards

2006-06-08 Thread rula2005
s Mailing List" Sent: Friday, June 09, 2006 7:21 AM Subject: RE: tiles and forwards Where do you define the tiles? (Filename) How did you specify the filename to the tiles request processor/struts config? -DAvid -Original Message- From: rula2005 [mailto:[EMAIL PROTECTED] Sent: Fri

RE: tiles and forwards

2006-06-08 Thread David Friedman
Where do you define the tiles? (Filename) How did you specify the filename to the tiles request processor/struts config? -DAvid -Original Message- From: rula2005 [mailto:[EMAIL PROTECTED] Sent: Friday, June 09, 2006 3:06 AM To: user@struts.apache.org Subject: tiles and forwards Hi, I

tiles and forwards

2006-06-08 Thread rula2005
Hi, I use struts 1.2 with tiles. There are a template layout.jsp, a tile locale.jsp and 2 tileDefinitions a.page and b.page. With the org.apache.struts.actions.LocaleAction there are problems. In the locale.jsp: (language switch) If the page attribute is set to a tilesDefintions