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-file>myFirstPage.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]
