Results 1 to 2 of 2

Thread: How to create an acg secure context inside WEB-INF directory

Hybrid View

  1. #1
    Join Date
    Nov 2004
    Location
    Caracas/Venezuela
    Posts
    4

    Default How to create an acg secure context inside WEB-INF directory

    I've been trying to create an acegi secure context inside my WEB-INF directory, but there, the secure context doesn't work.

    My directory structure is:

    /WEB-INF/jsp/login.jsp
    /WEB-INF/jsp/secure/index.jsp

    And in my web.xml I have:
    <welcome-file-list>
    <welcome-file>WEB-INF/jsp/secure/index.jsp</welcome-file>
    </welcome-file-list>

    And I have configured my security applicationContext.xml in concordance with the information above.

    When I type: http://localhost:8080/war-root, instead of receive the login page I get the page located in the protected area /WEB-INF/jsp/secure/index.jsp. Why?

    PD:Im using the sample application QuickStart in the acegi distribution.

    :?:

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Probably related to the issue described here: http://forum.springframework.org/showthread.php?t=11025.

    Maybe try using a welcome.jsp in the root directory, which just contains a <c:redirect>.
    Last edited by robyn; May 14th, 2006 at 05:23 PM.

Similar Threads

  1. Replies: 2
    Last Post: Oct 13th, 2005, 02:47 PM
  2. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  3. Stack Overflow
    By rayho222 in forum Container
    Replies: 6
    Last Post: May 17th, 2005, 03:42 AM
  4. How to create hierarchical context
    By Lock51 in forum Container
    Replies: 4
    Last Post: Mar 24th, 2005, 02:30 PM
  5. Replies: 8
    Last Post: Dec 7th, 2004, 06:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •