• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

why is jsp:attribute considered rtexprvalue ?

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

The JSP and jslt specs says that <jsp:attribute> can only be used to set tag attributes that are rtexprvalue.

Does anybody has an idea why? How come the following attribute value cannot be considered static :




Cheers

[ May 31, 2006: Message edited by: Rodrigo Alvarez ]
[ May 31, 2006: Message edited by: Rodrigo Alvarez ]
 
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please check the specifications again

Under "JSP.5.10 <jsp:attribute>"

You will see "The behavior of the <jsp:attribute> standard action varies depending on the type of attribute being specified, as follows:"

If the custom action attributes of type javax.servlet.jsp.tagext.JspFragment...................

If the custom action accepts dynamic attributes............

If custom action attributes that accept a request-time expression.........

If custom action attributes that do not accept a request-time expression
value the Container must use the body of the <jsp:attribute> action as
the value of the attribute. A translation error must result if the body of the
<jsp:attribute> action contains anything but template text.


So you can have the template text.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic