aspose file tools*
The moose likes JSP and the fly likes Displaying a value set using c:set Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Displaying a value set using c:set" Watch "Displaying a value set using c:set" New topic
Author

Displaying a value set using c:set

Shivakanth Thyagarajan
Ranch Hand

Joined: Mar 28, 2005
Posts: 41
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

Joined: Mar 28, 2005
Posts: 41
Sorry, I could solve the issue, I had not included the taglib directive for JSTL in my JSP page.



Thanks
Shivakanth.T
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying a value set using c:set