You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/08/01 02:41:22 UTC

DO NOT REPLY [Bug 22039] New: - client-side javascript, struts, frames, multi-action function

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22039>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22039

client-side javascript, struts, frames, multi-action function

           Summary: client-side javascript, struts, frames, multi-action
                    function
           Product: Tomcat 4
           Version: 4.1.18
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: pcgscrap@comcast.net


Here is the deal:
I have an app that uses the struts action framework. There are 5 frames in the
browser. Clicking an item in Frame 3 sends 2 actions to the server. Action 1
causes frame 2 & 4 to get updated and action 2 causes frame 5 to get updated.
The problem is that frame 5 doesn't always get updated unless you click on the
item 2 or more times. Here is some code and javascript being used to send the
commmands to the server.

onclick="javascript:loadFrames(<action commmand mid>,<action command bottom>)"

function (mid,bottom){
  parent.frame_mid.location = mid;
  parent.frame_bottom.location = bottom;
  parent.frame_bottom.reload(true);
} 

mid & bottom parameters are actually action commands of the following form:

/Controller&cmd=call_list&id=xyz

The first statement always works without fail but the second doesn't. Can
someone PLEASE give me clue as to what the hell is going on. I have searched for
and tried every variation that I could find but no luck. 

Do I need to make the overridden service() function synchronized so the server
threads process everything in order?