0 Replies Latest reply on Mar 22, 2003 4:48 AM by gorlum

    JSP Security

    gorlum

      Hi,

      I have follows jsp

      --------------
      ...............

      <%

      String op_cod = request.getParameter("op_cod");

      if (op_cod!=null && op_cod.trim().equals("submit"))
      {
      System.out.println("Result: "+ JSPBean.test(request));
      }
      %>




      Text:


      ...........
      ---------------

      The test method in JSPBean class

      ----------------------
      public JSPBean
      {
      ..........
      public String test(HttpServletRequest req)
      {
      return req.getParameter("a");
      }
      ..........
      }
      --------------------

      When i'm using
      <jsp:useBean .....> on the top of the jsp page
      all works properly.

      How I can configure security for this web-app?
      I use
      <security-domain>java:/jaas/mySecurity</security-domain>
      in jboss-web.xml


      It doesn't works for jsp, but works in my ejb application.

      I need for web.xml and jboss-web.xml (with security configuration) files for jsp (not for servlet).

      Thanks.