• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsp include nested in a foreach loop makes me crazy

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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??
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please read this.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic