This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i have a drop down in <form name=dropdown> and i need to submit its value to the next page,
by clicking a button in another <form>
the next page is with String x= request.getParameter and i am getting null.
how can i able to resolve such.
<form name = dropdownn action="a.jsp">
<select name "select">
<form name= button action="b.jsp">
<input type ="submit">click</input> --------------------------> this button should send the selected value
the reason why the button is on the second form is for design purposes.
The code you posted is not complete, and I could not get the first form from it. Here's a sugestion though :-
2. Call this in the onClick of your button, by the way, I think you should make it a button instead of submit. I am not sure of this, but it seems counter-intuitive(and unlikely) that 2 forms can be submit concurrently.