Unfortunately, I am very new at this. I'm afraid I don't understand what you are refering to. Would that be a setting in my web or server.xml files? I'm using Tomcat as a stand-alone app.
Thanks, Bret ----- Original Message ----- From: "Cracauer, David D." <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Friday, November 30, 2001 11:28 Subject: RE: Auto load a servlet > The only way I know how to do this is with apache/mod_jk > > -----Original Message----- > From: Bret Farris [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 30, 2001 12:25 PM > To: Tomcat Users List > Subject: Re: Auto load a servlet > > > Actually, I want a client to be able to type into their browser > http://ipaddress instead of http://ipaddress/webstation/servlet/WebStation > and allow the servlet to automatically load. I would rather avoid using a > redirect in an index.html file to accomlish this. I have tried several > mapping scenarios, and nothing seems to work. > > ----- Original Message ----- > From: "Micael Padraig Og mac Grene" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Friday, November 30, 2001 11:05 > Subject: Re: Auto load a servlet > > > > I missed the early part of this exchange. Are you merely trying to direct > > different clients to different files? > > > > > > -----Original Message----- > > From: Bret Farris <[EMAIL PROTECTED]> > > To: Tomcat Users List <[EMAIL PROTECTED]> > > Date: Friday, November 30, 2001 8:44 AM > > 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. > > > > > >Thanks, > > >Bret > > > > > >----- Original Message ----- > > >From: "James Chuang" <[EMAIL PROTECTED]> > > >To: "Tomcat Users List" <[EMAIL PROTECTED]> > > >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 = > > >"http://localhost:8080/webstation/servlet/WebStation" > > >> } > > >> </SCRIPT> > > >> <BODY onLoad="redirect()" > > > >> Redirecting ... > > >> </BODY> > > >> </HTML> > > >> > > >> Then setup your web server to serve up index.html by default. > > >> > > >> > > >> ----- Original Message ----- > > >> From: "Bret Farris" <[EMAIL PROTECTED]> > > >> To: "Tomcat Users List" <[EMAIL PROTECTED]> > > >> 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 > > >different > > >> combinations as I can think of, but nothing has worked. > > >> > > >> Thanks, > > >> Bret > > >> > > >> > > >> > > >> -- > > >> To unsubscribe: <mailto:[EMAIL PROTECTED]> > > >> For additional commands: <mailto:[EMAIL PROTECTED]> > > >> Troubles with the list: <mailto:[EMAIL PROTECTED]> > > >> > > >> > > >> > > > > > > > > >-- > > >To unsubscribe: <mailto:[EMAIL PROTECTED]> > > >For additional commands: <mailto:[EMAIL PROTECTED]> > > >Troubles with the list: <mailto:[EMAIL PROTECTED]> > > > > > > > > > > > > -- > > To unsubscribe: <mailto:[EMAIL PROTECTED]> > > For additional commands: <mailto:[EMAIL PROTECTED]> > > Troubles with the list: <mailto:[EMAIL PROTECTED]> > > > > > > > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > > > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>