On Fri, Jun 13, 2003 at 12:29:11AM +1000, Mike Cannon-Brookes wrote: > Anders, > > Might I just say that you can do it 'cleaner' using SiteMesh properly :) > > > some-page.jsp > > <% > > request.setAttribute("current_view_name", "some-page"); > > %> > > <html> > > <yadda yadda /> > > </html> > > becomes: > > > some-page.jsp > > <html> > > <meta name="view_name" content="some-page"> > > <yadda yadda /> > > </html> > > And the decorator becomes: > > Can just use <decorator:getProperty name="meta.view_name"> and > <decorator:isPropertySet name="meta.view_name"> to govern it's logic?
:) That's lovely - The original way of doing this was concieved before sitemesh was introduced into the project, so Ï'll use that as an excuse ;) > > Using HTML META tags is a lot nicer for HTML guys! > So true.. Something a HTML editor like Dreamweaver can handle as well! Thanks for the feedback :) //Anders -- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Anders Engström [EMAIL PROTECTED] . http://www.gnejs.net PGP-Key: ED010E7F . [Your mind is like an umbrella. It doesn't work unless you open it.]
pgp00000.pgp
Description: PGP signature