Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
Password Reminder
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #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.*,
<% //@ 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


Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 01:36 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.