I am using logic:equal tag to compare value of a property with a constant. If want to compare values of two properties how can i achieve it.
If i have properties string s1 and string s2, how can i compare them in my JSP?
regards, Surendarprabu [ February 27, 2007: Message edited by: surendar prabu ]
posted 9 years ago
The jstl tags make this much easier. Another option is to create a method in your Action Form that returns a boolean value. So rather than having logic in your JSP like (if firstName = 'George' and lastName = 'Bush') you would move this code into your form into a single method named like isCurrentPresident() or getCurrentPresident().