This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes struts $ and % difference Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts $ and % difference" Watch "struts $ and % difference" New topic
Author

struts $ and % difference

pamir sonmez
Ranch Hand

Joined: May 31, 2010
Posts: 46
I was looking for the iteration logic of sturts tags and I come accross a document whick checks like;



I could not understand the meaning of % character
because I was always using like



Is there a difference between usage of these two characters?
I searched in google, bur character search is not very helpful.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

Take a look at the Tag Syntax document.
'$' is not used in OGNL.
'%' is used to force a value to be a String.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
wood burning stoves
 
subject: struts $ and % difference
 
Similar Threads
Struts 2 hidden values
How to check value in list using s:if
OGNL string manipulation
OGNL if test throws null stacktrace error
How to access static fields using OGNL in Struts 2