How to connect to TAMINO using JSP ?

Tamino Version : 3.1.1
Platform : Win2k
WebContainer : Tomcat 3.3
JDK Version : 1.4.0

Hello!

I tried to execute simple example to connect to my database Tamino.

Here is this code:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>

<%@ page language=“java” contentType=“text/html” %>
<%@ page import="com.softwareag.tamino.api.dom." %>
<%@ page import=“org.w3c.dom.Element” %>



A simple Tamino access example with jsp



<%
TaminoClient myTC = new TaminoClient(“http://localhost/tamino/mydb/mycol”);
myTC.setPageSize(0);
TaminoResult myTR = myTC.query(“mydoc”);
while (myTR.hasMoreElements()) {
Element myElement = myTR.getNextElement();
%>

<%=myElement.toString()%>

<% } %>

Done!




Unfortunately I got this error messages:


Error: 500
Location: /jspnew/example.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile C:\jakarta\work\DEFAULT\jspnew\example_1.java:4: Package com.softwareag.tamino.api.dom not found in import.
import com.softwareag.tamino.api.dom.
;
^
1 error

at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
at org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)




What can I do to solve this problem?

Any help will be appreciated.

Thanks a lot in advance.

Best Regards,
Dariusz Baumann

Looks like JavaTaminoApi.jar is missing.
Do you have this file in /WEB-INF/lib?

Michael

Software AG Germany, Darmstadt