Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Passing ActionForm attibute to another action Class

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a JSP page in which I have a multibox. On checking those checkboxes, i have populated the values corresponding to them in an array in the action Form. On click of a button I need to pass this array to a different action class. I was thinking that i could set it in request. But i dont know how i could access the ActionForm attribute within the JSP and set it in request. Please let me know if there is any way to do it.

If you could think of any way to pass this form attribute to another action class please help.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can put an array of hidden fields in the JSP. That way, the values would be passed on to the next action.

Check out This thread for more discussion on this.

[ July 26, 2005: Message edited by: Merrill Higginson ]
[ July 26, 2005: Message edited by: Merrill Higginson ]
 
Jaya Swaminathan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for ur response. I have tried out like this and it works. I submit the form to itself and in the action class, I have set this array in the request and forward it to another action class.
 
What's a year in metric? Do you know this metric stuff tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic