aspose file tools*
The moose likes Struts and the fly likes Struts1.2 Equals Tag Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts1.2 Equals Tag Problem" Watch "Struts1.2 Equals Tag Problem" New topic
Author

Struts1.2 Equals Tag Problem

S Subbu
Ranch Hand

Joined: Mar 20, 2012
Posts: 87

How can i use Equal Tag in structs Tags

My Problem is Compare two Map Key Values. But i got exception when i am using struts equal tag.

Equal Tag can compare constants only?




COMPARE TWO KEY IN THOSE MAPS USING Struts Tags , how can i achieve It?

Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

Hi Subbu,
To me the best way is to write a custom tag library for achieving the same. I do not see any other way out.
Additionally, what is that situation which requires such a comparison? Is the chosen data structure[Map] appropriately used, in terms of design -or should it be something else?


Have Fun with Java
little,little.. little by little makes a lot..
S Subbu
Ranch Hand

Joined: Mar 20, 2012
Posts: 87

But Some Problem pull back to me to write a custom tag .

I have to use JSTL or Struts Tag Lib i fixed to do that with out using javascript.Is it possible with JSTL( I am new to JSTL and Struts)
S Subbu
Ranch Hand

Joined: Mar 20, 2012
Posts: 87

HI Shankar,

I started my work using JSTL but EL does not work in my application.

Actually i am using myEclipse and my project is java 1.4 compatiablity.

I changed that to java 1.5 and added jstl1.2 But EL not working My Expression Language Printed as it is.

Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

Sorry, what stops you from using custom library? Something like this wouldnt be supported by any tools, i guess

S Subbu
Ranch Hand

Joined: Mar 20, 2012
Posts: 87

Thanks You Shankar , I wrote a Custome Tag For Handling this Problem.

Thanks You Very Much For Your Coparation.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts1.2 Equals Tag Problem