aspose file tools
The moose likes Struts and the fly likes s:if and enum enum test. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "s:if and enum enum test." Watch "s:if and enum enum test." New topic
Author

s:if and enum enum test.

paddy Mahadeva Iyer
Ranch Hand

Joined: Feb 10, 2007
Posts: 63
Hi,

I have to compare an enum in my <s:if> tag. The code i have written is

Here getMyEnum will return me an enum object of type MyEnum. I need to check if the object's string value is equal to "x" or not. I know this code is not correct. But i tried a lot of things like using toString() of enum and all. Can somebody help please.

Thanks in advance
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: s:if and enum enum test.
 
Similar Threads
Struts tag iterator new line every 4th item
Struts 2 iterating enums
Define enum as Spring Bean and dependency inject it into another Spring Bean
generic enum and the values() method
protected allowed in enum. So extending enum types possible?