You can e.g. define a tag on your own that makes a lookup and a call to an
EJB whereas I believe it ain't gotta be well designed.


> AXA eSolutions GmbH
> AXA Konzern AG Germany
> Oliver Lauer 
> Web Architect
> W�rthstra�e 34
> D-50668 K�ln
> Germany
> Tel.: +49 221 148 31277
> Fax: +49 221 148 43963
> Mobil: +49 179 59 064 59
> e-Mail: [EMAIL PROTECTED]
> _____________________________
> 


-----Urspr�ngliche Nachricht-----
Von: Huaxin [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 23. November 2001 17:19
An: Tomcat Users List
Betreff: Re: JSP/Servlet <-->EJB


But is this the way a JSP calling EJB?
the examples is just a JB, not EJB

On Fri, 23 Nov 2001, Ludovic Maitre wrote:

> you can instantiate a bean from a JSP page with the jsp:use-bean
> statements as mentionned in the example packaged with tomcat 4 (and 3).
> For more informations read the fine manual or specification of JSP on
> the Sun website (their tutorial are also very good).
>
> in tomcat 4, file webapps/examples/jsp/checkbox/checkresult :
>
> <%! String[] fruits; %>
> <jsp:useBean id="foo" scope="page" class="checkbox.CheckTest" />
>
> <jsp:setProperty name="foo" property="fruit" param="fruit" />
> <hr>
> The checked fruits (got using request) are: <br>
> <%
>         fruits = request.getParameterValues("fruit");
> %>
> <ul>
> <%
>     if (fruits != null) {
>           for (int i = 0; i < fruits.length; i++) {
> %>
> ...
>
> regards,
> Ludovic.
>
> Huaxin wrote:
> >
> > A little bit off topic, sorry about that.
> >
> > I see most of the examples using EJB from Servlet.
> > However, is there any example of using JSP with
> > EJB directly? (without too much scriplet, and
> > hopefully more efficient than create a bean to
> > interact with the EJB)
> >
> > thanks a lot
>
> --
>  [EMAIL PROTECTED]
>
>  INRIA - 2004 route des lucioles - BP 93    Tel: (33/0) 4 92 38 50 41
>  06902   SOPHIA-ANTIPOLIS cedex (France)    Fax: (33/0) 4 92 38 76 02
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


----------------------------
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich 
mit dem Absender der E-Mail in Verbindung zu setzen.
----------------------------
For legal and security reasons the information provided in this e-mail is not legally 
binding. Upon request we would be pleased to provide you with a legally binding 
confirmation in written form. Any form of unauthorised use, publication, reproduction, 
copying or disclosure of the content of this e-mail is not permitted. This message is 
exclusively for the person addressed or their representative. If you are not the 
intended recipient of this message and its contents, please notify the sender 
immediately.
---------------------------



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to