This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 31790 - Breakpoint in <jsp:include/> is not correctly mapped.
Summary: Breakpoint in <jsp:include/> is not correctly mapped.
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: Martin Grebac
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-08 02:07 UTC by Ana.von Klopp
Modified: 2005-12-14 14:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ana.von Klopp 2003-03-08 02:07:02 UTC
<jsp:include page="myotherpage.jsp" flush="true"/>


setting a breakpoint on this results in a mapping to the 
line withthe { in 


 // begin [file="/debug.jsp";from=(6,0);to=(6,50)]


                {


                    String _jspx_qStr = "";


                    JspRuntimeLibrary.include(request, 
response, "myotherpage.jsp" + _jspx_qStr, out, true);


                    if 
("true".equals(request.getAttribute("javax.servlet.forward.
seen")))


                        return;


                }


            // end




I think the right thing to do is to map to all the lines in 
the code block? Debugging experts will know better. 




I'm filing this as a P4 for now, on the assumption that it 
cannot be fixed for 3.5. We should make sure that this 
works with the JSR-45 mappings. 




FWIW, this is translated to a single line with Jasper 2 
(Tomcat 4.1 or 5): 


org.apache.jasper.runtime.JspRuntimeLibrary.include(request
, response, "myotherpage.jsp", out, true);






I looked into forwards also, and I don't think we do the 
correct behaviour there either, though perhaps that is less 
serious. It's translated as follows (similar with Jasper 2) 
and we map it to the if(true) line. 




 // begin [file="/debug.jsp";from=(3,0);to=(3,37)]


                if (true) {


                    out.clear();


                    String _jspx_qfStr = "";


                    pageContext.forward("myotherpage.jsp" + 
 _jspx_qfStr);


                    return;


                }


            // end
Comment 1 Martin Grebac 2004-01-14 09:45:28 UTC
Works correctly with JSR45 - debugger stops on include tag.
Comment 2 Jiri Skrivanek 2005-12-14 14:49:37 UTC
Verified.