This is question for the user list, but I can mention that switching between http and https is not fun to do in Struts 1, but the SSL Ext taglib may help.
* http://sslext.sourceforge.net/ -Ted. On 6/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi , Iam developing application in struts which has login page and when username and password are given it should be authenticated and the page should be switched to https I had made necessary changes to include <transport-guarantee> and login-config to include the user properties but the <form-login-config> <form-login-page>/display.jsp</form-login-page> <form-error-page>/error.jsp</form-error-page> </form-login-config> </login-config> is forcing it to go to the pages which i give in form-login-page instead it should go to NameAction java file which extends Action and based on the logic there i should go to the required success or error page and iam not understanding the importance of <form-login-config> like if i remove the lines <form-login-config> <form-login-page>/display.jsp</form-login-page> <form-error-page>/error.jsp</form-error-page> </form-login-config> </login-config> i get the exceptions 18:59:15,687 WARN [FormAuthenticator] Unexpected error forwarding to login page java.lang.NullPointerException at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAut hen ticator.java:238) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Bas e.java:446) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j ava :59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :12 6) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :10 5) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. jav a:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 48) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:85 6) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onn ection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .ja va:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorker Thr ead.java:112) at java.lang.Thread.run(Thread.java:595) Could you please help me resolve this Note: The switching to https is happening the only thing is iam not getting the required result Regards Bhanu Thanks and Regards Bhanuprakash Singh Wipro Technologies Bangalore Contact#: ESN-6-877-5107 PBX: 28520408-Ext.83244 The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
-- HTH, Ted. * http://www.husted.com/struts/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]