Hi Friends,
I am stuck for passing values from drop down list of a HTML page to a servlet file for further processing. Actually i am developing a small model of "Railway Reservation System" for my mini-project. The problem is to how can i pass values from various number of drop down lists to servlet file. Here is the code:

<select name='source'>
<option value='1'>a</option>
<option value='2'>b</option>
<option value='3'>c</option>

<select name='destination'>
<option value='4'>d</option>
<option value='5'>e</option>
<option value='6'>f</option>

<select name='class'>
<option value='1c'>First Class</option>
<option value='ec'>Economy Class</option>

i have to select the source,destination and class of travel and pass it to servlet for further processing. I request you all people to please help me.

7 Years
Discussion Span
Last Post by gvsubhu

Hi friends... this is subramanian, doing mca in park clg, cbe...
i think the following stmt is use full to u..

import java.lang.String[];
String[] vname=(String[])req.getParameter("class");
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.