Vishal,

I think Guy is suggesting that you switch your architecture it a Servlet
centric model (a.k.a Model 2). Although this architecture is far superior to
a JSP centric model, it is more complicated. As long as your application
will ALWAYS remain small stick with your JSP centric approach. If you
decided to go with the Servlet centric architecture, I suggest that you use
the Struts package from the Jakarta Apache group (jakarta.apache.org).

Anyways, back to your original problem. You need to jar up the remote
interfaces and remote interfaces for your EJBs and any object that is passed
over these interfaces.  Then put this  jar in the WEB-INF/lib directory of
your war file. Jasper, which is the JSP page compiler, will only resolve
classes located in jars in the WEB-INF/lib directory or loose classes in the
WEB-INF/classes.

Hope this helps.

-dain

-----Original Message-----
From: Guy Rouillier [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 4:51 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Using JSP with JBoss


This is of course very subjective, but I would recommend that your JSPs not
talk directly to an EJB.  Can be done, obviously, as JSPs can contain any
Java code.  But JSPs are meant as a presentation layer.  I would recommend
you use a simple Java Bean (like the interest client) to talk with the EJB,
then have your JSP instantiate the client bean.  That way (1) your JSP
developers don't need to know about EJBs, how to connect with them, etc, and
(2) the JSP code can talk to the client bean as though everything were
taking place locally.  This approach let's your creative people focus on
presentation, while your developers focus on the business logic, and also
gives you more location independence.  If you use this approach, you've
already got an interest client in the sample code.

----- Original Message -----
From: "Vishal Chawla" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 27, 2001 3:04 PM
Subject: [JBoss-user] Using JSP with JBoss


> Hello,
> I am working with the first example (Interest ejb ) in the documentation.
> Instead of the Java application calling the ejb method, I have a simple
ejb
> that invokes the method and displays the result. My question is how can I
> use this JSP. I am not clear about the structure of the ejb "jar" file,
the
> web "war" file and the application "ear' file. What goes into each?
>
> If I load the jsp file (located in the webapps directory of tomcat) in the
> browser, it does not compile because it cannot find the interest ejb
> classes.
>
> Looking for help,
> --vishal
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to