File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Bean classes and orion Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Bean classes and orion Server" Watch "Bean classes and orion Server" New topic
Author

Bean classes and orion Server

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi,
Can any one please tell me where I should put my beans(.java)files,which I am using in my jsp page.I am using Orion Server.
Thank in advance..
Giya
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
I'm not familiar with Orion Server, but if it follows the Servlet 2.2 specification, then all classes should be in a standard package tree in a WEB-INF/classes directory below the root for your web application. Depending on your server and its configuration, it may auto-compile java source files if placed in the same directory.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I am trying to put the bean file even in the same directory where the jsp file is, still it don't find the bean file and gives error about it..any suggestion???
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
It must be in the classpath as defined to Orion. Rarely are servlet directories on the classpath. There should be a local-classes directory.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
To clarify my suggestion above, The Servlet 2.2 spec defines the layout of a web application as follows:

So, if your JSP files are happily working in /blah/mydir/something
you should put your java source files or compiled classes in
/blah/mydir/something/WEB-INF/classes
Does this help?
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Thanks a lot Thomas and Frank I put my calsses as follwos and now they are working fine.
defauly-web-app/web-inf/classes/mypackage
Giya
 
jQuery in Action, 2nd edition
 
subject: Bean classes and orion Server