Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2011
    Rep Power

    Default javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN i

    hii i am getting the following errors in my java jsp struts web based application.
    javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope at org.apache.struts.util.RequestUtils.lookup(Request
    please help me to remove this error.
    In this i am entering task id and retrieving the data using from SQL server,but it is giving the error again and again.
    Thank you
    Java Code:
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ page contentType="text/html;charset=windows-1252"%>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        taskform form = (taskform)request.getAttribute("TaskForm");
        int taskid = form.getTaskid();
        String taskname = form.getTaskname();
          <P>Task Id 
            <html:text property="taskid"/> &nbsp;
          <P>Task Name 
            <html:text property="taskname"/>
            <html:text property="date"/>
            <input type="submit" value="Update"/>
            <input type="submit" value="Delete"/>
    Java Code:
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException.*;
    import java.lang.Exception;
    import java.sql.Statement;
    import java.util.ArrayList;
    import java.util.List;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.*;
    public class enterAction extends Action 
     public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,HttpServletResponse response) 
        ActionForward forward;
        taskform eForm = (taskform) form; 
        int r=eForm.getTaskid();
        Connection conn = DatabaseManager.getConnection();
        Statement stmt = conn.createStatement();
        //String query = "SELECT * FROM WHERE task_id = "+r;
        ResultSet rs = stmt.executeQuery("select * from WHERE tasks_id="+r); 
        if (
           return forward;
          forward = mapping.findForward("failure");
           return forward;
        catch(Exception ex)
          return mapping.findForward("error"); 
    Java Code:
    import org.apache.struts.action.ActionForm;
    public class taskform extends ActionForm 
      private int taskid;
      private String taskname;
      private String dateOfBirth;
      public taskform()
        taskid = 0;
        taskname = "";
        dateOfBirth = "";
      public void setTaskid(int taskid)
        this.taskid = taskid;
      public int getTaskid()
        return taskid;
      public void setTaskname(String taskname)
        this.taskname = taskname;
        public String getTaskname()
        return taskname;
      public void setDateOfBirth(String dateOfBirth)
        this.dateOfBirth = dateOfBirth;
      public String getDateOfBirth()
        return dateOfBirth;
    please help me to remove the error thanking you

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Rep Power

Similar Threads

  1. 500 Internal Server Error javax.servlet.jsp.JspException: Cannot find bean org.apache
    By gurpreet.singh in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-22-2011, 06:41 AM
  2. javax.naming.NameNotFoundException: bean not bound
    By Sirisha_24 in forum Enterprise JavaBeans (EJB)
    Replies: 2
    Last Post: 04-01-2009, 11:51 AM
  3. UREGENT-accessing session bean ok but entity bean
    By parimal in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 08-28-2008, 02:34 PM
  4. Replies: 0
    Last Post: 03-30-2008, 11:03 AM
  5. Replies: 0
    Last Post: 09-26-2007, 09:36 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts