Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP Form values Not able to submit

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

I have one JSP in this I have two select boxes.

The first select box is populated with default values.

From the first select box I am selecting the value and moving to the other select box using java script.

Now the value in the second select box has to be submitted alongwith some other values which I am getting.

These values are to be submitted to a Action class and further to the form bean using struts.

In the form tag in JSP I am calling the struts action class.

The issue here is,I am able to get other values except the values in the second select box.

I am using simple JSP page to get form values and submitting.

I am not using struts tlds because of project constraints.

Please advise on how to pass these values.

Regards,

Ram
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64184
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Ramamoorthy",

We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ram,
Just to make sure I am understanding correctly: you are trying to submit one or more values from a secondary select box.

If this is correct, the solution is to use javascript to loop through and select all the values in the second select box. (You can call a function on form submit.) A parameter is only passed if it is selected. This provides a way around that.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic