This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes valid places where we can put EL? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "valid places where we can put EL?" Watch "valid places where we can put EL?" New topic
Author

valid places where we can put EL?

Veena Pointi
Ranch Hand

Joined: Jun 20, 2002
Posts: 442
What are valid places where we can use EL?

for example in HFSJ I saw following use of EL

<jsp:useBean id="myDog" class="foo.Dog">
<jsp:setProperty name="myDog" property="name" value="${list[1]}"/>
</jsp:useBean>

We can use EL in any jsp standard action? I am listing where all I saw EL being used till now

1.JSP page
2.jsp:setProperty

Can anybody list other places where EL is legal?It can be used anywhere in jsp?

Thanks
Veena


SCJP1.4
"Continuous effort - not strength or intelligence - is the key to unlocking our potential."
*Winston Churchill
Steven Colley
Ranch Hand

Joined: Feb 18, 2005
Posts: 290
Hi Veena,

You can use EL expression in :

- a normal "template text data" <h1> ${xx} </h1>

- ALL XML actions such as standarts, JSTL and custom tags that accept "request-time expressions".

JSP STAND ACTION
--------------------
<jsp:include>
<jsp:forward>
<jsp aram>
<jsp:setProperty>

JSTL
-------

<c ut value="EL" />

<c:var target="EL mandatory" value="EL" />

<c:if test="EL" /> and <c:when value="EL" />

<c:forEach items="EL" begin="EL" end="EL" step="EL" />

<c:url value="EL"> , <c:import url="EL" /> and <c:redirect url="EL" />


CUSTOM TAGS
-------------
for all tags that have declated <rtexprvalue>true</rtexprvalue>


Hope it help you!


SCJP | SCWCD | SCBCD | SCWSD 5 | SCEA (I) 1.4 | SCEA 5 | IBM SOA 669
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: valid places where we can put EL?
 
Similar Threads
Doubt on EL
http status 500 error
Bean or Servlet
jsp:useBean and jsp:setProperty action tag
jspSetProperty Doubt??