Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf 使用restful WS和primefaces登录_Jsf_Rest_Primefaces - Fatal编程技术网

Jsf 使用restful WS和primefaces登录

Jsf 使用restful WS和primefaces登录,jsf,rest,primefaces,Jsf,Rest,Primefaces,我想使用restful WS和primefaces网页创建用户登录 这个想法是写: www.mysite.com/mycompany/login.xhtml 使用restful WS,我将读取公司名称并请求用户名和密码。如果公司名称每隔一页都保留在url中,那就好了。e、 g 我知道如何在休息时阅读 @GET @Path("/{param}") public Response printMessage(@PathParam("param") String company) { //?? }

我想使用restful WS和primefaces网页创建用户登录

这个想法是写: www.mysite.com/mycompany/login.xhtml

使用restful WS,我将读取公司名称并请求用户名和密码。如果公司名称每隔一页都保留在url中,那就好了。e、 g

我知道如何在休息时阅读

@GET
@Path("/{param}")
public Response printMessage(@PathParam("param") String company) {
   //??
} 
但我真的不知道该怎么办。我应该在哪里保存公司名称?我应该把我的xhtml页面放在哪里?
是否每次加载页面时都会发生这种情况?要花很多钱吗?有更好的方法吗?

我不知道您到底想做什么,但是,身份验证和授权是一个复杂的主题,您不应该尝试自己实现新的功能。更好的方法是使用标准的身份验证方法,如安全领域。我的目标是这样做: