tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Problem while submiting the page[OT]
Date Fri, 28 Jul 2006 17:09:55 GMT
Prafulla,

FYI, this post is totally off-topic. Please indicate it as such.

> There is a button on the screen, on click of that button i invoke the javascript function
and in that function i submit the form two times, to two different actions.

This is not going to work: the web wasn't intended to work that way. You
should only submit one form at a time.

> 
> So what happens mostly in this case is only the second action is
> executed. I can see the log corresponding to second action only.

That's (likely) because the second form submission interrupts the first
one before it even starts.

If you need to submit the same information to two places, take care of
it on the server side: submit the information to a single form handler,
and then forward that same request to the second form handler. This
still isn't a really great idea, as it suggests an awkward application
logic, but ... whatever.

-chris



Mime
View raw message