> Hi,
>
> We are trying to use tag libraries (XML) from within JSP to call EJB's.
> The code in the attached files all reads quite sensibly but doesn't work
> under JDeveloper 3.1, (Oracle V8.1.6 NT V4).
>
> I've searched thru the archives but couldn't find any notes on how to set
> up JDeveloper for Tag Libraries under J2EE. The problem is the jsp
> is "Unable to load taghandler class : taglib.tld"
> from line <%@ taglib  uri="taglib.tld"  prefix="j2ee" %>
>
> Just in case it helps, I changed the taglib.tld file to
> "c:/ravendata/development/j2sdkee1.2.1/lib/dtds/web-jsptaglibrary_1_1.dtd"
> and not the URI specified in the attached code, I'm hoping someone will
> point out a more elegant way of doing this?
>
> The following link refers to the original Sun Tutorial, which I'm using as
> a Template
>
> http://java.sun.com/j2ee/j2sdkee/techdocs/guides/ejb/html/Advanced5.html
>
> Code follows:
>
> taglib.tld
> ------------
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE taglib
>         PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
>       "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
>
> <!-- a tab library descriptor -->
>
> <taglib>
>   <tlibversion>1.0</tlibversion>
>   <jspversion>1.1</jspversion>
>   <urn></urn>
>   <info>
>       Tag library for EJB support
>   </info>
>
>   <!-- ejb tag -->
>
>   <tag>
>     <name>ejb</name>
>     <tagclass>EjbTag</tagclass>
>     <teiclass>EjbExtraInfo</teiclass>
>     <bodycontent>JSP</bodycontent>
>     <info>
>       Look up a home and declare enterprise bean; the JSP body will
> initialize the bean.
>     </info>
>
>     <attribute>
>       <name>jndiName</name>
>       <required>true</required>
>       <rtexprvalue>true</rtexprvalue>
>       <type>String</type>
>     </attribute>
>     <attribute>
>       <name>homeInterface</name>
>       <required>true</required>
>     </attribute>
>     <attribute>
>       <name>homeVar</name>
>       <required>true</required>
>     </attribute>
>   </tag>
> </taglib>
>
> converter.jsp
> ------------------
> <HTML>
> <%@ taglib  uri="taglib.tld"  prefix="j2ee" %>
>
>   <HEAD>
>     <TITLE>
>       Converter JSP
>     </TITLE>
>   </HEAD>
>   <h1><b><center>Converter JSP Example</center></b></h1>
>   <hr>
>
>   <% Converter converter = null; %>
>
>   <j2ee:ejb
>     jndiName="java:test/ConverterEJB"
>     homeInterface="ConverterHome"
>     homeVar="converterHome">
>     <% converter = converterHome.create(); %>
>   </j2ee:ejb>
>
>   <H2>The following output is from JSP code:</H2>
>   <p>
>     dollarToYen: <% converter.dollarToYen(100.00) %>
>   </p>
> </HTML>
>
>
> Chris J.
> xt39096
> e-mail:- jenkins, christopher
>
>


The Royal Bank of Scotland plc is registered in Scotland No 90312. Registered Office: 
36 St Andrew Square, Edinburgh EH2 2YB.

The Royal Bank of Scotland plc is regulated by IMRO, SFA and Personal Investment 
Authority.

This e-mail message is confidential and for use by the addressee only.  If the message 
is received by anyone other than the addressee, please return the message to the 
sender by replying to it and then delete the message from your computer.

'Internet e-mails are not necessarily secure. The Royal Bank of Scotland plc does not 
accept responsibility for changes made to this message after it was sent.'

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to