You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jon Rose <jo...@corp.firstlink.com> on 2001/10/03 01:46:53 UTC
ActionFom NoClassDefFoundError- But I don't even tell the app that the class exists
I am loading a Value Object that is similar to my actionForm and passing
it in the request to the jsp page. I am trying to use the "bean" taglib
to write out the data. When I do that it throws a NoClassDefFoundError
on the actionForm. I have strip out any reference to the ActionForm
form the action class and the struts-config.xml. Yet I still get the
error. How does my jsp page even know that the ActionForm exists and
why won't it let me write from a bean in the request. All that i have
in my struts-config.xml is below.
<action
path="/AdminListCategories"
type="org.cayambe.web.action.AdminListCategoriesAction">
<forward name="success" path="/admin/ListCategories.jsp"/>
<forward name="failed" path="/admin/failed.jsp"/>
</action>
Thanks for any help that someone can offer.
-jon
Re: ActionFom NoClassDefFoundError- But I don't even tell the app that the class exists
Posted by "David A. D. Konrad" <ko...@dadk.dk>.
Hi Jon,
im not an expert, but my suggestion is, that you write an "importdirective" in the very beginning of your JSP-file, like this
<%@ page language="java"
import="org.cayambe.web.action.<name of your value object>"
%>
regards,
----- Original Message -----
From: "Jon Rose" <jo...@corp.firstlink.com>
To: <st...@jakarta.apache.org>
Sent: Wednesday, October 03, 2001 1:46 AM
Subject: ActionFom NoClassDefFoundError- But I don't even tell the app that the class exists
I am loading a Value Object that is similar to my actionForm and passing
it in the request to the jsp page. I am trying to use the "bean" taglib
to write out the data. When I do that it throws a NoClassDefFoundError
on the actionForm. I have strip out any reference to the ActionForm
form the action class and the struts-config.xml. Yet I still get the
error. How does my jsp page even know that the ActionForm exists and
why won't it let me write from a bean in the request. All that i have
in my struts-config.xml is below.
<action
path="/AdminListCategories"
type="org.cayambe.web.action.AdminListCategoriesAction">
<forward name="success" path="/admin/ListCategories.jsp"/>
<forward name="failed" path="/admin/failed.jsp"/>
</action>
Thanks for any help that someone can offer.
-jon