MJ
asked on
How to debug statement "IntraLearnLogOnMgr mgr = new IntraLearnLogOnMgr();"
I just started to create a test page. I have this line that causes my page to bomb:
IntraLearnLogOnMgr mgr = new IntraLearnLogOnMgr();
I don't know where to start or how to debug this. I'm importing everything I need but I get a :
We're sorry, but the page you requested could not be found. (acts as if ipage doesn't exist)
I don't do a lot of java or JSP. What steps should i take to figure out what's wrong?
////////////////////////// ////////// ////////// ////////// //////////
complete code
////////////////////////// ////////// ////////// ////////// //////////
<%@ page import="java.sql.*,java.ut il.*,java. io.*,javax .servlet.* ,javax.ser vlet.http. *,java.net .*,com.bro cade.intra learn.*" %>
<%
String connString = "thunder";
String userId=(String)request.get Header("SM _USER");
Hashtable params = new Hashtable();
IntraLearnLogOnMgr mgr = new IntraLearnLogOnMgr();
Connection con = mgr.getConnection(connStri ng);
Registered reg = mgr.profileExist(con, params, userId);
%>
userId: <%=userID%>
<br><br>
REGISTRATION STATUS:<%=reg%>
IntraLearnLogOnMgr mgr = new IntraLearnLogOnMgr();
I don't know where to start or how to debug this. I'm importing everything I need but I get a :
We're sorry, but the page you requested could not be found. (acts as if ipage doesn't exist)
I don't do a lot of java or JSP. What steps should i take to figure out what's wrong?
//////////////////////////
complete code
//////////////////////////
<%@ page import="java.sql.*,java.ut
<%
String connString = "thunder";
String userId=(String)request.get
Hashtable params = new Hashtable();
IntraLearnLogOnMgr mgr = new IntraLearnLogOnMgr();
Connection con = mgr.getConnection(connStri
Registered reg = mgr.profileExist(con, params, userId);
%>
userId: <%=userID%>
<br><br>
REGISTRATION STATUS:<%=reg%>
Do u mean this statment "IntraLearnLogOnMgr mgr = new IntraLearnLogOnMgr();" cause the error ? If you are using tomcat, u can simply check the tomcat's log file.
How if you remove / comment out the "IntraLearnLogOnMgr mgr = new IntraLearnLogOnMgr();", the page shown ?
show us the code for the IntraLearnLogOnMgr ?
How if you remove / comment out the "IntraLearnLogOnMgr mgr = new IntraLearnLogOnMgr();", the page shown ?
show us the code for the IntraLearnLogOnMgr ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
what app server r u using. I agree with ghost, but the .jsp file location can be anywhere inside your webapp except WEB-INF.
also, I would suggest to start from a simple jsp page with no code in
xyz.jsp:
<%@ page import="com.brocade.intral earn.*" %>
this is xyz.jsp page
if you get this page loaded then add a line to see if it gives you any error:
xyz.jsp:
<%@ page import="com.brocade.intral earn.*" %>
this is xyz.jsp page
<% IntraLearnLogOnMgr mgr = new IntraLearnLogOnMgr(); %>
also, I would suggest to start from a simple jsp page with no code in
xyz.jsp:
<%@ page import="com.brocade.intral
this is xyz.jsp page
if you get this page loaded then add a line to see if it gives you any error:
xyz.jsp:
<%@ page import="com.brocade.intral
this is xyz.jsp page
<% IntraLearnLogOnMgr mgr = new IntraLearnLogOnMgr(); %>
ASKER