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 if <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(FormAuthenticator.java:238)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
        at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.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
-- 
View this message in context: 
http://www.nabble.com/Help-in-switching-from-http-to-https-tf1861678.html#a5084772
Sent from the Struts - Dev forum at Nabble.com.


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

Reply via email to