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(FormAuthen
ticator.java:238) 
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBas
e.java:446) 
at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java
: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:148) 
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) 
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn
ection(Http11Protocol.java:744) 
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.ja
va:527) 
at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThr
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

 



-- 
View this message in context: 
http://www.nabble.com/Switching-from-http-to-https-in-struts-tf1865443.html#a5096843
Sent from the Struts - User forum at Nabble.com.


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

Reply via email to