Please Help. mr_newreq.jsp:78: jsp:useBean can't f
Dear friends,
I am having having jsp error when I call my SendMail.class from JSP
my jsp
------
<%@ page import = "java.sql.*,java.util.*,java.text.SimpleDateFormat ,java.lang.String,java.text.*,
java.io.*,
javax.mail.*,
javax.mail.internet.*,
javax.activation.*
"%>
<% //@ page errorPage = "../error_page/timeout.jsp"
response.setHeader("Cache-Control","no-store"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
%>
<% String fromPageP = "authorise"; %>
<%! ResultSet rset3 = null;
String exceed = "", remarksExceed = "", suppliername, lano, remarksFromDfdflw = "",cmp_no, cmp_name, dept_cde, dept_name, shp_desc, reqname, seq_num, requestedby, rec_status,
auth_empid, authempid, s_no, tracknum, umdesc, shipto_desc, trackNumberForCurrent1 = "", trackNumberForCurrent = "", mr1_cde1_desc="", mrh_req_typ="", totalRej="";
int seq = 0, new_seq,z = 0, rCnt=0; String accumulated = "";
double finalbudget = 0,tempIps =0,dbAccum = 0,budget = 0;
String project="";// Additional condtion ... added on 7/06/05
%>
<%
//check whether the password still keep in session object
HttpSession ses = request.getSession(true) ;
//if password removed
if (ses.getValue("password") == null) {
//go back to mr_emplogin.jsp
response.sendRedirect ("../mr_emplogin.jsp");
}
//if password is kept, execute the page
else {
%>
<META HTTP-EQUIV="refresh">
<% String[] arrayTrackEmp;
String[] arrayDAEI;
String usr = (String)session.getAttribute("name");
String passwd = (String)session.getAttribute("password");
String serv = (String)session.getAttribute("server");
String oline = (String)session.getAttribute("online");
String employeeId = (String)session.getAttribute("empId");
String docType = request.getParameter("cdeType");
%>
<jsp:useBean id = "db" class="bgoc.dbConn.Conn" scope="request" />
<% Connection conn = db.getConnection(); %>
<jsp:useBean id="passnsend" class="common.SendMail"/>
and SO on.....
**I did put my SendMail.class in web-inf\classes\common
**I did include " package common" in my SendMail.class
please help.
thank you
regards,
tan
|