tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cracauer, David D." <>
Subject RE: Auto load a servlet
Date Fri, 30 Nov 2001 16:56:38 GMT
Can't you do a redirect to a relative path?
Like this:

 <title>HTML REDIRECT</title>


-----Original Message-----
From: Bret Farris []
Sent: Friday, November 30, 2001 10:42 AM
To: Tomcat Users List
Subject: Re: Auto load a servlet

Thanks for the response.  However, this is what I'm doing now.
Unfortunately, using "localhost" in the redirected url does not work when
the client browser is on another computer.  I can use the host computers IP
address instead, but defeats the purpose of what I'm trying to do, which
I'll explain more.

We make equipment that monitors clean rooms for companies, as well as the
software that can monitor all the equipment at one time.  We have created a
servlet that will allow anyone in the company to monitor limited portions of
the software without having to install the software on lots of machines.  So
we will be including Tomcat 4 with our software.  I don't want to have to
create a customized index.html file for each customer.  So I'm searching for
a different solution.

I'm researching using javascript to automatically find the IP address of the
hostcomputer and redirect to the IP+"webstation/servlet/WebStation".  But
have come up empty on that front so far.

Any other suggestions would be greatly appreciated.


----- Original Message -----
From: "James Chuang" <>
To: "Tomcat Users List" <>
Sent: Thursday, November 29, 2001 15:04
Subject: Re: Auto load a servlet

> Create a real simple index.html, and have it do a onLoad like this...
> <HTML>
> <SCRIPT language="JavaScript">
> function redirect() {
> window.location.href =
> }
> <BODY onLoad="redirect()" >
> Redirecting ...
> </BODY>
> </HTML>
> Then setup your web server to serve up index.html by default.
> ----- Original Message -----
> From: "Bret Farris" <>
> To: "Tomcat Users List" <>
> Sent: Thursday, November 29, 2001 1:32 PM
> Subject: Auto load a servlet
> I have a servlet that can be loaded by going to
> http://localhost:8080/webstation/servlet/WebStation
> The servlet, WebStation.class, is in the directory:
> webstation\WEB-INF\classes.  WebStation.class calls two other servlets,
> BtmFrame.class and TopFrame.class, which in turn load and display in a
> browser html files from the webstation directory.
> What I want to do is have the user enter http://localhost:8080 into their
> browser, and run the above servlet, as if they entered the link above.  Is
> there a way to do this?  I have tried to use mapping with as many
> combinations as I can think of, but nothing has worked.
> Thanks,
> Bret
> --
> To unsubscribe:   <>
> For additional commands: <>
> Troubles with the list: <>

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message