cannot resolve symbol

Here WebModel class is in the same directory as

my jsp page

<jsp:useBean

id = "model"

scope = "session"

type ="WebModel">

It can not resolve symbol WebModel

Ple. help me out.

<%@ page import="WebModel" %>

I hava tried by importing above statement but it is not working

[347 byte] By [Jogina] at [2007-10-2 5:39:42]
# 1
It doesn't work that way. Class files are to be stored in the WEB-INF/classes directory of your context (therefore a class named com.Fred would be in the <%Context_name%>/WEB-INF/classes/com/Fred.class).And you will need to import it once you get it in the right place.
linxpdaa at 2007-7-16 1:50:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

1 - always use a full package name with the useBean tag

<jsp:useBean id = "model" scope = "session" type ="com.mypackage.WebModel">

2 - your java classes must be in a package for Tomcat to find them. The unnamed/default package is not good enough any more.

Cheers,

evnafets

evnafetsa at 2007-7-16 1:50:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...