Announcement Announcement Module
Collapse
No announcement yet.
Make the login page the first page displayed? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Make the login page the first page displayed?

    Hello everyone. I'm wondering what's the correct way to make the login page the first page displayed.
    This is what I have tried:
    In the tiles definition, I swapped index with login:
    Code:
    <tiles-definitions>
      <definition extends="public" name="index">
        <put-attribute name="body" value="/WEB-INF/views/index.jspx"/>
      </definition>
      <definition extends="default" name="login">
            <put-attribute name="body" value="/WEB-INF/views/login.jspx"/>
        </definition>
    </tiles-definitions>
    In the webmvc-config, I also swapped the two:
    Code:
    <mvc:view-controller path="/login"/>
    <mvc:view-controller path="/" view-name="login"/>
    Then I hid the menu on the left handside with the security option.
    Now the problem is that when I visit the site, the login page correctly shows up as the first page, even as wide as I want since it's taking up the left handside menu's div that is currently hidden, but once I log in, it redirects to a page that is made by the menu, and in the middle there is still the login page instead of the old index page, which was to be expected since I replaced those two in this way....
    So I'm wondering, how can I make the login page the first page, and leave everything else as it is?
    Thanks!
    Roby
Working...
X