[
http://www.stripesframework.org/jira/browse/STS-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12172#comment-12172
]
Sébastien Lesaint commented on STS-788:
---------------------------------------
In the example I provided for the jsp:include issue, I essentially reproduced
what we are doing extensively :
* a JSP calling layout-render for a layout-definition which defines what we
could call a global page template with a content component
* the content component might contain a jsp:include to include a JSPF (let's
call it the content JSPF) which can be defined in Database
* use stripes:layout anywhere in either the page template JSP or the content
JSPF (or any JSP/JSPF it might import) as a way of reusing piece of JSP code
intead of duplicating it
What's great about layout-define as a pseudo-component is that we can easily
pretend they take "variables" :
* variables are passed on to the layout-define as attributes of the
layout-render tag
* we can define default values for them just by having a <c:set> before the
layout-definition tag in the JSPF
* there variables can either be data to generate content from or flags changing
how the JSP renders for example
We get a pretty clean JSP code in the end.
> Layout issues after upgrade from 1.5.3
> --------------------------------------
>
> Key: STS-788
> URL: http://www.stripesframework.org/jira/browse/STS-788
> Project: Stripes
> Issue Type: Bug
> Components: Tag Library
> Affects Versions: Release 1.5.4, Release 1.5.5
> Environment: jetty-6.1.15, Java(TM) SE Runtime Environment (build
> 1.6.0_22-b04-307-10M3261)
> Reporter: David Dundua
> Assignee: Ben Gunter
> Fix For: Release 1.5.5, Release 1.5.6
>
> Attachments: example.tar.gz, stripes-bug-2.zip, stripes-bug-3.zip,
> stripes-bug.zip
>
>
> Guys, I have a couple of layout scenarios which stopped working after
> upgrading to 1.5.4. I have created a couple of test cases demonstrating
> these issues. I am attaching maven2 project.
> 1. mvn jetty:run
> 2. http://localhost:8080/stripes-bug
> 3. take a look at the output of each test under 1.5.4
> 4. change the stripes dependency to 1.5.3
> 5. mvn clean jetty:run
> 6. observe the difference in the output
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development