Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts1.2 Equals Tag Problem

 
S Subbu
Ranch Hand
Posts: 87
jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 329
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
S Subbu
Ranch Hand
Posts: 87
jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 87
jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 329
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, what stops you from using custom library? Something like this wouldnt be supported by any tools, i guess

 
S Subbu
Ranch Hand
Posts: 87
jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks You Shankar , I wrote a Custome Tag For Handling this Problem.

Thanks You Very Much For Your Coparation.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic