This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp include nested in a foreach loop makes me crazy  RSS feed

 
Sebastien Denis
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my code:

And row.jsp is

This does not work.
So I tried

and

Nothing works.
Of course..

is ok
Any idea??
YES
like this it works:


Strange however that I couldn't pass complex var in jsp:param??
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this.
 
Laurie Chan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sebastien Denis wrote:This is my code:

Strange however that I couldn't pass complex var in jsp:param??


You're correct that the jsp:param cannot pass complex objects and *very* close with that first try.
You just needed to pass the value of tmpRow through rather than just its name.
eg it works for me with


 
Sebastien Denis
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Laurie Chan wrote:
You just needed to pass the value of tmpRow through rather than just its name.
eg it works for me with



Damn i'm stupid sometimes. Of course this is what i do usually and not this time... I need to more
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!