Hi, thank you for your response.
Shawn Bayern wrote: > > On Mon, 28 Jan 2002, Wolfgang R�ckelein wrote: > > > how do I access session scoped variables from expression language in the > > standard taglib library? > > The answer depends on the actual expression language you use. EA3 doesn't > define just a single expression language; instead, it lets you plug in > various experimental ones. The expert group decided on this approach for > the early-access RI to encourage testing and feedback. The final version > of JSTL will use a stable, easy-to-use expression language. Yes, I know now I should have provided the info which EL I use. I use the default ECMAscript at the moment. > Having said that, in JSTL EA3 by default, you can access session-scoped > attributes simply by using their names. To access 'foo' in session scope, > for instance, just use the following expression: > > $foo OK. I will try that. Somehow I did not get this to work. Perhaps this (and also what mappings etc are supported) should be mentioned on http://jakarta.apache.org/taglibs/doc/standard-doc/EcmaScriptEL.html like the sections "Named Values" and "Property Values" on http://jakarta.apache.org/taglibs/doc/standard-doc/spel/spel.html. > EA3 also comes with a language called SPEL that lets you access scopes > specifically: > > $session:foo > $request:foo OK. BTW: Where should we provide input to the EL discussion? Is this discussion public? Does the ECMA implementation support all scopes that SPEL supports: page, request, session, app, header, param, paramvalues? Regarding the question regarding "and, or, not" on http://jakarta.apache.org/taglibs/doc/standard-doc/spel/spel.html: I think this depends on the goal of the JSTL in whole: Should there still be normal to use Java code in JSP or is the aim that most Java code should be replaced with tag lib usage? If the later is the goal, the EL needs not only boolean operators but eg math and string operators, too. BTW: Are you sure that the core-rt version of "if" works? I never succeeded in getting the body evaluated, even with test="1==1"... Greetings, Wolfgang
smime.p7s
Description: S/MIME Cryptographic Signature
