Results 1 to 1 of 1

Thread: Problem With showForm And

  1. #1
    Join Date
    Jul 2005
    Posts
    246

    Default Problem With showForm And <c:param>

    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 at 06:08 PM.

Similar Threads

  1. Replies: 1
    Last Post: Jul 5th, 2005, 03:48 AM
  2. pagination and continuation problem in SWF
    By yfmoan in forum Web Flow
    Replies: 6
    Last Post: Jun 29th, 2005, 03:42 AM
  3. Replies: 0
    Last Post: Feb 16th, 2005, 01:45 PM
  4. Replies: 3
    Last Post: Jan 31st, 2005, 08:52 AM
  5. Lazy Load Problem when Doing UnitTest
    By yoshi in forum Data
    Replies: 7
    Last Post: Sep 29th, 2004, 10:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •