Cannot find bean org.apache.struts.taglib.html.BEAN in any scope?????

Category: Java Related
 
soflysun
2013-08-19 07:09:09

Sponsored Links
Younger beginner struts, encountered this problem, as quoted by the wrong title: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope,
prawn pointers:

source as follows:

logon.jsp:
<% @ page contentType = "text / html; charset = gbk"%>
<% @ taglib uri = "/ WEB-INF/struts-bean.tld" prefix = "bean"%>
<% @ taglib uri = "/ WEB-INF/struts-html.tld" prefix = "html"%>
<% @ taglib uri = "/ WEB-INF / struts-logic.tld "prefix =" logic "%>
<html:html locale="true">
<head>
<link rel = "stylesheet" href = "style.css" type = "text / css" >
<title> Logon </title>
</head>
<body>
<table width = 80% height = 95% rules = ; none border = 5 bgcolor = white align = center>
<tr> <td>

<table width = 100% height = 10% rules = none border = 0 align = center>
; <tr>
<td width = 50% align = center>
; This is a common product manage and inquire system.
; It can help you manage your product (example for sell,
for storage).
</td>
; </tr>
</table>

; <form action="/Logon.do">

<table width = 30% border = 1 align = center>
; <tr>
; <td> User Name: </td>
<td> <html:text property="userName"/> </td>
</tr>
; <tr>
; <td> Password: </td>
<td> <html: password property = "password" redisplay = "false" /> </td>
</tr>
; <tr>
; <td colspan = 2 align=left>
<html:submit> Submit </ html: submit>
; <html:reset> Reset </ html: reset>
</td>
</tr>
</table>
; </form>
</td> </tr> </table>
; <table width = 80% height = 5% rules = none align = center>
; <tr>
; <td>
Copyright ; @ 2005-2005 Augmentum, Inc. All Rights Reserved.
</td>
</tr>
</table>
</body>
</ html: html>
<Script Language = "JavaScript">
function check () {
if (logonForm.userName.value == "") {
alert ("Blank user name!");
} else if (logonForm.password.value == "") {
alert (" ; Blank password! ");
} else {
; logonForm.submit ();
}
}
</Script>

strut-config.xml:
<? xml version = "1.0" encoding = "ISO-8859-1"?>
<! DOCTYPE struts-config PUBLIC
; "- / / Apache Software Foundation / / DTD Struts Configuration 1.1 / / EN"
"
<! -
This is the Struts configuration file for the example application,
; using the proposed new syntax.
->

<struts-config>
<form-beans>
<form-bean name = "LogonForm"
type = "com . augmentum.form.LogonForm ">
</ form-bean>

</ form-beans>

<action-mappings>
<action path = "/ Logon "
type =" com.augmentum.action.LogonAction "
name =" LogonForm "
scope =" session "
input =" Logon ">
<forward name="success" path="/index.jsp"/>
<forward name="error.do" path="/error.do"/>
</action>

</ action-mappings>
<message-resources parameter="org.apache.struts.webapp.example.ApplicationResources"/>

</ struts-config>

compiled. class file storage path is absolutely correct. compiled. class files are: LogonAction.class, LogonForm.class (bean).

also hope we can give some of the learning struts suggestions! Thank you pull in here first!

Sponsored Links

wxbup
2013-08-19 07:12:11
prawn, brother started out, to the point of encouraging it!!!
liuhongliang0020
2013-08-19 07:21:46
may be your web- inf directory, resource files incomplete! like *. tld files.
lxg147146875
2013-08-19 07:31:09
<form action="/Logon.do">
changed <html: form action = "/ Logon.do">
reason is that you have no way to generate form instance ^ _ ^
(access points)
weike1375896
2013-08-19 07:37:31
second floor, said thousands of real Wan indeed, was the first to step up.
talk about learning struts bars, encountered a problem look at the source code would have to ask someone else to improve the comparatively faster.
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.