File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 374
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: 60782
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Don't get me started about those stupid light bulbs.
 
subject: get Parameter by name
 
Similar Threads
Session Variable and JSTL
passing String[ ] in request object.
What Company name ends with Inc.?
why we called a servlet an controller
getting value in logic iterate