Contact: Tel: 2726 - New Media Systems, 1st Floor South, Queens Walk
Ok, so you would like to read a HTML page potentially from any where in the
world and combine it with some result of your servlet. Am I right guessing?
It is a bit odd to me because usually when you try to combine two things
together, you would be talking about using some kind of templates, in which you
have some tags that identify the position where you want to insert your own
stuff, or replace with your own stuff, etc. From this point of view, I would
assume that this web is some web of your own which will provide some html pages
of your known format?
Anywhere, reading a html page from any web is not difficult thing to do, thanks
to Java. All you need to do is to create a URL object with your selected URL,
then open the connection to the URL and get a input stream out the connection.
>From this input stream, you just read byte by byte (or line by line depending on
which input stream subclass you choose to use) like any other input stream.
If we think about how things should be done (the re-design;-) it might be more
interesting to you to consider MVC model...
Cheers,
Charles
Eugene Voznesensky <[EMAIL PROTECTED]> on 10/02/2000 09:25:02 PM
To: [EMAIL PROTECTED]
cc: (bcc: Charles Chen/YellowPages)
From: Eugene Voznesensky <[EMAIL PROTECTED]>, 2 October 2000, 9:25 p.m.
Re: <servlet> [Scanned by Yellow Pages PostMaster]
You are right. it's another problem. But it is very close (I hope)
Eugene
> -----Original Message-----
> From: Charles Chen [mailto:[EMAIL PROTECTED]]
> Sent: m/2/00 02:35 AM
> To: [EMAIL PROTECTED]
> Subject: Re: <servlet> [Scanned by Yellow Pages PostMaster]
>
>
> Contact: Tel: 2726 - New Media Systems, 1st Floor South,
> Queens Walk
>
>
> I am not sure if you are talking about the same thing frmo
> the original
> question? As far as I can remember, we were talking about
> combining a html and
> the result of a servlet.
>
> Cheers,
>
>
> Charles
>
>
>
>
>
> Eugene Voznesensky <[EMAIL PROTECTED]> on 09/29/2000 06:56:50 PM
>
> To: [EMAIL PROTECTED]
> cc: (bcc: Charles Chen/YellowPages)
> From: Eugene Voznesensky <[EMAIL PROTECTED]>, 29
> September 2000, 6:56
> p.m.
>
> Re: <servlet> [Scanned by Yellow Pages PostMaster]
>
>
> How can my servlet to read html page which belongs to another
> web site?
>
> E
>
> > -----Original Message-----
> > From: Charles Chen [mailto:[EMAIL PROTECTED]]
> > Sent: m/29/00 02:04 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: <servlet> [Scanned by Yellow Pages PostMaster]
> >
> >
> > Contact: Tel: 2726 - New Media Systems, 1st Floor South,
> > Queens Walk
> >
> >
> > Your problem can be better handled by letting the servlet to
> > generate the whole
> > html page for you. User's request will be the URL to your
> > servlet, and your
> > servlet will read in a html page template (you can cache this
> > temlpate for
> > performance if you use it often), insert some results into
> > the template and then
> > send it back to the client.
> >
> > If you insist using a dynamic page, you might want to
> > consider JSP which is
> > designed for this purpose.
> >
> >
> >
> > Cheers,
> >
> >
> > Charles
> >
> >
> >
> >
> >
> >
> > Eugene Voznesensky <[EMAIL PROTECTED]> on 09/29/2000 02:11:22 AM
> >
> > To: [EMAIL PROTECTED]
> > cc: (bcc: Charles Chen/YellowPages)
> > From: Eugene Voznesensky <[EMAIL PROTECTED]>, 29
> > September 2000, 2:11
> > a.m.
> >
> > Re: <servlet> [Scanned by Yellow Pages PostMaster]
> >
> >
> > Hi Alejandro,
> >
> > I have very close problem. I tried to put together a result
> > from servlet and
> > html page.
> >
> > But you can try next:
> > Create new html page with next content:
> > <html>
> > <head>
> > </head>
> >
> > <frameset name=bly rows="50%,50%">
> > <frame
> > src="http://www.myserver.com:8080/servlet/publicTecno?param1=v
> > alue1¶m2=v
> > alue2 name=aname resize>
> > <frame src="http://www.adomain.com/yourpage.html">
> > </frameset>
> > </html>
> >
> >
> > > Hi guys
> > >
> > > I have a simple question. I�m trying to insert a result from
> > > a servlet into my
> > > html page. I read about <servlet> tag but I can got it yet.
> > > Can you advise me?
> > >
> > > This is my code into html
> > > <servlet NAME="publicTecno"
> > > CODEBASE="http://www.myserver.com:8080/servlet/publicTecno.class">
> > > <PARAM NAME="data" VALUE="Event"> <PARAM NAME="ndata" VALUE="3">
> > >
> > > </servlet>
> > >
> > >
> > > I have tried with .sp but it doesn�t work.
> > >
> > > Thanks a lot
> > > Alex
> > >
> > > ______________________________________________________________
> > > _____________
> > > 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
>
___________________________________________________________________________
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