Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • 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

Double action call when scriptlets in iterate tag

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
Why, oh why this works:

while this doesn't:

And of course in the first case I cannot generate the strings I need with "name" property of "element".
Is it forbidden to place Java scriptlets inside the iterate tag? Because in the second case I get double call of main.do action and the second call doesn't have the attributes set.
[ January 27, 2003: Message edited by: Maciej Kolodziej ]
 
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in your second example, "element" is not a scripting variable--it is a variable in the pageContext. Try doing a pageContext.getAttribute() in order to access "element" in your scriptlet...
 
reply
    Bookmark Topic Watch Topic
  • New Topic