aspose file tools*
The moose likes Struts and the fly likes logic: equal ignore case Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "logic: equal ignore case" Watch "logic: equal ignore case" New topic
Author

logic: equal ignore case

Venkata Sirish
Ranch Hand

Joined: Apr 09, 2007
Posts: 112
Hi,

i need a logic tag to do a case insensitive check like ( String equalsIgnoreCase method).

Can any one help me out .

Thanks in advance,
Guru
Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
"equalsIgnoreCase", AND-ing, OR-ing are but one of the many shortcomings, which has led to an increased adoption of JSTL tags as the preferred set tags while developing JSPs.

If migrating to JSTL is not a feasible option for you, then I fear you can either (a) write a Java scriptlet to implement your logic, or (b), extend the "logic" taglib library and put in your own implementation of "equalsIgnoreCase" within the TLD.
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
I generally figure that if I have to think for more than a few seconds about how to code something using tags in the jsp then it is better to just move the logic into the action form class. I am not sure what you are testing here...if you are comparing two form properties you could add a method that returned a boolean and use logic:equal or maybe you could create a method that returned the needed property as all upper (or lower) case.

- Brent
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: logic: equal ignore case