Thanks !!
I was able to access it using the htp://localhost:8080/test.xsl by putting
the xsl in the default directory of the webserver.


Regards,
Seema Kumar
Datamatics Technologies Ltd.,
(Tel: 8290829 (Ext:619))
----- Original Message -----
From: "Imran Baig" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2001 6:05 PM
Subject: Re: Problem using XSL while displaying XML through servlets


> Seema,
>      Have you tried accessing your XSL file directly.
>      I mean instead of using XML link, type URL of your XSL file directly
in
> your browser.
>      For example
>      http://localhost:8080/servlet/test.xsl
>      OR
>      http://localhost/servlet/test.xsl
>
>      If you are successful in accessing your XSL file then give that path
> accodingly in your servlet.
>      If still unsuccessful in accessing XSL file then you may copy your
XSL file
> in directory having read rights.
>
> Baig
>
>
>
>
>
> Seema P Kumar <[EMAIL PROTECTED]> on 05/08/2001 04:41:13 PM
>
> Please respond to "A mailing list for discussion about Sun Microsystem's
Java
>       Servlet API Technology." <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:    (bcc: Imran Baig/CresSoft)
>
> Subject:  Re: Problem using XSL while displaying XML through servlets
>
>
>
> Hi Imran,
>
> I did try the same, with "test.xsl" alone in the path.
> But then it gives me the error :
> http://localhost:8080/servlet/test.xsl not found.
>
> Any suggestions to tackle this problem ?
>
> Regards,
> Seema Kumar
> Datamatics Technologies Ltd.,
> (Tel: 8290829 (Ext:619))
> ----- Original Message -----
> From: "Imran Baig" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 08, 2001 4:53 PM
> Subject: Re: Problem using XSL while displaying XML through servlets
>
>
> > For XSL file don't give any path just use XSL filename. So instead of
> using "
> > c:\\JavaWebServer2.0\\servlets\\test.xsl\" use "test.xsl".
> >
> > Baig
> >
> >
> >
> >
> >
> >
> > Seema P Kumar <[EMAIL PROTECTED]> on 05/08/2001 03:20:44 PM
> >
> > Please respond to "A mailing list for discussion about Sun Microsystem's
> Java
> >       Servlet API Technology." <[EMAIL PROTECTED]>
> >
> > To:   [EMAIL PROTECTED]
> > cc:    (bcc: Imran Baig/CresSoft)
> >
> > Subject:  Problem using XSL while displaying XML through servlets
> >
> >
> >
> > Hi all,
> >
> > I am attempting to display an XML document that uses a XSL style sheet,
> > through a servlet. I have placed both the servlet class file and .xsl
file
> > in the same /servlets directory of JavaWebserver. However, while trying
to
> > display the servlet the browser throws the following error :
> >
> > Access is denied.
> > Error processing resource 'file://c:\JavaWebServer2.0\servlets\try.xsl'.
> >
> > I use the following code snippet for the same :
> > public void doPost(HttpServletRequest request, HttpServletResponse
> response)
> >     throws ServletException, IOException{
> >
> >   response.setContentType("text/xml");
> >
> >   PrintWriter out = response.getWriter();
> >        out.println("<?xml version=\"1.0\" standalone=\"yes\" ?>");
> >   out.println("<?xml-stylesheet type=\"text/xsl\"
> > href=\"c:\\JavaWebServer2.0\\servlets\\test.xsl\"?>");
> >   out.println("<myxml>");
> >   out.println("<mytag> ...</mytag>");
> >   out.println("</myxml>");
> > }
> >
> > Somebody please help..
> > Thanks in advance..
> >
> > Seema
> >
> >
>
___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
> >
>
___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to