Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

question about c:if

 
Evgenii Rybakov
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All!

How can I write this <%if(searchObj.getCountry().equals((String)countryItem.get("id_country"))){%>,

if I use jstl?

seachObj it's bean
countryItem it's java.util.Map

I write <c:if test="$searchObj.county==[I don't know]">

Thanks.
 
Natasza Biecek
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
assuming that countryItem simply maps a String to another String
you can write like this:


regards,
Natasza
 
Create symphonies in seed and soil. For this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!