Re: Action called twice for single form submission --> SOLVED
Re: Action called twice for single form submission --> SOLVED
- Subject: Re: Action called twice for single form submission --> SOLVED
- From: Jonathan Rochkind <email@hidden>
- Date: Tue, 6 Apr 2004 12:24:43 -0500
I've considered the idea of using the BASE tag to supply a nonsense
"base" URL, so relative URLs in a WO page never accidentally end up
calling a component action that they did not mean to call. The
problem, as Allen discovered, is that a relative URL (with the empty
string being one extreme of a relative URL) in the context of WO
component action page, ends up being another component action URL. I
don't _think_ you ever actually _mean_ to provide a relative URL in a
typical WO page, so I think it would be okay to just intentionally
break all relative URLs, to make sure if one accidentally gets in
there, it doesn't end up calling a component action.
But I havne't really thought through the implications of this
entirely, or tried to implement it. It's just a thought I had.
--Jonathan
At 8:08 AM -0700 4/6/04, Allen Cronce wrote:
Hi all,
As several of you suggested, the problem was due to bad HTML on our
part. Specifically, we had a 'background=""' in one of our tables in
our page wrapper. Looks like this was introduced when we copied HTML
that was authored with Go Live.
When I removed this empty reference, the problem of multiple actions
for a single form submission went away. Additionally we reworked our
page implementation to be immune to accidental multiple submissions.
Thanks to everyone who had suggestions.
Best regards,
--
Allen Cronce
_______________________________________________
WebObjects-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.