Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

one jsp problem in struts

 
dennis deng
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, guys, i found a very strange things in struts. Following is JSP code seg.
<card id="Nec_seg<%=filenumber_bean.intValue()+1%>"title="END"> // this is ok
<card id="Nec_seg<jsp:expression>filenumber_bean.intValue()+1</jsp:expression>"title="END">//this is wrong!!!
BTW , filenumber_bean is a Integer object in request scope.
Did struts not support XML view JSP expression?
Thanks alot.
 
Junilu Lacar
Bartender
Pie
Posts: 7292
44
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I doubt that Struts is the culprit here. Have you checked if <jsp:expression> works in a jsp that doesn't use struts tags?
 
dennis deng
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Junilu.. I will check it.
Does someone else know some hints on this problem?
 
Ted Husted
Author
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not clear what this has to do with Struts. The framework bundles a set of JSP tags that people find useful, but the tags are generally well behaved.
-Ted.
 
dennis deng
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ted.. Does someone else know some hints on this problem?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic