wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes jsp actions + expr values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "jsp actions + expr values" Watch "jsp actions + expr values" New topic
Author

jsp actions + expr values

Steven Colley
Ranch Hand

Joined: Feb 18, 2005
Posts: 290
<jsp:useBean ..>
<jsp:include ..>
<jsp:forward ..>
<jsp aram ..>

are there other jsp tag actions that can be used with expression values such as "<%= %> or ${}" ?


SCJP | SCWCD | SCBCD | SCWSD 5 | SCEA (I) 1.4 | SCEA 5 | IBM SOA 669
Connie Ky Leung
Ranch Hand

Joined: Jan 29, 2006
Posts: 42
<jsp:setProperty> and <jsp:getProperty>


SCJP 1.4 - 91%, SCWCD - 97%, SCJP 5.0 - 83%, SCJP 6.0, OCEJWCD - 80%
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 950
Hi,

The <jsp:getProperty> does not use any request time expressions in its attributes.

Thanks


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
Steven Colley
Ranch Hand

Joined: Feb 18, 2005
Posts: 290
Hi,

Yup <jsp:setProperty> is�s fine, but <jsp:getProperty> is not supposed to work with expressions values such as <%=%> and ${} as Narandra told us.


Tks.
Steven Colley
Ranch Hand

Joined: Feb 18, 2005
Posts: 290
Hi,

and what about <jsp:attribute> standart action element?

I Didn�t find anything about in JSP spec. (JSP 1.14.1 - page 1-59).

Tks.
Steven Colley
Ranch Hand

Joined: Feb 18, 2005
Posts: 290
so..Would be possible to do this:

<tag:someTag>
<jsp:attribute name="itsAttrb">${itsValue}</jsp:attribute>
</tag:someTag>

?

Tks,
Gab Buda
Greenhorn

Joined: Mar 25, 2006
Posts: 24
Hi Felipe,

Concerning <jsp:attribute>, you can use EL/scripting only if the attribute of the enclosing tag (for which you are setting a value with this jsp:attribute) has rtexprvalue set to true.

There is a section about <jsp:attribute> in the jsp specs (JSP.5.10)

Thanks for your question, this make us studying harder


Gab


SCJP 1.4 (85%)<br />SCWCD 1.4 (94%)
Steven Colley
Ranch Hand

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

Something like this right?

<tag>
blabl�....
<attribute>
<name>itsAttrb</name>
<required>true/false<required>
<rtexprvalue>true</rtexprvalue>
</sattribute>
</tag>

tks Gab,
 
 
subject: jsp actions + expr values