RE: web.xml Welcome -file and for SSL

2004-03-18 Thread Forte, Graham
Uma,
I have set the web.xml welcome file to index.jsp and then in index.jsp(which the user 
never sees) I do a 
%response.sendRedirect(https://myDomain.com:8443/sslIndex.jsp;);%
For your needs you could just have the user logon on the http page.
On the html page set the form action=https://www.mysite.com/Welcome.jsp;

I have been pulling my hair out over the port thing. I requested the tomcat standard 
ssl port be open and now I am finding out that was not a good thing. Since now the 
user has to specify 8443. 
I dont have port 80 so I cant do a www.myDomain.com redirect.
Good luck.
Graham

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 9:17 PM
To: Tomcat Users List
Subject: Re: web.xml Welcome -file and for SSL






Hi Forte,
I am also having similar type of problem. When the user types
http://www.mysite.com it should first go to the default .html page (that is
using 80 port) that I have set in the welcome-file-list in web.xml file.
Its working fine. But once the user logs in from the home page, he should
then be redirected to https://www.mysite.com/Welcome.jsp (using 443 port).
See the port difference. I do not know where to set the redirection. or
should I hard code this settings in my .jsp file itself?

Thank you,
Best Regards,
Uma



   
 Forte, Graham   
 [EMAIL PROTECTED] 
 .com  To 
   
 03/16/2004 06:50  'Tomcat Users List' 
 PM[EMAIL PROTECTED]
cc 
   
 Please respond to 
   Tomcat Users   
   List   
 [EMAIL PROTECTED] 
  rta.apache.org  Subject 
   web.xml  Welcome -file and for SSL  
   
   
   
   
   
   




Hello,
 I am wondering if it is possible to specify a Welcome-file for
an
https request. If I am using port 443 how can I configure Tomcat 4.1 so
that
when the user types in https://myIPAddress  or https://myDomainName they
will be directed to https://myIPAddress/myFirstPage.jsp.
Thanks, Graham

PS I have the web.xml Welcome-file setup with:
welcome-file-list
 welcome-filemyFirstPage.jsp/welcome-file
/welcome-file-list

Will this accomplish what I need to accomplish, or do I need to add
something else.
I cant test this out right now because I have all ports blocked except
8443.
Thanks!!

-
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]

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



web.xml Welcome -file and for SSL

2004-03-16 Thread Forte, Graham
Hello,
I am wondering if it is possible to specify a Welcome-file for an
https request. If I am using port 443 how can I configure Tomcat 4.1 so that
when the user types in https://myIPAddress  or https://myDomainName they
will be directed to https://myIPAddress/myFirstPage.jsp.
Thanks, Graham

PS I have the web.xml Welcome-file setup with:
welcome-file-list
welcome-filemyFirstPage.jsp/welcome-file
/welcome-file-list

Will this accomplish what I need to accomplish, or do I need to add
something else.
I cant test this out right now because I have all ports blocked except 8443.
Thanks!!

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



Re: web.xml Welcome -file and for SSL

2004-03-16 Thread UmamaheswarKalluru




Hi Forte,
I am also having similar type of problem. When the user types
http://www.mysite.com it should first go to the default .html page (that is
using 80 port) that I have set in the welcome-file-list in web.xml file.
Its working fine. But once the user logs in from the home page, he should
then be redirected to https://www.mysite.com/Welcome.jsp (using 443 port).
See the port difference. I do not know where to set the redirection. or
should I hard code this settings in my .jsp file itself?

Thank you,
Best Regards,
Uma



   
 Forte, Graham   
 [EMAIL PROTECTED] 
 .com  To 
   
 03/16/2004 06:50  'Tomcat Users List' 
 PM[EMAIL PROTECTED]
cc 
   
 Please respond to 
   Tomcat Users   
   List   
 [EMAIL PROTECTED] 
  rta.apache.org  Subject 
   web.xml  Welcome -file and for SSL  
   
   
   
   
   
   




Hello,
 I am wondering if it is possible to specify a Welcome-file for
an
https request. If I am using port 443 how can I configure Tomcat 4.1 so
that
when the user types in https://myIPAddress  or https://myDomainName they
will be directed to https://myIPAddress/myFirstPage.jsp.
Thanks, Graham

PS I have the web.xml Welcome-file setup with:
welcome-file-list
 welcome-filemyFirstPage.jsp/welcome-file
/welcome-file-list

Will this accomplish what I need to accomplish, or do I need to add
something else.
I cant test this out right now because I have all ports blocked except
8443.
Thanks!!

-
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]



Re: web.xml Welcome -file and for SSL

2004-03-16 Thread Adrian Lanning

- Original Message - 
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 10:16 PM
Subject: Re: web.xml Welcome -file and for SSL






 Hi Forte,
 I am also having similar type of problem. When the user types
 http://www.mysite.com it should first go to the default .html page (that
is
 using 80 port) that I have set in the welcome-file-list in web.xml file.
 Its working fine. But once the user logs in from the home page, he should
 then be redirected to https://www.mysite.com/Welcome.jsp (using 443 port).
 See the port difference. I do not know where to set the redirection. or
 should I hard code this settings in my .jsp file itself?

 Thank you,
 Best Regards,
 Uma




  Forte, Graham
  [EMAIL PROTECTED]
  .com  To

  03/16/2004 06:50  'Tomcat Users List'
  PM[EMAIL PROTECTED]
 cc

  Please respond to
Tomcat Users
List
  [EMAIL PROTECTED]
   rta.apache.org  Subject
web.xml  Welcome -file and for SSL










 Hello,
  I am wondering if it is possible to specify a Welcome-file
for
 an
 https request. If I am using port 443 how can I configure Tomcat 4.1 so
 that
 when the user types in https://myIPAddress  or https://myDomainName they
 will be directed to https://myIPAddress/myFirstPage.jsp.
 Thanks, Graham

 PS I have the web.xml Welcome-file setup with:
 welcome-file-list
  welcome-filemyFirstPage.jsp/welcome-file
 /welcome-file-list

 Will this accomplish what I need to accomplish, or do I need to add
 something else.
 I cant test this out right now because I have all ports blocked except
 8443.
 Thanks!!

 -
 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]



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



Re: web.xml Welcome -file and for SSL

2004-03-16 Thread Adrian Lanning
Uma,
Hard coding it is the simplest and fastest way to do what you want.  With
HTTP the actual form itself doesn't need to be https, just the action
target.  hotmail.com is a good example of this.

If you have content inside the webapp that you need to make sure is accessed
securely you can either check the protocol manually when you need it (say
from a base class which you extend) or you can make a filter that checks the
protocol.  Matt Raible has an example app that uses the filter method called
appfuse. You can find it here:
http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuse

Graham,
It looks like your setup is correct, you just use the welcome file.  But you
have to have tomcat listen on port 443 rather than 8443.  It sounded in your
original post like Tomcat was just listening on 8443...

hth,
Adrian


- Original Message - 
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 10:16 PM
Subject: Re: web.xml Welcome -file and for SSL






 Hi Forte,
 I am also having similar type of problem. When the user types
 http://www.mysite.com it should first go to the default .html page (that
is
 using 80 port) that I have set in the welcome-file-list in web.xml file.
 Its working fine. But once the user logs in from the home page, he should
 then be redirected to https://www.mysite.com/Welcome.jsp (using 443 port).
 See the port difference. I do not know where to set the redirection. or
 should I hard code this settings in my .jsp file itself?

 Thank you,
 Best Regards,
 Uma




  Forte, Graham
  [EMAIL PROTECTED]
  .com  To

  03/16/2004 06:50  'Tomcat Users List'
  PM[EMAIL PROTECTED]
 cc

  Please respond to
Tomcat Users
List
  [EMAIL PROTECTED]
   rta.apache.org  Subject
web.xml  Welcome -file and for SSL










 Hello,
  I am wondering if it is possible to specify a Welcome-file
for
 an
 https request. If I am using port 443 how can I configure Tomcat 4.1 so
 that
 when the user types in https://myIPAddress  or https://myDomainName they
 will be directed to https://myIPAddress/myFirstPage.jsp.
 Thanks, Graham

 PS I have the web.xml Welcome-file setup with:
 welcome-file-list
  welcome-filemyFirstPage.jsp/welcome-file
 /welcome-file-list

 Will this accomplish what I need to accomplish, or do I need to add
 something else.
 I cant test this out right now because I have all ports blocked except
 8443.
 Thanks!!

 -
 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]



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