RE: JSP can't use local classes - What am I overlooking?
Sorry for the delay. I was using com.theseus instead of org.theseus in the JSP. Or, as I'll tell my boss "There was a namespace collision." and launch into a description of packages. Thanks for all the help, Joe --- Marcel Schutte <[EMAIL PROTECTED]> wrote: > > >I believe that you should have your package (jar) > in the orion/lib > > >directory, > > >from your message it seems that you have it in > WEB-INF/classes. That > > >directory is usually for servlets. > > >Eric. > > > > Just to point out that per Official Sun Servlets > 2.2 / Jsp 1.1 > > Specifications, all jsp and servlets inside a > context wiull use the > > WEB-INF/classes directory and all the jar (not > zip) files inside the > > WEB-INF/lib directory in their classpath. > > > > Best Regards, > > Kazuma > > > > That's right and I might add that the orion/lib > directory is certainly not > meant for application specific jars. You use it for > third party jdbc drivers > like hypersonic and other supporting classes that > are used by orion > directly. > J2EE specifies plenty of places to put your > application specific jars, just > like Kazuma points out. > > This means that Joe Fair has some other problem, > could you perhaps post some > extra info? > > Marcel > > __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: JSP can't use local classes - What am I overlooking?
> >I believe that you should have your package (jar) in the orion/lib > >directory, > >from your message it seems that you have it in WEB-INF/classes. That > >directory is usually for servlets. > >Eric. > > Just to point out that per Official Sun Servlets 2.2 / Jsp 1.1 > Specifications, all jsp and servlets inside a context wiull use the > WEB-INF/classes directory and all the jar (not zip) files inside the > WEB-INF/lib directory in their classpath. > > Best Regards, > Kazuma > That's right and I might add that the orion/lib directory is certainly not meant for application specific jars. You use it for third party jdbc drivers like hypersonic and other supporting classes that are used by orion directly. J2EE specifies plenty of places to put your application specific jars, just like Kazuma points out. This means that Joe Fair has some other problem, could you perhaps post some extra info? Marcel
RE: JSP can't use local classes - What am I overlooking?
>I believe that you should have your package (jar) in the orion/lib >directory, >from your message it seems that you have it in WEB-INF/classes. That >directory is usually for servlets. >Eric. Just to point out that per Official Sun Servlets 2.2 / Jsp 1.1 Specifications, all jsp and servlets inside a context wiull use the WEB-INF/classes directory and all the jar (not zip) files inside the WEB-INF/lib directory in their classpath. Best Regards, Kazuma --- "I'd rather listen to Newton than to Mundie [Microsoft Senior VP]. He may have been dead for almost three hundred years, but despite that he stinks up the room less." (Linus Torwald) Alex 'Kazuma' Garbagnati, http://www.kazuma.net/
RE: JSP can't use local classes - What am I overlooking?
I believe that you should have your package (jar) in the orion/lib directory, from your message it seems that you have it in WEB-INF/classes. That directory is usually for servlets. Eric. -Original Message- From: Joe Fair [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 7:57 AM To: Orion-Interest Subject: JSP can't use local classes - What am I overlooking? In my application I am not able to use the local classes in my jsp. Whenever I put in: <%@ page import="com.theseus.*" %> I get: Error parsing JSP page /m2/pagetwo.jsp Syntax error in source/pagetwo.jsp.java:5: Package com.theseus not found in import. import com.theseus.*; ^ 1 error I have compiled the classes and verified that they are in the build directory under WEB-INF/classes. Here's my application.xml Static Theseus Example Static Theseus Example static-example-web.war static-example-web What am I leaving out? Thanks in advance, Joe __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: JSP can't use local classes - What am I overlooking?
Your application.xml looks incorrect (can't tell for sure without directory structure). My suspicion is that it should read like: static-example-web / You may also check your orion-application.xml in your application-deployments to make sue it contains the correct info ... --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Joe Fair Sent: Thursday, May 24, 2001 8:57 AM To: Orion-Interest Subject: JSP can't use local classes - What am I overlooking? In my application I am not able to use the local classes in my jsp. Whenever I put in: <%@ page import="com.theseus.*" %> I get: Error parsing JSP page /m2/pagetwo.jsp Syntax error in source/pagetwo.jsp.java:5: Package com.theseus not found in import. import com.theseus.*; ^ 1 error I have compiled the classes and verified that they are in the build directory under WEB-INF/classes. Here's my application.xml Static Theseus Example Static Theseus Example static-example-web.war static-example-web What am I leaving out? Thanks in advance, Joe __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/