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

  • urlmapping confusion

    Hi,
    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"/>
    </c:if>
    <% } %>

    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">
    <props>
    <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>
    </props>
    </property>
    </bean>

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

    </props>
    </property>
    </bean>

    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,
    Mustafa.
Working...
X