This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

onload page submit in structs

 
Sudarshan Reddy
Greenhorn
Posts: 20
  • 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
  • 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
  • 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
  • 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
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic