Announcement Announcement Module
Collapse
No announcement yet.
Problem With showForm And Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem With showForm And

    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:-

    Code:
    <c:import url="/WEB-INF/jsp/include/tabs.jsp">
        <c:param name="current" value="addProduct"/>
    </c:import>
    And the relevant part of the tabs.jsp file:-

    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
    <c:otherwise> is always called. Any ideas?

    Bob
    Last edited by Colin Sampaleanu; Oct 30th, 2005, 07:08 PM.
Working...
X