JSF和基本认证

时间:2016-03-18 08:51:09

标签: java jsf-2 servlet-2.5

我有一个基本形式验证的应用程序,所有工作正常(我使用servlet 2.5和JSF2)。

我需要在隐藏的表单(infogerant)中添加一个额外的参数:

/* CREATE TABLE exampl1 AS (SELECT 'a' AS a,'b' AS b,'c' AS c FROM dual UNION
                        SELECT 'k' AS a,'l' AS b,'n' AS c FROM dual UNION
                        SELECT 'x' AS a,'y' AS b,'z' AS c FROM dual);


CREATE TABLE exampl2 AS (SELECT 'a' AS a,'b' AS b,'_' AS c FROM dual UNION
                        SELECT 'k' AS a,'l' AS b,'_' AS c FROM dual UNION
                        SELECT 'x' AS a,'y' AS b,'_' AS c FROM dual); */                       

BEGIN
  FOR c1 IN (SELECT *
               FROM exampl1)
  LOOP
    UPDATE exampl2 t2
       SET t2.c = c1.c
     WHERE t2.a = c1.a
       AND t2.b = c1.b;
  END LOOP;
END;

我尝试使用登录方法创建loginBean,但我的httpservletrequest没有登录方法(我认为只在servlet 3中?)

我尝试创建一个Filter,当我执行request.getParameter(“infogerant”)时,它为null:(

如何使用servklet 2.5和JSF2在基本表单身份验证中添加额外参数?

非常感谢

0 个答案:

没有答案