Best approach is to write a servlet which has a URL object points to the servlet from 
where you want to read the data. Use URL methods to read data and write it to the 
servlet. Tha's it, run the servlet.

or use JSP.

Sri

-----Original Message-----
From: Nic Ferrier [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 02, 2000 10:05 AM
To: [EMAIL PROTECTED]
Subject: Re: calling servlets from within html page


>>> tripat kharbanda <[EMAIL PROTECTED]> 02-Jun-00 2:07:36 PM
>>>

>How can call servlet to display servlet generated html code
>in my calling html page. I can't use server side include b'coz
>i have heard that it slows down the server.

Did you know that making a request to your server slows it down?


>In other words withour renaming the extension to shtml can
>i call the servlet to insert the code in my webpage?

You can use SHTML. You could also use a JSP page to do this.

A JSP page might be quicker.

Alternately you could use frames.

But did you know using frames slows down your browser?


Nic Ferrier

___________________________________________________________________________
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