• 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

how to populate multiple select ,when one select value is selected other should be populated.

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I have 3,4 select in my first.jsp page.

when i select Country in first select, i should be able to populate second select with states in that country, when i select state,city select should be populated. and when i select city ,area select should be populated. all these values will be populated from database.

i have tried approach :

like my jsp page is

[/code]

struts.xml



[/code]
and corresponding action class is



But i am not getting the correct result.
get exception
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception




OR Is there any other way thru which i can resolve this problem.?

Thanks
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In future, while posting code, please UseCodeTags properly. Before posting, you can use the "Preview" Button. After posting you can use the to make modifications
 
pinky deshmukh
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

pinky deshmukh wrote:Hi All,
I have 3,4 select in my first.jsp page.

when i select Country in first select, i should be able to populate second select with states in that country, when i select state,city select should be populated. and when i select city ,area select should be populated. all these values will be populated from database.

i have tried approach :

like my jsp page is

[/code]

struts.xml



[/code]
and corresponding action class is



But i am not getting the correct result.
get exception
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception




OR Is there any other way thru which i can resolve this problem.?

Thanks



can anybody suggest any other approach or tell me where am I going wrong?
 
Evildoers! Eat my justice! And this tiny ad's justice too!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic