Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Bean class in JSP -error  RSS feed

 
Rashmi Dupati
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I have a small JSP application..i have used <FORM METHOD="POST" ACTION="ProcessLogin.jsp"> in one of the JSP page..In ProcessLogin.jsp i have used bean class...while running the application in eclipse IDE its showing error ..
An error occurred at line: 5 in the jsp file: /ProcessLogin.jsp
LoginBean cannot be resolved to a type
please give me the solution to this problem...

Thanks in advance
 
Sravan Kumar
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to import the LoginBean class into the jsp page using the "page directive" before using the bean.

<blockquote>code:
<pre name="code" class="core"><%@ page import="LoginBeanPackage.LoginBean" %></pre>
</blockquote>
 
Rashmi Dupati
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Eclipse IDE.
In that i have created Login.jsp,ProcessLogin.jsp Welcome.jsp and One bean class LoginBean.java.i didn't craete a package for bean class...please give the solution how to run in eclipse IDE...

This is the tag used in ProcessLogin.jsp
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!