Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
| Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 22nd, 2006, 09:56 PM
Registered User
 
Join Date: Dec 2005
Location: xx, xx, Malaysia.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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



Similar Threads
Thread Thread Starter Forum Replies Last Post
jsp:useBean and ArrayList IronStar JSP Basics 1 October 30th, 2008 04:32 AM
jsp jamalpv JSP Basics 1 May 14th, 2007 10:21 AM
<jsp:useBean> action problem austinf JSP Basics 1 August 21st, 2006 04:23 PM
anyone could help me about jsp? meilei007 JSP Basics 5 August 7th, 2006 04:21 AM
what wrong with thi code(Jsp:useBean) kousik Pro JSP 1 March 10th, 2006 06:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.