Thanks for your all responses. The main thing is when i click login button ie., *onclick* function in html, the controller class is going to get path informtaion ie..*getPathInfo*() in Controller class and is going to check with LDAP settings and pass to the index.html(home page). but when i m clicking login button in html,its saying *"<!--:$servletpath-->/XYZ/login".-----------> Not found error 404.* ** *Actually in all my html pages I got SSI , so i m enabling all .html pages. * ** *Also i tried my changing com/xyz/abc/servlet/login.html to login.html but still the same error.* ** Can any one tell me how can i pass the URL request to match the URL pattern */XYZ/login*.
=================== class AuthController extends Controller { *protected HttpResponse service()* *throws ControllerException* { Object localObject2; Object localObject3; String str = super.getPathInfo(); Session localSession = super.getSession(); Parameters localParameters = super.getParameters(); *if (str.equals("/XYZ/login")) {* localObject1 = localSession.getUser(); if (localObject1 == null) { localObject2 = localParameters.get("loginname"); if ((localObject2 == null) || (((String)localObject2).length() == 0)) { return super.getMessageResponse(new StringSpec("servlet|login.missing"), true, true, false); } } ============================ Actually I dont have the source code for this...but these are the decompiled version. public abstract class *Controller* { protected final String *getPathInfo*() { return this.m_pathInfo; } *public HtmlResponse getMessageResponse*(StringSpec paramStringSpec, boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3) { Locale localLocale = null; try { localLocale = Controller.access$0(Controller.this).getLocale(); } catch (DBHandlerException localDBHandlerException) { } return Controller.this.m_im.getMessageResponse(paramStringSpec, paramBoolean1, paramBoolean2, paramBoolean3, localLocale); } }