[ start | index | login ]
start > iStore Todo > Manual > Login stuff

Login stuff

Created by mpecher. Last edited by mpecher, 2 years and 211 days ago. Viewed 855 times. #1
[edit] [rdf]
labels
attachments

Not requiring login for Home page

mainMenu.html is secured via web/WEB_INF/security.xml, add ROLE_ANONYMOUS:
<bean id="filterInvocationInterceptor" …
        <property name="authenticationManager" ref="authenticationManager"/>
        <property name="accessDecisionManager" ref="accessDecisionManager"/>
        <property name="objectDefinitionSource">
            <value>
                PATTERN_TYPE_APACHE_ANT
                /mainMenu.html*=ROLE_ANONYMOUS,admin,user



Not making Login menu the current if not logged in

Add Login menu item in menu-config.xml:
<Menu name="Login" title="user.login" page="/login.jsp"/>
Add to web/WEB-INF/classes/ApplicationResources.properties:
user.login=Login
In webcommonmenu.jsp: replace <c:if> statement with
<c:if test="${empty pageContext.request.remoteUser}"><menu:displayMenu name="Login"/></c:if>
Change In mainMenu.jsp add:
<head>
<title><fmt:message key="mainMenu.title"/></title>
    <meta name="menu" content="MainMenu"/>
</head>



Please login to post a comment.

Menu:
Java & J2EE
Development
Books

Help:
Help FAQ
Formatting


< February 2012 >
SunMonTueWedThuFriSat
1234
567891011
12131415161718
19202122232425
26272829


Logged in Users: (1)
… and 10 Guests.



Disclaimer: Views and opinions are that of the individual author, and not that of Marand Custom Solutions. This site is an open forum for technical content, and the company accepts no liability for any content or view expressed.