[PLUG] RE: [PJUG Javamail] Spring, Forms, etc.

Bill Ensley bill at bearprinting.com
Tue Feb 21 21:10:57 UTC 2006


<script>
	function doSubmit(){
		document.formName.submit();
	}
<script> 

<body onLoad="doSubmit()">

</body>


I may have misunderstood your question, but from what I got, this seems like
it should work

-Bill Ensley
Bear Printing
-----Original Message-----
From: javamail-admin at pjug.org [mailto:javamail-admin at pjug.org] On Behalf Of
Johnson, Richard
Sent: Tuesday, February 21, 2006 12:16 PM
To: javamail at pjug.org
Subject: [PJUG Javamail] Spring, Forms, etc.

Hi all,

This is probably simple once you know the answers.  :-)

I have a client who is insisting that our web site open a new window (no
problem), that connects to their site (no
problem) with a post.  (uh-oh)

We're using Spring.  The page where the link to their site appears is
already a form.  If I put a form within a form, our form controller grabs
the inner submit and prevents the desired behavior.  

So I make the link to point to a new jsp (or html) with a very simple
controller that says basically "return the FormView."  I can make that page
a form with their site the <action = xxx>, but then --- how do I make the
page submit itself?  (If I do a meta-refresh, we lose the password that the
other guy wants in a field of the form.)

Any ideas?

Is there a clean way to do this with Spring?  Alternatively, is there a
clean way to call a vanilla html page and get it to call "submit" on itself?
--
Richard Johnson

_______________________________________________
Web Site - http://www.pjug.org/
Javamail mailing list
Javamail at pjug.org
http://www.pjug.org/mailman/listinfo/javamail




More information about the PLUG mailing list