![]() |
| ||
| How can i get selected value from list. Hi all, I want to retrieve selected item from listbox in a jsp page and send it to a servlet. I am not able to get selected value. Can u please tell me how to get selected value. In servlet i am trying to get the selected value by using getparameter() function, but its not working. This is the code i hve given in jsp page: <%@ page language="java" import="java.util.*" contentType="text/html; charset=ISO-8859-1" |
| ||
| Re: How can i get selected value from list. Your <select>element (and also any other element eg textfields, checkboxes, etc ) should be inside the <form> </form>tags, if you want your data to get posted (via GET or POST) to the URL specified in the form's actionparameter. From what I see you seem to have no idea how HTML forms work, so I would suggest this tutorial. And PLEASE use code tags, when you are pasting code. You can read about them here. This is already your fourth post in roughly 7-8 months and the fact that you still haven't read the rules only shows your ignorance. |
| All times are GMT -4. The time now is 11:51 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC