File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts $ and % difference" Watch "struts $ and % difference" New topic

struts $ and % difference

pamir sonmez
Ranch Hand

Joined: May 31, 2010
Posts: 47
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

Joined: Oct 29, 2001
Posts: 9189

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

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: struts $ and % difference
It's not a secret anymore!