Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: How to add date field ?

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to add date field ?

    Hi All,

    In the below code i want to add date field after Source account no. Pls advise me the syntax for adding date field which gives me today date,
    HTML Code:
    <%@ page contentType="text/html; charset=UTF-8"%>
    <%@ taglib prefix="s" uri="/struts-tags"%><html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Inter Bank Payment Transfer Form</title>
    </head>
    <body>
    <table>
    <s:form action="interbankpay.action" method="post">
    <h1> Inter Bank Payment Transfer Details </h1>
    <s:textfield name="sibaccno" label="Source Account No." />
    <s:textfield name="destamt" label="Transfer Amount" />
    <s:textfield name="destcurrency" label="Transaction Currency" />
    <s:textfield name="destbankname" label="Destination Bank Name" />
    <s:textfield name="destbankbrname" label="Destination Bank Branch Name" />
    <s:textfield name="destaccno" label="Destination Bank Account No" />
    <s:textfield name="destifsc" label="Destination Bank IFSC Code" />
    <s:textfield name="destaddinfo" label="Additional Information" />
    <s:submit  value="Submit Details" />
    </s:form>
    </table>
    </body>
    </html>
    Rgds,
    Rajiv


  2. #2
    Member
    Join Date
    Aug 2011
    Posts
    48
    My Mood
    Fine
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Default Re: How to add date field ?

    Take a look at this nice tutorial:

    Struts 2 date tag example

    immutable objects
    Last edited by ha.minh.nam; December 4th, 2011 at 07:27 PM.

Similar Threads

  1. Replies: 1
    Last Post: July 22nd, 2011, 07:08 AM
  2. same date should entered in another date field
    By shashib09 in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: July 14th, 2011, 08:42 AM
  3. Replies: 3
    Last Post: April 11th, 2011, 09:51 PM
  4. Using a password field
    By javapenguin in forum What's Wrong With My Code?
    Replies: 1
    Last Post: December 10th, 2010, 11:54 AM
  5. [SOLVED] how to get each field of a current date
    By chronoz13 in forum Java Theory & Questions
    Replies: 4
    Last Post: January 24th, 2010, 06:33 AM