473,320 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

unable to clear the field in form

149 100+
hi,
im learning struts..i had developed simple login application form..it is working fine for submit button...but if im going to reset my form...it is not getting reseted..can any one suggest me where it is getting wrong...i didnt do any validations...jst a simple application...
Expand|Select|Wrap|Line Numbers
  1. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  3.  "http://www.w3.org/TR/html4/loose.dtd">
  4. <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
  5. <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
  6. <html>
  7.     <head>
  8.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  9.         <title>Login Form</title>
  10.         <link rel="stylesheet" type="text/css" href="stylesheet.css">
  11.     </head>
  12.     <body>
  13.         <h1>Login Form</h1>
  14.         <html:form action="/login"><table border="0">
  15.                 <tbody>
  16.                     <tr>
  17.                         <td colspan="2">
  18.                             <bean:write name="LoginForm" property="error" filter="false"/>&nbsp;
  19.                         </td>
  20.                     </tr>
  21.                     <tr>
  22.                         <td>Enter Your Name:</td>
  23.                         <td><html:text property="name"/></td>
  24.                     </tr>
  25.                     <tr>
  26.                         <td>Enter Your Email-Id:</td>
  27.                         <td><html:text property="email"/></td>
  28.                     </tr>
  29.                     <tr>
  30.                         <td><html:submit value="Login"/></td>
  31.                         <td><html:reset value="Reset"/></td>
  32.                     </tr>
  33.                 </tbody>
  34.             </table>
  35.         </html:form>
  36.     </body>
  37. </html>
  38.  
thanks,
madhu.
Aug 23 '10 #1
0 985

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Eric | last post by:
Hey Everyone.. I have a form that has approximately 7 text fields and 1 checkbox. Generally when this form is submitted(to itself BTW) it works fine, however, when the checkbox is only field...
3
by: Mark Creelman | last post by:
Hello all: How do I convert this ASP mailer script to accept and mail multiple fields of a form. This will do one field only )iMesg.TextBody = Request.Form("body") and it works great. Seems...
1
by: Christian Perthen | last post by:
Hi, Is there any method to clear a form collection after a post without have to do a response.redirect? I am trying to avoid having the form re-submitted a second time on a page refresh. ...
0
by: Hohn Upshew | last post by:
My problem is that after chosing an order from the list and open a report, the form stays with the number of the customer for that number and cannot be requeried.How can i clear the form? This is ...
0
by: Doslil | last post by:
I have a form which is designed to only data entery.When i try to open to form in the run form I have the following errors 1. when i open the form I get an error message saying "Access can't...
1
by: Kittie | last post by:
Hello, I'm pretty new to web programming and i'm facing an issue. Hope someone can help! I have a LinkButton in a form and when i click on it, it posts back to the page. The problem i want to...
2
by: tkhouk | last post by:
I have a small form with two unbound look-up fields (one for an ID and one for last name). Each unbound field has a command button that actually goes to my table and brings in the records. How can...
1
by: thh108688 | last post by:
Hi there, Is anyone know how can I clear the contents of the form immediately once either one of the command buttons are pressed. When i create the second record, the previous content are still...
9
by: Brad Pears | last post by:
I have the following code that references a "textbox" on a form. I want to pass the value of this textbox to a stored procedure as a parameter. This code is located on a different form obviously. I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.