JSP + Javabeans

When i use a javabean in my jsp it doesnt find my class, I need to put anything in web.xml?? Im using Tomcat 4.0
I have beans.jsp:
<jsp:useBean id="languageBean" scope="page" class="LanguageBean">
<jsp:setProperty name="languageBean" property="*"/>
</jsp:useBean>
<html>
<head>
<title>useBean action test result</title>
........
And LanguageBeans.class in web-inf/classes/LanguageBean.class
what must I put in web.xml?
Thanks,
Daniel

1 respuesta

Respuesta
1
I think that you must import the class before using it with the tag <%@ page import="LanguageBean"%>. What error report the tomcat server?

Añade tu respuesta

Haz clic para o

Más respuestas relacionadas