|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
currently my HTML loads a servlet when the SUBMIT button is activated. I want a servlet to run when the page loads.
Don't know much about Java or HTML - need advice on TAG to write at both ends (i.e within HTML and Servlet). cheers..... |
|
#2
|
|||
|
|||
|
If the page has something like:
<form method="post" action=(your servlet here) name="theForm"> you can submit it at page load by making the body tag of the page : <body onLoad="document.theForm.submit()"> I'm not sure what you mean by "TAG at both ends" - your servlet (as specified in the action of your <form> tag needs to have a doPost() method that handles the post. Success Ton |
|
#3
|
|||
|
|||
|
cheers Ton!!
worked peachy! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > 'onLoad?' or something |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|