• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp actions + expr values

 
Steven Colley
Ranch Hand
Posts: 290
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<jsp:useBean ..>
<jsp:include ..>
<jsp:forward ..>
<jsp aram ..>

are there other jsp tag actions that can be used with expression values such as "<%= %> or ${}" ?
 
Connie Ky Leung
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<jsp:setProperty> and <jsp:getProperty>
 
Narendra Dhande
Ranch Hand
Posts: 951
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

Thanks
 
Steven Colley
Ranch Hand
Posts: 290
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 290
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 290
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so..Would be possible to do this:

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

?

Tks,
 
Gab Buda
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Steven Colley
Ranch Hand
Posts: 290
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gab,

Something like this right?

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

tks Gab,
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic