Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Data Submit Problems in Web Forms
#1
Sir,

I have designed a web form and whenever I press enter the values are submitted but the value of “Submit button” i.e. “action” is not submitted. Is there a solution to it? Other than using the hidden form fields. I do not
wish to use hidden form fields.

Can this behavior be changed? If yes then how?
Reply
#2
To get the submit button value in jsp

<HTML>
<HEAD>
<TITLE>Get submit button value</TITLE>
</HEAD>

<BODY>
<H1>Using Multiple Forms</H1>
<%
if(request.getParameter("submit") != null) {
%>
You clicked
<%= request.getParameter("submit") %>
<%
}
%>

<FORM NAME="form1" METHOD="POST">
<INPUT TYPE="SUBMIT" NAME="submit" VALUE="Button 1">
</FORM>

<FORM NAME="form2" METHOD="POST">
<INPUT TYPE="SUBMIT" NAME="submit" VALUE="Button 2">
</FORM>

<FORM NAME="form3" METHOD="POST">
<INPUT TYPE="SUBMIT" NAME="submit" VALUE="Button 3">
</FORM>
</BODY>
</HTML>

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply
#3
good answer
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How find the data in ArrayList? 2011-12 Vuhelper 0 2,490 09-04-2011, 07:21 AM
Last Post: Vuhelper
  Is java is for real to solve problems? Xpert 0 2,377 06-26-2011, 05:59 PM
Last Post: Xpert
  JAVA Runescape Applet Problems Xpert 0 1,220 06-24-2011, 07:45 AM
Last Post: Xpert
  JAVA Firefox warning message: Add-ons may be causing problems Xpert 0 1,545 06-24-2011, 07:41 AM
Last Post: Xpert
  Retrieving data in a JTable saneha 1 4,823 04-27-2011, 06:35 AM
Last Post: Vuhelper
  Problem Handling Long Data types in GUI saneha 1 2,112 04-27-2011, 06:30 AM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)