<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi,
<br> Kan U Help Mi Please ?
<p> I am developing a search engine which will have a
XML
<br> search form linked with a Servlet. The Servlet should
take input
<br> from the textfield of the XML form, scan the database
for matches &
<br> generate an XML page with the results found.(Dynamically)
!
<p> Ideally it should not make a file of that XML but
should throw
<br> it directly to the client m/c. In this case I am
not able to link it
<br> with the already created XSL stylesheet which will
already be
<br> on the server (Static).
<p> Even with making a separate XML file I am not able
to display
<br> the XML page through Servlet, though directly it
could be displayed
<br> with the same address typed in Address field of
the browser !!
<p> The code I am using for Servlet is............
<br> (This makes a separate file)
<p> doPost(HttpServletRequest,
HttpServletResponse <b>response</b>)
<br> {-------
<br>
--------
<br>
String <b>file</b> = "c:\\xml\\file.xml";
<p> <b>fw</b>
= new FileWriter(file);
<br>
pw = new PrintWriter(<b>fw</b>);
<p> pw.println("<?xml
version=.....--------"); // Making
an
<br>
pw.println("-------------------------");
// XML file.
<br>
---------------------------------------------
<p> <b>response</b>.sendRedirect(<b>file</b>);
<br> }
<p> This code gives an error : xsl not found.
<br> (Which is there in the same dir)
<br>
<br> Alse How can I do this without making a separate
.xml file ?
<p> THANKS !!
<p>-Om
<br>
<br>
<br> </html>