Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Validation-Expression Language  RSS feed

 
vidya archana
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I have a problem with taglibs ..whenever i give
some expressions, it is not getting validated but it is shown simply as text in the jsp page.
this is the tag
<test:hello val='${beanObj.name}' />
the value of the beanObj.name is set using <useBean>..
Also in the tld file, the "rtexprvalue" is set as true.
need help
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which version of JSP are you using? What is the code for TestTag like? EL will be introduced in JSP 2.0 but, is only available inside the JSTL tags before that. You can get the code for JSTL from Jakarta and see how they have implemented EL. You could even extend some of those tags to give you this functionality but, unless you do something specific (ie extend JSTL or write your own EL parser) you will not have it available to you.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!