File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes JSP beans and JRun Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP beans and JRun" Watch "JSP beans and JRun" New topic
Author

JSP beans and JRun

Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2578

I am trying to use beans with JSP, bean compiles fine, get set works fine with bean tester.
Now, I have to make it work with JSP. Where do I put it? I am using JRun, couldn't locate this info in the documentation. There's no error shown in the browser, but the value I am trying to retrieve from the bean is not displayed.
Does anyone know where do I need to put this bean for JRun server.
TIA,
- Manish
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
Since a JSP gets turned into a servlet, any class that has to work with a JSP must be stored like a servlet class - in the
WEB-INF/classes
directory of the web application. Be sure that you make the bean part of a package, classes in the default package don't seem to get loaded as you would expect.
Bill


Java Resources at www.wbrogden.com
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2578

I have put my test bean in a package and created the necessary directories for it. But there's no web-inf with JRun. Instead I put it in the jsm-default classes, but no luck
What else can I do to make it work? (I use JRun 2.3)
- Manish
Shubhrajit Chatterjee
Ranch Hand

Joined: Aug 23, 2001
Posts: 356
Update to JRUN 3


Shubhrajit
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
JRun 2.3 comes from 2 generations of the servlet and JSP API ago. It simply does not provide for using beans. You could jump to JRun 4 which implements the current API or JRun 3 (which I am using) which is only one generation behind.
Or you could get Tomcat which is free.
Bill
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2578

Hmmm,
I think I'll go for Tomcat. Thanks for all ur inputs.
- Manish
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP beans and JRun
 
Similar Threads
java beans and jsp
Where to put the class file while calling Beans from JSP
JSP and Jrun 2.3.3
where to place beans for jsp:useBean
bean always should be in package ?