• Post Reply Bookmark Topic Watch Topic
  • New Topic

use bean:message tag inside my jstl c tag

 
Rahi Sanj
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Can I use bean:message or any other struts tag inside my jstl c tag?

I am trying to use it like this,

<c:if test="${thisError eq '<bean:message key="error.del"/>'}">
// other display tags
</c:if>

but getting parse exception. Is it because I'm using struts tag inside jstl or syntax is wrong?

I know I cant struts tag inside another struts tag. Is it the same case with JSTL too.

also, can I use another jstl tag inside jstl tag.

Thank You.

regards,
rahi
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Rahi S",

We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And no, you cannot use a custom action, Struts-provided or otherwise, in an EL expression.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!