This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes not getting the value text of submit button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "not getting the value text of submit button" Watch "not getting the value text of submit button" New topic
Author

not getting the value text of submit button

jai veer
Greenhorn

Joined: Aug 21, 2013
Posts: 2
Ishitha Dyanil wrote:

Hi,

I'm new to jsp and java world,
here I'm trying to use some form and getting those parameters and I'm using simple logic that if the submit values are null send that to again same page rytelse
printing the values.
But the problem is getting evey time submit value null.
tried with hidden value but not worked for the logic.

So can anyone help me please,how to get the values of type=submit...





Hi Ishitha Dyanil, I'm also facing the same problem of not getting the value text of submit button. Don't know what's going wrong.. always shows null. This null thing happens only with button/submit button. Running fine with radio and checkbox types. If you had found the solution please please, tell me the same.
Frederik Nielsen
Greenhorn

Joined: Aug 25, 2013
Posts: 14
Here is a working solution:

Login.jsp


User.jsp



Have tested it and it works, but you should look into Servlet for request/response :)
 
 
subject: not getting the value text of submit button
 
Similar Threads
Getting null value in the form of jsp for submit button
Comparing value of radio button against answer from the database
Two forms with two submit buttons
Not able to pass Form parameters from jsp to servlet
values are not getting transferred from one servlet to another servlet