Is it possible to: set a URI template in the mvc:view-controller element of the *-servlet.xml file and then use that path parameter in a jsp (alternatively, is there another method with the same result)? An example follows:
*-servlet.xml file
login.jsp fileCode:<beans...> <mvc:view-controller path="/login" view-name="login"/> <mvc:view-controller path="/login/{error}" view-name="login"/> </beans>
Code:<c:if test="${not empty param['error']}"> <span class="error">You have an error...</span> </c:if>


Reply With Quote
