• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

combining struts tags and jsp tags

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to set the value to the value property dynamically using jsp expression. it' not working properly.why

<logic:notEqual name="listingcinemas" property="cinemaname" value="'"+<%= cinema%>+"'">
 
Junilu Lacar
Bartender
Posts: 7606
54
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wouldn't you just want

value="<%= cinema %>"

? I don't think you need to give the quotes as part of the value unless you want to include the quotes in your comparison. If you want to include the quotes in the value to be compared, do this:

value='<%= "'" + cinema + "'" %>'
[ September 03, 2004: Message edited by: Junilu Lacar ]
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
raj,

You've been asked once already to change your display name and comply with our Naming Policy. I am asking you politly to please change your display name.

Thanks, I hope that you'll do your part and also continue to be part of this great community.
 
Siripa Siangklom
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OR

value="'<%= cinema %>'"
 
Junilu Lacar
Bartender
Posts: 7606
54
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Siripa Siangklom:
OR

value="'<%= cinema %>'"


Are you sure? I don't think that will work.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic