Since the whole question about using JSTL tags in Tiles went off in a
different direction, I'll try again.

(No, I don't have a burning desire to force them into some open source
project -- but in the Tiles case, no one commented on the general question
and it went in a different direction.)

Anyway, am I the only one who finds this syntax tedious?

<s:url id="es" action="Hello">
<s:param name="request_locale">es</s:param>
</s:url>
<s:a href="%{es}">Español</s:a>

One think I really liked about the ol' html:link tag was automatic URL
rewriting.

I don't know, I guess once you start thinking about all the parameters you
might need to pass, it may be unworkable.  My first thought was

<s:a href="${s:rewrite('/index.do'}">foo</s:a>

At least if we do have a use case for JSTL functions, we could use the
ActionContext threadlocal to get our hands on the ServletContext, etc.

Is it worth doing something for just the simplest case, or should I just get
used to a little extra clutter in my pages?

Joe

--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com

"The truth is that we learned from João forever to be out of tune."
-- Caetano Veloso

Reply via email to