Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <s:if test="user.role == 'customer'">
- <!-- TODO - Display simple customer view -->
- </s:if>
- <s:else>
- <!-- TODO - Display complex employee view -->
- </s:else>
- return mapping.findForward("success");
- ActionForward defaultMapping = mapping.findForward("success");
- ActionForward roleMapping = mapping.findForward(user.getRole() + "_success");
- if (roleMapping != null) {
- return roleMapping ;
- } else {
- return defaultMapping;
- }
- <action path="/home" class="HomeAction">
- <forward name="success" path="home.jsp"/>
- </action>
- <action path="/viewOrder" class="ViewOrderAction">
- <forward name="customer_success" path="customer_order.jsp"/>
- <forward name="employee_success" path="employee_order.jsp"/>
- </action>
Add Comment
Please, Sign In to add comment