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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -