You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2007/11/15 07:17:34 UTC
[jira] Updated: (STR-2941) Provide access to important Struts
variables and constants so they could be easily used with JSTL
[ https://issues.apache.org/struts/browse/STR-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Benedict updated STR-2941:
-------------------------------
Fix Version/s: Future
> Provide access to important Struts variables and constants so they could be easily used with JSTL
> -------------------------------------------------------------------------------------------------
>
> Key: STR-2941
> URL: https://issues.apache.org/struts/browse/STR-2941
> Project: Struts 1
> Issue Type: Improvement
> Components: Core, Taglibs
> Reporter: Michael Jouravlev
> Priority: Minor
> Fix For: Future
>
>
> Struts taglib has many tags that encapsulate Struts/servlet constants/variables and expand them into plain HTML tags. As an example, take a look at <html:base> tag.
> Consider the "home.jsp" page is located in directory "pages". Let us also consider that application context is defined as "myapp".
> An <html:base> tag specified in home.jsp page will generate something like this:
> <base href="http://myserver:8080/myapp/pages/home.jsp">
> A suggested alternative to <html:base> tag would look like:
> <base href="${pageroot}">
> Another example, <html:link>.
> Instead of
> <html:link action="/myAction">My Action</html:link>
> one would use
> <a href="${contextroot}/myAction">My Action</a>
> The benefits:
> * Tag library can be simplified
> * No need to support proper HTML attributes for different tags; why Struts should care whether HTML developed by a programmer is valid or not?
> * The markup looks more like real HTML
> * HTML editing software will not choke on custom tags
> * No hidden meaning, no side effects, just plain old HTML.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.