I'm staring at the log files and saying "This can't be happening."  I have a
Struts app deployed on a development box.  I click on a link:
http://www.example.com/myapp/someAction.do?someParam=123

And in the log file, I see *two* passes through that Action code.  The
results of the first pass are what's displayed in the browser window, but
things in the session are modified by the second pass.

This means that when I've clicked on the link to 'add' a record to the
database, I _think_ I'm working on the record with key 100 but the object in
the session has key 101, and that's actually the one that gets updated.

Because that probably makes no sense at all, I put the log file up here:
   http://wiki.wendysmoak.com/cgi-bin/wiki.pl?StrutsDoubleRequest

I _know_ it looks like two different clicks 3 seconds apart.  It isn't.
Even if I managed to double-click, I can look at the keys in the database
for the file in question, and every other sequential key is missing.
There's no way *everybody* is clicking twice.  And it happens from both
Firefox and IE, so there goes my first idea. (Blame IE!)

I'm sure it's something I've done wrong, this was my very first Struts app
(it went live the day 1.1 was released).

Here's hoping someone is now laughing and saying "Been there!" because I
have no idea what's causing this.  Any hints or ideas gratefully accepted.

-- 
Wendy Smoak


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to