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 2007/01/23 07:16:48 UTC

DO NOT REPLY [Bug 41438] New: - jsp:forward kicks in twice instead of once

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: tuluvasudeva@yahoo.com


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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 41438] - jsp:forward kicks in twice instead of once

Posted by bu...@apache.org.
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


funkman@joedog.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From funkman@joedog.org  2007-01-23 03:40 -------
Since the src="" - the web browser is requesting the page again. See the 
LiveHttpHeaders FireFox extension for proof.

-- 
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org