tej...

you have to use multiple import items, one for each class or package you're
importing

such as:

<%@ page language="java" import="java.util.*" import="java.io.*" %>

however, i sometimes get a compilation error if i use more than one inline like
this, so the preferable way is:

<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>

et cetera....

hope this helps

-kg


teh j wrote:

> Hello
>
> I was wondering if I could get some help on something?
>
> Is it possible to use a bean in a JSP and at the same
> time, import another class (that I have created) for
> use in the page?
>
> I am trying to do this with the tag
> <%@ page language = "java" import = "java.util.Vector,
> onSaleCalendar.onSaleCalendar"%>
>
> however my JSP gives me Error 500 and tells me that it
> cannot find the class
> onSaleCalendar (Vector works fine)
>
> the bean tag I am using is
>
> <jsp:useBean id = "selectBean" scope ="page" class =
> "selectexamples.eventsOnday"/>
>
> I have place my bean on the directory
>
> jakarta-tomcat-3.2.1/webapps/test/WEB-INF/classes/selectexamples
> and called it eventsOnday
>
> I have placed my class onSaleCalendar under
> jakarta-tomcat-3.2.1/webapps/test/WEB-INF/classes/onSaleCalendar
>
> thanks
> J
>
> _____________________________________________________________________________
> http://my.yahoo.com.au - My Yahoo!
> - Have news, stocks, weather, sports and more in one place.

Reply via email to