I'm not aware that Tiles knows anything about the value stack--it's framework-neutral. Do you have a link to the documentation that suggests otherwise?
That aside--there's no reason to do this in the Tiles configuration even if you could--just access the "title" property in the JSP.
Daniele De Rossi
Greenhorn
Joined: Apr 05, 2010
Posts: 8
posted
0
I have to access to ValueStack because I want to make the web brouser title dynamically.
Same as this site, the title should display the subject of the article.
Is there another way to make title dynamic except pushing the value from action class?
(Sorry for my bad English. I hope you understand what I mean)
When i tried it is giving me page title ${title}.
How to replace that title value dynamically?
Thanks
Venkata
Daniele De Rossi
Greenhorn
Joined: Apr 05, 2010
Posts: 8
posted
0
Hm.. first make sure that you have the 'title' field in your action, and push the 'title' by setters.
And as far as I know, there's no way to access valuestack from xml.
So don't try it from tiles-config.xml, but from your layout.jsp.
That is what we got from the discussion above.
yourLayout.jsp
And this will show the title normally.
I think it's better not to use any EL in tiles.xml.
And each definition of tiles, you should put the value of title attribute which clearly explains what this page is about.
You either need an action property named "title" (with a public getter), or you need to get the title from your form variable-that "pollByCatForm", about which I know nothing. Are you implementing ModelDriven or something? Please TellTheDetails or it's difficult to help.
venkata.reddy pammi
Greenhorn
Joined: Apr 19, 2010
Posts: 5
posted
0
Hi David,
My sinceare Thanks for your reply and these are the details.
Venkata please Use Code Tags when you post a source code. That way your code looks formatted. Unformatted code is hard to read. You can add code tags by wrapping your code in [code] [/code] tags. You can edit your message using button and then add code tags to it...