• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Displaying a value set using c:set

 
Shivakanth Thyagarajan
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following code in my jsp.

<c:set var="Fido" value="${userName}"/>
I want to display the value set in "Fido"

I tried this

The dog's name is ${Fido} // It didn't work

I also tried

The dog's name is <c ut value="${Fido}"/> // It also didn't work

I also wanted to know Whether the value we have set in "var" cannot be used as a EL expression.

Please respond at the earliest.
 
Shivakanth Thyagarajan
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I could solve the issue, I had not included the taglib directive for JSTL in my JSP page.



Thanks
Shivakanth.T
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic