This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes submit button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "submit button" Watch "submit button" New topic

submit button

praveen shinde
Ranch Hand

Joined: Jun 03, 2009
Posts: 63
Hello ,
I have one jsp in which I am using html form.
I am using submit button to give the values from the form.
but when i run the application it is not showing any result what could be the error. Please help.

The jsp part for submit is given here.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60756

You haven't shown us anything that can help diagnose the problem. What's the form action? What does that JavaScript function do?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rocky Khan

Joined: Oct 18, 2011
Posts: 11

Use button type="submit"
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60756

Also, this name="submit" is going to cause trouble. I can guarantee it. Never name anything "submit".
I agree. Here's the link:
subject: submit button
Similar Threads
Interupting a submit button call
Trigger onSubmit without standard button
Submit button
creating button using <s:button> - similar to the CSS based button
Struts 2.1.6: keeping information in the same div - using tree node