This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

importing a package in jsp  RSS feed

 
Nidhi Singhal
Ranch Hand
Posts: 89
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am trying to use some classes from package that I has made in my jsp so i have imported the package as under..
<%@ page import = "HTML.*" %>
where HTML is the name of the package

but the jsp is giving a run-time error - package HTML does not exits.
I have placed the package in the Common\Classes folder

Please help me out in this..

Thanks..
Nidhi
 
ramprasad madathil
Ranch Hand
Posts: 489
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Place the class file in the classes folder that's inside the WEB-INF folder of your web application.

Also considering using lowercase for package names - that's the normal java standard. Your package could be named - com.mycompany.html or something along those lines.

ram.
 
Gavin Zhao
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just placed the package in the WEB_INF/Classes folder
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gavin Zhao:
just placed the package in the WEB_INF/Classes folder


WEB-INF/classes

It's case sensitive.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!