This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Struts and the fly likes onload page submit in structs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "onload page submit in structs" Watch "onload page submit in structs" New topic
Author

onload page submit in structs

Sudarshan Reddy
Greenhorn

Joined: Aug 23, 2007
Posts: 20
hi
can any one tell how to submit the page while loading the page itself.This is required for me when the user check the option for remember me on the login page.

we are using the struts for developing the application.


With Regards<br /> <br />Sudarshan Reddy
Nitin Pathak
Ranch Hand

Joined: Sep 25, 2006
Posts: 70
Be it struts or a simple HTML page, javascript onLoaad can be used to submit any form of your document. You can use the form handle in the body tag for sumbitting on the page load:

Hope it helps!

PS: onLoaad should be spelt correctly.
[ December 16, 2008: Message edited by: Nitin Pathak ]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

... why not just correct the misspelling instead of noting that it shouldn't be misspelled?
Nitin Pathak
Ranch Hand

Joined: Sep 25, 2006
Posts: 70
Originally posted by David Newton:
... why not just correct the misspelling instead of noting that it shouldn't be misspelled?


The correct spelling is not accepted by Javaranch and is considered a pre-existing and manipulating js method. Try it yourself?

Believe me I tried twice before posting it!
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617



Oh, how 'bout that--that's funny! Thanks for pointing that out.

(Just kidding; I cheated.)
[ December 16, 2008: Message edited by: David Newton ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: onload page submit in structs