Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Q about using JavaBeans in JSP

 
Kshitija Nandpure
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
For using Tag <jsp:useBean> we have to first import JavaBean class as below
<%@ page import="JavaBeanName" %>
But after accessing JSP page it gives following error:
'.' expected import JavaBeanName
help needed about how to avoid this error.
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kshitija,
Can you post part of the actual error message and your JSP fragment that you're having the problem with? I'm having a hard time understanding what you're talking about.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!