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

Login stuff

Created by mpecher. Last edited by mpecher, 2 years and 322 days ago. Viewed 869 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>



no comments | post comment

Menu:
Java & J2EE
Development
Books

Help:
Help FAQ
Formatting


< May 2012 >
SunMonTueWedThuFriSat
12345
6789101112
13141516171819
20212223242526
2728293031


Logged in Users: (0)
… and a Guest.



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.