You need an import statement for the class in the page tag.

<%@ page language="java" import="tr" %>

if there is no further package structure, it will look for tr.class in
web-inf/classes

if there is a package structure, then the import needs it:
<%@ page language="java" import="com.acme.something.tr" %>


-----Original Message-----
From: Syed Niaz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 1:00 PM
To: Struts Users Mailing List
Subject: Instantiating a Java Class



Hi

Iam a novice to Struts and need your help .

My jsp is this

-----------------------------------------------------
<%@ page language="java" %>

<%@ taglib uri="/WEB-INF/app.tld"    prefix="app" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%
tr xyz = new tr() ;
%>
-----------------------------------------------------

When executed ,
javax.servlet.ServletException: org/apache/jsp/tr
Root cause : java.lang.NoClassDefFoundError: org/apache/jsp/tr

I have included org/apache/jsp/tr at almost every level of folders .

Any idea why this occurs .
Where is it actually expecting the tr.class file to be ?

Thanks

Syed 

 


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to