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

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

    Error
    500 Internal Server Error
    javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
    create.jsp
    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" %>
    
    <html:html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>untitled</title>
      </head>
      <body>
        <form action ="taskAction.do">
          <P>Task Id
            <html:text property="taskid"/>
          </P>
          <P>Task Name
          <html:text property="taskname"/>
          </P>
          <P>Date
            <html:text property="dateOfBirth"/>
          </P>
          <P>
          <input type="submit" value="Submit"/>
          </P>
        </form>
      </body>
    </html:html>
    strts-xml
    Java Code:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <form-beans>
    <form-bean name="LoginForm" type="LoginForm"/>
    <form-bean name="TaskForm" type ="taskform"/> 
    </form-beans>
    <action-mappings>
    <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>
    <action path="/taskAction" name="TaskForm" type="taskAction" scope="request">
      <forward name="success" path = "/taskdetails.jsp"/>
      <forward name ="error" path ="/failure.jsp"/>
    </action>
    </action-mappings>
      <message-resources parameter="view.ApplicationResources"/>
    </struts-config>

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

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