Re: Re[4]: EL Expression in html:hidden tag

2003-11-06 Thread Kris Schneider
Yup, that's the theory anyway. As of JSP 2.0 (with a Servlet 2.4 format web.xml
that has not explicity deactivated EL evaluation), request-time attribute values
can be specified using either the familiar scriptlet expression (<%= %>) or the
EL (${}). So, any pre-JSP 2.0 tags that have attributes with
true in their TLD file will automatically be able to
use the EL for request-time attribute values.

Quoting Arne Brutschy <[EMAIL PROTECTED]>:

> Hello,
> 
> Monday, November 3, 2003, 7:20:31 PM, you wrote:
> KS> I'm jumping in late on this thread, but why bother using Struts-EL at all
> under
> KS> JSP 2.0? The original (RT) tags should be magically EL-aware as long as
> the app
> KS> uses a Servlet 2.4 format web.xml, right?
> 
> Oh, really? I didn't know that. So I can work with the normal struts
> lib? I just need to declare a 2.4 web-app?
> 
> Thanks,
> Arne

-- 
Kris Schneider 
D.O.Tech   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re[4]: EL Expression in html:hidden tag

2003-11-08 Thread Craig R. McClanahan
Quoting Arne Brutschy <[EMAIL PROTECTED]>:

> Hello,
> 
> Monday, November 3, 2003, 7:20:31 PM, you wrote:
> KS> I'm jumping in late on this thread, but why bother using Struts-EL at all
> under
> KS> JSP 2.0? The original (RT) tags should be magically EL-aware as long as
> the app
> KS> uses a Servlet 2.4 format web.xml, right?
> 
> Oh, really? I didn't know that. So I can work with the normal struts
> lib? I just need to declare a 2.4 web-app?
> 

And run in a Servlet 2.4 / JSP 2.0 container of course ;-)

Not only will EL expressions work for attributes in any tag (as long as the
attribute accepts runtime expressions), it will also work in template text. 
Consider a snippet like this to display a table of stuff from a list of
customer beans in a scoped variable named "customers":

  

  Account Id
  Customer Name
  Total Sales


  
${customer.accountId}
${customer.name}
${customer.totalSales}
  

  

JSP 2.0 has lots of other cool things to, including the ability to point at a
chunk of JSP code and treat it just like a tag, without having to write
anything in Java.

> Thanks,
> Arne
> 

Craig


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]