Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

onload page submit in structs

 
Sudarshan Reddy
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Nitin Pathak
Ranch Hand
Posts: 70
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... why not just correct the misspelling instead of noting that it shouldn't be misspelled?
 
Nitin Pathak
Ranch Hand
Posts: 70
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic