Re: Pretty faces don`t work for me

Splash Forums PrettyFaces Users Pretty faces don`t work for me Re: Pretty faces don`t work for me

#23284

uuuufff got solution after 3 hrs..

@URLMapping(id=”login”, pattern=”/login”, viewId=”#{loginAction.action}”)

class LoginAction {

public string action(){

//this will return files path

//if user logged in then it will return “xhtmls/success.xhtml”; if not logged in then it will return “xhtmls/login.xhtml”;

}

}

but my another Question is that how do i rewrite a URL if user logged in then i want http://localhost:8081/MyApp/success , if not logged in then i want same URL like http://localhost:8081/MyApp/login ,

currently my URL in both cases http://localhost:8081/MyApp/login , i am using pretty faces with annotations