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

    Default 500 Internal Server Error javax.servlet.jsp.JspException: Cannot find bean org.apache

    500 Internal Server Error
    javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
    Java Code:
    <%@ page language="Java" %>  
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%><%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <form action ="">
          <P>Task Id
            <html:text property="taskid"/>
          <P>Task Name
          <html:text property="taskname"/>
            <html:text property="dateOfBirth"/>
          <input type="submit" value="Submit"/>
    Java Code:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "">
    <form-bean name="LoginForm" type="LoginForm"/>
    <form-bean name="TaskForm" type ="taskform"/> 
    <action path="/login" type="LoginAction"  name="LoginForm" scope="request" validate="true" input="login.jsp">
            <forward name="success" path="/success.jsp"/>
            <forward name="failure" path="/failure.jsp"/>
    <action path="/taskAction" name="TaskForm" type="taskAction" scope="request">
      <forward name="success" path = "/taskdetails.jsp"/>
      <forward name ="error" path ="/failure.jsp"/>
      <message-resources parameter="view.ApplicationResources"/>

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


    All your <html:XXX> tags need to be enclosed in a <html:form></html:form> tag.

Similar Threads

  1. Replies: 1
    Last Post: 02-23-2011, 01:10 AM
  2. Replies: 1
    Last Post: 12-05-2009, 08:28 AM
  3. The server encountered an internal error ()
    By rakesh_n_mehta in forum Web Frameworks
    Replies: 0
    Last Post: 01-19-2009, 02:09 PM
  4. Replies: 1
    Last Post: 12-02-2008, 01:23 AM
  5. Replies: 1
    Last Post: 08-07-2007, 04:47 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