I've got a JSP page that shows a set of navigation tabs at the top and the current page passes a parameter in to indicate which option to highlight (the current page). This works fine when I hit my view controller, but if the form doesn't validate and showForm is called then the parameter doesn't seem to be passed in.
The relevant part of the calling JSP:-
And the relevant part of the tabs.jsp file:-Code:<c:import url="/WEB-INF/jsp/include/tabs.jsp"> <c:param name="current" value="addProduct"/> </c:import>
<c:otherwise> is always called. Any ideas?Code:<div class="tabcontainer"> <ul class="tablist"> <li> <c:choose> <c:when test='${param.current == "home"}'> <strong><fmt:message key="tabs.home"/></strong> </c:when> <c:otherwise> <html:link href="secure/welcome.html"><fmt:message key="tabs.home"/></html:link> </c:otherwise> </c:choose> </li> ..... etc
Bob


Reply With Quote