File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

combining struts tags and jsp tags

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • 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
Pie
Posts: 6547
21
Java Linux Mac Scala Spring
  • 0
  • 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
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OR

value="'<%= cinema %>'"
 
Junilu Lacar
Bartender
Pie
Posts: 6547
21
Java Linux Mac Scala Spring
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic