• Post Reply Bookmark Topic Watch Topic
  • New Topic

doubt in JSTL c:out

 
sgp sundar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to know how to pass the value in c ut tag

<%String s=request.getParameter("user");%>

how to print this s using ut
<c ut value="${s}"/> is not working
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


It should work fine.

[edited]
Hey you confused me buddy. I thought s is your parameter. I avoid scriplets in JSP, therefore didn't consider your scriplet code ;).
Well pick, Ben.
[ October 28, 2005: Message edited by: Adeel Ansari ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't need to create the scriplet variable and shouldn't.



The point of JSTL is to eliminate the need for scriptlets in the view tier.




[grr.. smilies should be disabled by default]
[ October 27, 2005: Message edited by: Ben Souther ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!