Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Jodon Brown   on Oct 01 In Java Category.

  
Question Answered By: Agatha Miller   on Oct 01

You need not to import  a class  like this
import /WEB-INF/classes/message.class;
rather use a dot "." . However whenever u place your classes in web-inf/classes,
u don't need to import it ,the servlet  container wud automatically recognize the
class.
In case you keep the class in a package like:
WEB-INF/classes/mypackage/message.class, which means there is a directory named
mypackage in WEB-INF/classes which contains your "message.java" file then u'll
have to use this line
<%@ page  import = "mypackage.*"%>

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on JSP and Servlets Or get search suggestion and latest updates.


Tagged: