- This topic has 1 reply, 1 voice, and was last updated 19 years, 1 month ago by
myeclipseuser1.
-
AuthorPosts
-
myeclipseuser1Memberhi,
I have a webproject which uses same file name in two directories. If i put a breakpoint at one of the jsp, both jsps are getting debug enabled at the same position. Is there anyway i can set myeclipse to enable debug only for one of the jsps?Example:
\webroot\f1\myjsp.jsp
[content]<%@ page language=”java” import=”com.ram.test.*” pageEncoding=”UTF-8″%>
<jsp:useBean id=”myname” class=”com.ram.test.TestClass” scope = “page”/><%
String path = request.getContextPath();
String basePath = request.getScheme()+”://”+request.getServerName()+”:”+request.getServerPort()+path+”/”;
%><!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<base href=”<%=basePath%>”><title>My JSP ‘MyJsp.jsp’ starting page</title>
<meta http-equiv=”pragma” content=”no-cache”>
<meta http-equiv=”cache-control” content=”no-cache”>
<meta http-equiv=”expires” content=”0″>
<meta http-equiv=”keywords” content=”keyword1,keyword2,keyword3″>
<meta http-equiv=”description” content=”This is my page”><!–
<link rel=”stylesheet” type=”text/css” href=”styles.css”>
–>
</head><body>
This is my JSP page. <br>
<%for (int i=0;i<10;i++){
out.println(“printing i”+i+”<br>”);
}
%>
</body>
</html>———————————————————————————————————-
\webroot\f2\myjsp.jsp
[content]
<%@ page language=”java” import=”com.ram.test.*” pageEncoding=”UTF-8″%>
<jsp:useBean id=”myname” class=”com.ram.test.TestClass” scope = “page”/><%
String path = request.getContextPath();
String basePath = request.getScheme()+”://”+request.getServerName()+”:”+request.getServerPort()+path+”/”;
%><!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<base href=”<%=basePath%>”><title>My JSP ‘MyJsp.jsp’ starting page</title>
<meta http-equiv=”pragma” content=”no-cache”>
<meta http-equiv=”cache-control” content=”no-cache”>
<meta http-equiv=”expires” content=”0″>
<meta http-equiv=”keywords” content=”keyword1,keyword2,keyword3″>
<meta http-equiv=”description” content=”This is my page”><!–
<link rel=”stylesheet” type=”text/css” href=”styles.css”>
–>
</head><body>
This is my JSP page. <br>
<%for (int j=0;j<10;j++){
out.println(“printing j”+j+”<br>”);
}
%>
</body>
</html>—————————————————————————————————–
if i put breakpoint at \web-inf\f1\myjsp.jsp, the debug is getting enabled even when i access \web-inf\f2\myjsp.jsp at the same location which is annoying.
Any suggestion is appreciated.
Thanks,
Myeclipse user 1
myeclipseuser1Member\web-inf\f1\myjsp.jsp ===>\webroot\f1\myjsp.jsp
\web-inf\f2\myjsp.jsp==>\web-inf\f2\myjsp.jsp -
AuthorPosts