Page Redirect

2005-02-02 Thread Christopher Brizzell
I am running Tomcat 4.1 on a Windows 2003 server box, along with Apache
and JRE 1.4.1_06.

I have very little programming knowledge.

What I would like to do, is redirect any requests to
http://thisserver:9091/thiswebpage to go to
http://thisserver:8080/someotherwebpage.

Is this possible, and if so how do I go about this?

Thank you.

First New York FCU
Chris Brizzell
IT Analyst
518-393-1326 x1505
518-218-7908 (fax)
[EMAIL PROTECTED] 
www.firstnewyork.org



-
This email and any files transmitted with it are confidential
 and intended solely for the use of the individual or entity 
to whom they are addressed.  Any review or distribution by
others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies
 in their entirety, whether electronic or hard copy.
-
GWAVAsig

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat page redirect

2003-03-17 Thread Colin Browell

--- Tim Funk [EMAIL PROTECTED] wrote:
 There is no easy way in tomcat. That is most people run apache in 
 front of tomcat and apache already has the functionality, so there is
 no 
 need to duplicate it in tomcat.
 
 
 The easy hack is to create an index.jsp and have it be one line:
 %
response.sendRedirect(iNeed/MoreCowebll.jsp);
return;
 %

Thanks Tim, that worked fine.

Although the server defaulted to an index.html file, it seems that the
new index.jsp has a higher priority than index.html.

Colin


__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat page redirect

2003-03-17 Thread Tim Funk
The default file is called the welcome file with respect to the servlet 
specification (section 9.9) and is configured via web.xml. You can 
actually have any file name be your welcome file.

-Tim

Colin Browell wrote:
--- Tim Funk [EMAIL PROTECTED] wrote:

There is no easy way in tomcat. That is most people run apache in 
front of tomcat and apache already has the functionality, so there is
no 
need to duplicate it in tomcat.

The easy hack is to create an index.jsp and have it be one line:
%
  response.sendRedirect(iNeed/MoreCowebll.jsp);
  return;
%


Thanks Tim, that worked fine.

Although the server defaulted to an index.html file, it seems that the
new index.jsp has a higher priority than index.html.
Colin




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat page redirect

2003-03-17 Thread Colin Browell
--- Tim Funk [EMAIL PROTECTED] wrote:
 The default file is called the welcome file with respect to the
 servlet 
 specification (section 9.9) and is configured via web.xml. You can 
 actually have any file name be your welcome file.
 

Ah, I see. The web.xml has a welcome-file-list section which lists
index.jsp, index.html and index.htm which is obviously a prioritised
search list.

Thanks again

Colin


__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat page redirect

2003-03-15 Thread Colin Browell

[EMAIL PROTECTED] wrote:
 Is there a simple way of causing a page redirect in Tomcat?
 
 In Apache a simple change to the httpd.conf would suffice, but in
 Tomcat the learning curve seems to be much steeper!
 
 Basically, I have been told to modify our Aepona/Tomcat installation
 so that when a user types
 
   http://mytomcathost:8080
 
 into their browser, then instead of getting the default set of Tomcat
 pages (containing examples etc) they will get redirected to the home
 page of the Aepona software itself which runs on Tomcat at
 
   http://mytomcathost:8080/Causeway_PM
 
 Can this be done by a simple change to a Tomcat configuration file?

Anyone?

I thought that this would be a simple task to cause a page redirect.

(Incidentally we are running Tomcat, NOT Apache with the tomcat
module.)

Thanks

Colin


__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat page redirect

2003-03-15 Thread Tim Funk
There is no easy way in tomcat. That is most people run apache in 
front of tomcat and apache already has the functionality, so there is no 
need to duplicate it in tomcat.

The easy hack is to create an index.jsp and have it be one line:
%
  response.sendRedirect(iNeed/MoreCowebll.jsp);
  return;
%
-Tim

Colin Browell wrote:
[EMAIL PROTECTED] wrote:

Is there a simple way of causing a page redirect in Tomcat?

In Apache a simple change to the httpd.conf would suffice, but in
Tomcat the learning curve seems to be much steeper!
Basically, I have been told to modify our Aepona/Tomcat installation
so that when a user types
 http://mytomcathost:8080

into their browser, then instead of getting the default set of Tomcat
pages (containing examples etc) they will get redirected to the home
page of the Aepona software itself which runs on Tomcat at
 http://mytomcathost:8080/Causeway_PM

Can this be done by a simple change to a Tomcat configuration file?


Anyone?

I thought that this would be a simple task to cause a page redirect.

(Incidentally we are running Tomcat, NOT Apache with the tomcat
module.)
Thanks

Colin

__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com
-
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]


Tomcat page redirect

2003-03-14 Thread Colin Browell
Is there a simple way of causing a page redirect in Tomcat?

In Apache a simple change to the httpd.conf would suffice, but in
Tomcat the learning curve seems to be much steeper!

Basically, I have been told to modify our Aepona/Tomcat installation
so that when a user types

  http://mytomcathost:8080

into their browser, then instead of getting the default set of Tomcat
pages (containing examples etc) they will get redirected to the home
page of the Aepona software itself which runs on Tomcat at

  http://mytomcathost:8080/Causeway_PM

Can this be done by a simple change to a Tomcat configuration file?

Thanks

Colin


__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



help is needed -- question on page redirect

2002-01-09 Thread Xin Li

I have a question on Page Redirect in Tomcat4.

In enhydra the page redirecting is accomplished by using throw new
ClientPageRedirectException (NextPage); May I know what's the equivalent
method of redirecting in tomcat?

Thanks


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: help is needed -- question on page redirect

2002-01-09 Thread Tom Drake

Follow the standard servlet spec / api:

request.sendRedirect(http://www.yahoo.com;);

Keep in mind that this will fail if the response has already
been 'committed' (e.g. some data has been sent to the client).
The reason is that a 'redirect' requires that certain HTTP header
values be returned to the caller. If the headers have already been
sent, then the protocol prevents you from redirecting.

Good Luck

Tom Drake

- Original Message - 
From: Xin Li [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, January 09, 2002 1:25 PM
Subject: help is needed -- question on page redirect


| I have a question on Page Redirect in Tomcat4.
| 
| In enhydra the page redirecting is accomplished by using throw new
| ClientPageRedirectException (NextPage); May I know what's the equivalent
| method of redirecting in tomcat?
| 
| Thanks
| 
| 
| --
| 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]