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

http://issues.apache.org/bugzilla/show_bug.cgi?id=41438

           Summary: jsp:forward kicks in twice instead of once
           Product: Tomcat 5
           Version: 5.5.19
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


The forwarding page containing the tag 
<jsp:forward page="destination.jsp"/> is called TWICE when the destination.jsp
contains a blank image tag such as
<img src="" alt="logo"/>
This happens using the Firefox browser only and works fine(called ONCE) for IE.

---->Below is the page content of the forwarding page
<% System.out.println("referer--->" + request.getHeader("referer")); %>
<jsp:forward page="destination.jsp">
    <jsp:param name="contentType" value="html"/>
</jsp:forward>

---->Below is the page content of the destination page (note that the image src
is blank)

<html>
<body>
<img src="" alt="logo"/>
<% System.out.println("Called"); %>
</body>
</html>

---->Below is the output from the log
referer--->null
Called
referer--->http://localhost:8080/hostingPanel/forwarder.jsp
Called

--->Notes
If the <img src="x" alt="logo"/> is sourced with any image say "x" here, the
forwarder.jsp is called only once. However in lots of cases x may be dynamically
 obtained and by chance if it turns out blank the corresponding destination is
called twice in the firefox browser.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to