@Greg Huber
It should be possible to use the struts2 conventions to establish titles,
as I have tiles even for the header block (keeps JSPs, CSS constant where
it should be constant) it is then required to set the page title
programmatically. Also tiles supports multiple types of expressions with a
prefix so in a few cases you'll want to push in content from struts
(consider a wiki where the whole body is fetched from a db) I find myself
relying on the REGEX
 prefix such that struts conventions are extended though to the formatting.
That is, parts of the matched action are used to locate the page body, just
as you would expect from conventions but that the page is also templated as
per tiles.

@Lukasz I'm not sure about the OGNL access... I'm pretty confident that it
worked without any input on my part. But I probably was only accessing
simply properties on the actions. So while I did apply the OGNL prefix, it
might have been getting the values from the JSP wrapper (probably wrong
term), like using plain EL in a JSP? I think the OGNL in tiles has it's own
implementation/engine, so while OGNL expression would work maybe it wasn't
getting the data from where I thought... in any case it did work at the
time ;)

On Wed, Sep 7, 2016 at 1:24 AM, Lukasz Lenart <[email protected]>
wrote:

> 2016-09-07 9:19 GMT+02:00 Greg Huber <[email protected]>:
> > aren't tiles definitions more layout oriented and more static in nature?
> > Where would you actually use the "title" attribute?
> >
> > <tiles:insertAttribute name="title" />
>
> As a page <title> tag and/or as a page header e.g.
> <h1><tiles:insertAttribute name="title" /></h1> - it's useful when
> these tags are placed in the main layout.jsp
>
>
> Regards
> --
> Ɓukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Sent from my C64 using a 300 baud modem

Reply via email to