• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts1.2 Equals Tag Problem

 
Ranch Hand
Posts: 87
jQuery
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

 
Ranch Hand
Posts: 329
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks You Shankar , I wrote a Custome Tag For Handling this Problem.

Thanks You Very Much For Your Coparation.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic