So say I have a constant declared in the java file or a utility method that returns a value by taking in a value. I can't by default use those without using the JSP RT Expressions. The only way I can use them is set them in some "scope" inside a JSP RT Expression which requires an extra step.
Shawn -----Original Message----- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 25, 2006 12:06 PM To: Struts Users Mailing List Subject: Re: rt tld On 1/25/06, Garner, Shawn <[EMAIL PROTECTED]> wrote: > How come there isn't a rt.tld for JSF that takes in runtime expressions? > I understand that views may return xml or html views instead of jsp but > arn't tld's basically a JSP thing? > > I understand this isn't a concern with JSP 2.0 but I'm still using JSP 1.2. > TLDs are a JSP *only* thing. As background, it is important to remember that JSF 1.0 and 1.1 do not use JSTL EL specifically ... that's why the delimiter is "#{...}" instead of "${...}". The actual interpretation of the expressions is done in the tag implementations. The JSF tags disable runtime expressions to avoid potential security concerns of having an expression that calculates an expression that does something. In JSF 1.2 (coupled with JSP 2.1) there will be only one expression language, but the tags will still disable Java runtime expressions (<%= ... %>) because: * Its basically redundant because the EL expressions give you dynamic calculation capabilities already * It cannot be compiled down to typesafe code (such as allowing a tool to offer you the ability to graphically construct such formulas. * It cannot be customized (in JSF 1.1, for example, you can inject custom VariableResolver and PropertyResolver implementations). Given this, there's no reason for two different JSF TLDs ... just the single TLD that has runtime expressions disabled. > Shawn Craig --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] **************************************************************************** This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. **************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]