Announcement Announcement Module
No announcement yet.
urlmapping confusion Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • urlmapping confusion

    I've made a database-menu using struts-menu. It's in the default.jsp. with the code below

    <% if (request.getRequestURI().indexOf("box") == -1) { %>
    <c:if test="${sessionScope.currentUserForm != null}">
    <script>alert("<%= request.getRequestURI() %>");</script>
    <c:import url="/menu.html"/>
    <% } %>

    I've made a pop-up list of values page using display-tag library. the urlmapping definitons for them is below.

    <bean id="urlMapping" class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
    <property name="mappings">
    <prop key="/editProfile.html">userFormController</prop>
    <prop key="/mainMenu.html">filenameController</prop>
    <prop key="/editUser.html">userFormController</prop>
    <prop key="/selectFile.html">fileUploadController</prop>
    <prop key="/uploadFile.html">fileUploadController</prop>
    <prop key="/passwordHint.html">passwordHintController</prop>
    <prop key="/signup.html">signupController</prop>
    <!-- Row boxes -->
    <prop key="/rowbox/rboxuser/rboxUserCtrl.html">rboxUserController</prop>
    <prop key="/rowbox/rboxuser/rboxUserMain.html">filenameController</prop>
    <prop key="/rowbox/rboxuser/rboxUserList.html">rboxUserController</prop>
    <prop key="/rowbox/rboxuser/rboxUserMultiList.html">rboxUserController</prop>
    <!-- Row boxes -->
    <!-- Add additional URL mappings here -->
    <prop key="/menu.html">pageController</prop>

    <bean id="adminUrlMapping" class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
    <property name="interceptors">
    <ref bean="adminInterceptor"/>
    <property name="mappings">
    <prop key="/activeUsers.html">filenameController</prop>
    <prop key="/users.html">userController</prop>
    <prop key="/flushCache.html">filenameController</prop>
    <prop key="/reload.html">reloadController</prop>


    When i call my rboxUserMultiList.html page.
    If you noticed it's controller is not pageController, but when i call it, At first rboxUserController is called and then the pageController.
    but when i put my urlmapping definition from urlMapping bean to adminUrlMapping, it is calling only rboxUserController and it seems ok.
    and also when i remove the interceptors property from the adminURLMapping it's again working like the first case.

    Can you help me with this problem please?

    By the way is there a document about how to remove the role table from appfuse?

    Thanks in advance,