wood burning stoves 2.0*
The moose likes JSP and the fly likes get Parameter by name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "get Parameter by name" Watch "get Parameter by name" New topic
Author

get Parameter by name

ben oliver
Ranch Hand

Joined: Mar 28, 2006
Posts: 375
For <label name="xyz" value="XYZ"> type input, parameters.get("xyz") returns null. Does that make sense ? should it throw exception ?
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
The <label> element is not an input element.
Input elements are at least <input>, <select> and <textarea>.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61456
    
  67

Indeed, name and value are not valid attributes of <label>.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: get Parameter by name