• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

jsp actions + expr values

 
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ${}" ?
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<jsp:setProperty> and <jsp:getProperty>
 
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
so..Would be possible to do this:

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

?

Tks,
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
yeah, but ... what would PIE do? Especially concerning this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic