Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

org.apache.struts.taglib.html.BEAN

Status
Not open for further replies.

tan1981

Programmer
Aug 16, 2006
5
0
0
PL
Hi,

My jsp file is: <br>

<%@ taglib prefix="fmt" uri=" %>
<%@ taglib prefix="spring" uri="/spring" %>
<%@ taglib uri="/WEB-INF/lib/struts-html-el.tld" prefix="html-el" %>

<html>
<head>
<title>
Edit Bike
</title>
</head>
<body>
<h1>Edit Bike</h1>
<form method="POST">
<table border="1" cellspacing="2" cellpadding="2">
<tr>
<td align="right">Manufacturer:</td>
<td>
<html-el:text property="manufacturer" size="25"
maxlength="50" styleClass="textBox" tabindex="1" />
</td>
</tr>
<tr>
<td align="right">Model:</td>
<td>
<html-el:text property="model" size="25"
maxlength="50" styleClass="textBox" tabindex="1" />
</td>
</tr>
<tr>
<td align="right">Frame:</td>
<td>
<html-el:text property="frame" size="25"
maxlength="50" styleClass="textBox" tabindex="1" />
</td>
</tr>
<tr>
<td align="right">Serial Number:</td>
<td>
<html-el:text property="serialNo" size="25"
maxlength="50" styleClass="textBox" tabindex="1" />
</td>
</tr>
<tr>
<td align="right">Weight:</td>
<td>
<html-el:text property="weight" size="25"
maxlength="50" styleClass="textBox" tabindex="1" />
</td>
</tr>
<tr>
<td align="right">Status:</td>
<td>
<html-el:text property="status" size="25"
maxlength="50" styleClass="textBox" tabindex="1" />
</td>
</tr>
</table>
<html-el:submit styleClass="normal">
Submit Bike
</html-el:submit>
</form>
</body>
</html>

When trying to access this web site I got error:<br>

Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.JspException: Cannot find bean: "org.apache.struts.taglib.html.BEAN" in any scope
at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:934)...
I found out that it may be connected with putting struts tags outside the html form tag. But for me it seems to be everything correct with it. Can anyone tell me what is wrong?

cheers,
Wojtek
 
It's possible that you need to use an <html-el:form... tag instead of <form.

I think the html-el tags only work if they're nested inside of an <html-el:form...> </html-el:form> tag set

-G
 
i think you need put in <html-el:form> where server binds
a action class and action form to this page which you mention an action mapping struts-config file...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top