• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can a Custom Tag support jstl tag ?  RSS feed

 
Waez Ali
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a custom Tag and I want to use Cut in that as given below

<test:input type="text" value="<cut value=${requestScope.vb.name}" />

But it doesn't work, Can someone help me how I can use C:OUT in my Custom Tag ? Is there any way to do so or its not possible.

Thanks in Advance
 
Pedro Erencia
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Waez Ali:
Hi,

I have a custom Tag and I want to use Cut in that as given below

<test:input type="text" value="<cut value=${requestScope.vb.name}" />

But it doesn't work, Can someone help me how I can use C:OUT in my Custom Tag ? Is there any way to do so or its not possible.

Thanks in Advance


First, you need to set the attribute on the tld as <rtexprvalue>true</rtexprvalue>.
Then you should use directly the el expression directly.

[ August 29, 2008: Message edited by: Pedro Erencia ]
[ August 29, 2008: Message edited by: Pedro Erencia ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot use any JSP action as the attribute of another action. If you need the encoding that <c;out> performs, check out the JSTL fn:escapeXML() function.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!