Getting value from <select> statement from jsp to Action class -
i have following <select>..</select>
in code:
<select name="approvername"> <option value="first name">my first name</option> <option value="second name">my second name</option> <option value="third name">my third name</option> <option value="fourth name">my fourth name</option> </select>
when try value in action class,like string approvername = request.getparameter("approvername")
shows null when try print it.
how value?
in action class instead of using
string approvername = request.getparameter("approvername")
i've changed to
string approvername = (string)areq.getparameter("approvername");
and works!!
Comments
Post a Comment