Tags are great for a variety of things. Stripes layouts are (to me)
really like "super tags". One of the main qualitative improvements
over tag files is that a layout component can be a whole bunch of JSP
(including, once and I hope again soon, more invocations of layouts
:-)

To me the use of nested layouts is a simplification, not a
complication. I use a surrounding layout for the overall page, and
then when there are common page components that call for more than
what a tag or (ick) a jsp include can do, I use more layouts. It makes
it much easier to manage site-wide changes.

On Tue, Jan 31, 2012 at 3:59 PM, Moritz Petersen
<moritz.peter...@gmail.com> wrote:
> Thank you everyone for the constructive replies. That JSP 2.0 tag files was a 
> good advice and it works perfectly well.
>
> Actually, I wasn't getting a real error message, but just weird behavior. The 
> tag files solved my problem and are quite an elegant solution.
>
> Regards,
> Moritz
>
>
> Am 31.01.2012 um 17:55 schrieb Thomas Menke:
>
>> On 01/31/2012 10:13 AM, Moritz Petersen wrote:
>>> Hello everyone,
>>>
>>> maybe I'm missing something, but I have trouble doing the following:
>>>
>>> The idea is to define a piece of reusable JSP code, that can be
>>> embedded into other JSP pages. I thought it should be quite simple
>>> with Stripes' layout tags.
>>>
>>> Is there any way to do this with Stripes? Any other recommendations?
>>
>> Have you considered using JSP 2.0 tag files?
>> http://stackoverflow.com/a/3257426
>>
>> This is a quite powerful solution and it is "supported" by eclipse (in
>> the means that eclipse provides code completion for your custom tags and
>> attributes and since it is built into JSP you can use it in any environment.
>> Only drawback is that you can't use it if you are stuck on an old JSP
>> version.
>>
>>>
>>> Thank you&  regards,
>>> Moritz
>>
>> Thomas
>>
>> ------------------------------------------------------------------------------
>> Keep Your Developer Skills Current with LearnDevNow!
>> The most comprehensive online learning library for Microsoft developers
>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>> Metro Style Apps, more. Free future releases when you subscribe now!
>> http://p.sf.net/sfu/learndevnow-d2d
>> _______________________________________________
>> Stripes-users mailing list
>> Stripes-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users



-- 
Turtle, turtle, on the ground,
Pink and shiny, turn around.

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to