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: Eric Foster   on Oct 01

<%@ page  import = "/WEB-INF/classes/message.class"%>

Import statements in JSPs look just like those in regular Java classes, so you
can't do this. Try this instead:

<%@ page import="message" %>

The WEB-INF/classes directory is automatically loaded for you, you just have to
import the classes you want from it. Also, if you want a jar you can put it in
the WEB-INF/lib directory.

And, I think it would also be a really good idea to put message inside a
package.

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: