• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

autoentry of fields on an html page

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi. i am not sure if this is the place for this query but here it is anyway:
i have a simple html form which allows employees to enter their code and enter a date on which they want a casual leave.
i now want to write code which would allow me to fill in the the code and the date from a db table automatically into my html page and the code should also click the submit button.
thanks in advance
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could start with a static HTML page with a form that is submitted to a servlet. The servlet then looks up data from the db and writes a new HTML page with the extra data. Is that what you are talking about?
Bill
 
mansoor iqbal
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes.... except that i dont want to generate a new html page ... just use the existing page, fill in the data and have the submit button clicked automatically by the servlet.
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In order to make things happen on the HTML page in the users browser without re-writing it, you will need to use JavaScript and/or a Java applet. A servlet can't reach out and do something to a page it has already written. Some process on the user's browser will have to be activated.
Bill
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi mansoor
it is better if u will used JSP for this but anyway used one method who will return the double dimension array or u can used hashtable also for this purpose.
u know HTML creates static pages and u r using it for dynamic purpose.
[ August 12, 2002: Message edited by: Khurram Shahood(SCJP2) ]
 
It was the best of times. It was the worst of times. It was a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic