Two Laptop Bag
The moose likes XML and Related Technologies and the fly likes How to dynamically convert XML to HTML using JSP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to dynamically convert XML to HTML using JSP?" Watch "How to dynamically convert XML to HTML using JSP?" New topic

How to dynamically convert XML to HTML using JSP?

Faxin Zhao

Joined: Jul 18, 2003
Posts: 16
I have a problem.
I can search an account using a servlet and a jsp file, and show the results using XML.
Now I need to minitor those output and show it using HTML.
I run the following jsp, but got error:
<%@taglib uri="" prefix="xslt" %>
<title>Account Monitor</title>
<xslt:apply xml="http://localhost/servlet/acctMonitor?acctKey=1234678&branch=BIC" xsl="bic.xsl"/>

What's wrong?
Thanks in advance.

Exception in jsp:
org.apache.jasper.JasperException: Could not locate TLD META-INF/taglib.tld at
org.apache.jasper.compiler.TagLibraryInfoImpl.( at
org.apache.jasper.compiler.JspParseEventListener.handleDirective( at
org.apache.jasper.compiler.DelegatingListener.handleDirective( at
org.apache.jasper.compiler.Parser$Directive.accept( at
org.apache.jasper.compiler.Parser.parse( at
org.apache.jasper.compiler.Parser.parse( at
org.apache.jasper.compiler.Parser.parse( at
org.apache.jasper.compiler.Compiler.compile( at
org.apache.jasper.runtime.JspLoader.loadJSP( at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary( at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service( at
org.apache.jasper.runtime.JspServlet.serviceJspFile( at
org.apache.jasper.runtime.JspServlet.service( at
javax.servlet.http.HttpServlet.service( at
com.gefionsoftware.server.ServletContextImpl$ at
com.gefionsoftware.server.ServletContextImpl.executeServlet( at
com.gefionsoftware.server.ServletContextImpl.execute( at
com.gefionsoftware.server.GenericServer.execute( at
com.gefionsoftware.server.lws.LiteWebServer$ at
se.pureit.util.ThreadPool$WorkThread.startRunnable( at
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
We have only one rule at the ranch and that is the naming policy....please change you screen name by clicking on the my profile link above.
I agree. Here's the link:
subject: How to dynamically convert XML to HTML using JSP?
It's not a secret anymore!