I recently wrote a server-side Java application with its own built-in HTTP
server. It sends some pages as static files, creates some pages
dynamically, and it pulls some pages from a database.
You could probably write a servlet that pulled pages from a database or any
other data source.
Ed
I think it works like this:
If you use JavaScript, the user can type in anything they want. Then you
evaluate it and alert them if you don't like what you see.
If you use Java, you can actually see what they're typing when they're
typing it. You can filter out any characters you don't want as
So if the same problem shows up on multiple browsers, multiple servers, and
GET/POST is irrelevant, let's revist the possibility of HTTP headers.
A page can be set to expire by one of 2 methods. Set an HTTP header or use
a META tag in the HTML. The same methods can also be used to say that a
Elliot Rusty Harold has a fabulous book on Java network programming. I
shows examples of how to do this.
You can do something like applet.getAppletContext.showDocument(url) to
replace the current page with something else.
If you want the current page to remain, but go get info from the server
Search the MSDN Library for any of the following strings:
Expires
ExpiresAbsolute
HTTP-EQUIV
META
Here's an example of how to set it in HTML. Put the META tag inside the
HEAD tag.
META HTTP-EQUIV="Expires" CONTENT="Tue, 04 Dec 1996 21:29:02 GMT"
Here's an example of how to set it in HTTP,
From what I've read so far, it looks like this:
%
function Hello()
{
alert('Hello, world!');
}
%
Ed
Livin' La Vida Loca
-Original Message-
From: Pel I. Kan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 10, 1999 07:01 PM
To: [EMAIL PROTECTED]
Subject:
The docs say:
jsp:forward page="yadayadayada.jsp"/
Does this help?
Ed
Livin' La Vida Loca
-Original Message-
From: Raghuraman Sridharan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 10, 1999 11:00 PM
To: [EMAIL PROTECTED]
Subject: Re: QUESTION:Does the JSP:REQUEST directive
PrintWriter out = new PrintWriter(resp.getOutputStream());
out.println("my informations");
Any ideas? thanks in advance.
Maybe replace "out" with another name.
===
To unsubscribe, send email to [EMAIL PROTECTED] and include