Import the custom class in JSP. the user is defined under the default package, as follows:
<% @ Page Language = "Java" Import = "user" %>
Then,
<% USER u = new user (); %>
Run:
The import user cannot be resolved
Change the user class to the class in the Custom package as follows:
Com. Test. importclass. User, run successfully.
Google "JSP import default package" found that class must be written in the package, if you cherish your life.
"Login people onJavaranch, Including those most prone to answering questions, will quickly lose patience with someone who isn't willing to package all of their classes before trying to debug an issue (any issue ), even if packaging doesn't seem to be related to their current problem."
Refer:
Http://www.jguru.com/forums/view.jsp? Eid = 1294104
Http://www.coderanch.com/t/292944/JSP/java/Jsp-import
Http://www.coderanch.com/how-to/java/PackageYourBeans