i went to google and searched for: hidden frames
and this is the first page i found,
http://www.15seconds.com/issue/991230.htm , which i found pretty good for
an intro into using hidden frames, read it and then go back to google if u
need more info, if u want more help on the javascript in the hidden frame
controlling the visible frame then dont hesitate to ask
Thanks,
Alan Czajkowski
-------------------------------------
Database Administrator
BMO Financial Group
Decision Support Services
3300 Bloor Street West
14th Floor, West Tower
Toronto, Ontario, M8X 2X2
Tel: 416.232.8736
-------------------------------------
<[EMAIL PROTECTED]>
16/12/2003 11:11 AM
Please respond to "Tomcat Users List"
To: <[EMAIL PROTECTED]>
cc:
Subject: RE: Having problems with stored PrintWriter.
I like the idea of this additional hidden frame.
Is there any pointers to where I could start to look at some code for
hidden frames as I have never had the pleasure to create them?
I suppose they would need to be able to communicate with each other
aswell. must be able i suppose.
Ok Ill go have a look at this. Cheeers for all your prompt help.
Del.
Since you guys dealt with this with such ease im stuck on another topic.
last one honestly.
On another hand im trying to call the servlet.
Im using this code
1 URL myUrl = new
URL("http://localhost:8080/servlets-examples/servlet/lbp.LBPServlet?ReceivedEvent=tester2");
2 HttpURLConnection urlConnection =
(HttpURLConnection)myUrl.openConnection();
Will this code get to the doget() method of my servlet or do i have to
include something additional to get into the servlet doget(). or dopost()?
Using this for event stimulus but doesnt seem to be working just now.
-----Original Message-----
From: Alan Czajkowski [mailto:[EMAIL PROTECTED]
Sent: Tue 16/12/2003 15:50
To: Tomcat Users List
Cc:
Subject: RE: Having problems with stored PrintWriter.
very true, if u try to make the browser hang on for too
long then
eventually something will timeout (either on the client
side or server
side)
so as many here have suggested the best way is to refresh
with javascript
or a meta-refresh
but ... an even nicer solution is to create a hidden
frame that has ur
javascript/meta-refresh code, in this hidden frame u can
have all ur logic
that checks the server and can instruct the visible frame
to refresh only
when it has to
Thanks,
Alan Czajkowski
-------------------------------------
Database Administrator
BMO Financial Group
Decision Support Services
3300 Bloor Street West
14th Floor, West Tower
Toronto, Ontario, M8X 2X2
Tel: 416.232.8736
-------------------------------------
"Shapira, Yoav" <[EMAIL PROTECTED]>
16/12/2003 10:41 AM
Please respond to "Tomcat Users List"
To: "Tomcat Users List"
<[EMAIL PROTECTED]>
cc:
Subject: RE: Having problems with stored
PrintWriter.
Howdy,
>Im trying to create a servlet that is able to push back
to the browser
>rather than just operate a a pull mechanism.
>
>
>To create this, there is a piece of javascript embedded
within the html
>outputted to the browser, so when additional javascript
code is written
in
>at a later stage calling that function, that user can be
notified of
events
>he is registered to.
You can have the JavaScript reload the page from your
servlet, i.e.
giving the servlet a new request. This is a common
solution.
>Perhaps not the way servlets were made to work but
anyway!
That's a big "but anyway" -- probably too big.
>Unless you are able to come up with a better solution?
Depends what your design goal is. A web server pushing
stuff onto
clients? Not my cup of tea, as you observed that's now
how the web
works. Clients requests, servlets (as their name
implies) and more
generally web servers (as their name also implies) serve.
>How do i stop the response from ending then? I have left
the html open
at
>the end so no /html code and I have not closed the
output to the
browser.
Eventually, something will time out. The browser, the
server, your
firewall, many things can and will terminate the
connection.
Yoav Shapira
This e-mail, including any attachments, is a confidential
business
communication, and may contain information that is
confidential,
proprietary and/or privileged. This e-mail is intended
only for the
individual(s) to whom it is addressed, and may not be
saved, copied,
printed, disclosed or used by anyone else. If you are
not the(an)
intended recipient, please immediately delete this e-mail
from your
computer system and notify the sender. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]