Discussions

General J2EE: can login page access EJB

  1. can login page access EJB (2 messages)

    Hello

    I have a question on what a login.jsp page can access when
    i use form based authentication. Can it access an EJB component, before actual authentication. This is because i
    need to show some dynamic informatio on the login screen.
    If not whats the alternative?

    Also i am using struts.

    thanks in advance
    -ram
  2. can login page access EJB[ Go to top ]

    The login page can access an EJB (or anything else that can be called from a JSP). However, any components used in the login.jsp cannot themselves require authentication (because the user is not authenticated yet).
  3. can login page access EJB[ Go to top ]

    thanks paul...so does this mean, if i have to disallow
    access to other resources like EJBs, i need seperate
    form of authentication? This is the situation...
    I have an EJB component and may be called by more than one webclients.
    I want some kind of authentication for the EJBs too...what is the
    recommended strategy?...is there some entry in say ejb-jar.xml like
    in web.xml to specify authentication...also can the same username and
    password, provided to the login page be passed on to the EJB component?


    thanks
    -ram