How to make beans work in my web page with Tomcat server

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?
Who is Participating?
runa_paathakConnect With a Mentor Commented:
That is, modify it to

<jsp:useBean id="user" class="ludy.UserInfo" scope="request" />
Use request instead of "Request" in
<jsp:useBean id="user" class="ludy.UserInfo" scope="Request" />. The case matters.
ludyAuthor Commented:
Hahah, didn't realize it was so simple. thanks! :D
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.