• 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

Passing field information

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I'm using Struts 1.3.5 and basically stuck at how to pass information between action method, JSP pages etc.

Basically I've a collection of objects that I would like to display using drop down box. So for that I use



The collection 'location' consists of objects of class 'Location' and the class Location has three fields location code, location name, location type. So using above I can pass on location code & location name, but I also want to pass the selected location 'location type' as well. How do I do this?

Various options I tried are :

1. Passing on Selected 'Location' as a object. But doesn't work
2. Passing on location code as HIdden field inside HTML:Select. But this also doesn't work and I never get to pass the value.

Any ideas or best way to do it.

Thanks in advance.



 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic