How to make beans work in my web page with Tomcat server
Posted on 2006-06-04
I'm a newbie to JSP. I installed Tomcat web server 4.1 to my computer with windows xp as OS. I'm currently applying beans with my JSP page. To my understanding I'm supposed to place my bean classes in the "WEB-INF/classes" folder located with my web application. I used the ff. line,
<jsp:useBean id="user" class="ludy.UserInfo" scope="Request" />
to access my class but I came up with this error instead,
org.apache.jasper.JasperException: /main.jsp(1,0) jsp.error.useBean.badScope
Can someone instruct me how to correctly place my web files/classes so I can run the page without a problem?