• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Bean class in JSP -error

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic