想要在同一个jsp页面中再找一个选项,同时点击另一个链接

时间:2013-12-04 07:37:51

标签: java jsp

我有一个jsp页面(假设asdf),其中有2个链接(假设link.ab,link.cd)。两者都指向相同的jsp(假设qwerty)并且有3列可用..但是如果我将单击link.ab然后将显示3列,如果我将单击link.cd然后应该显示4列如何它不会得到任何的想法.. 我正在尝试这段代码,但错误请求处理失败;嵌套异常

<tbody>
<tr>
 <c:choose>
    <c:when test="${addQuestionLink}"></c:when>
<td class="label">
    <form:label path="ins_org">
        <span class="requiredFieldMarker"><fmt:message key="label.requiredMarker"/></span>
        <fmt:message key="label.institute"/><fmt:message key="label.postfix"/>
    </form:label>
</td>
<td class="data">
    <form:select path="ins_org" >
    <form:option value=""><fmt:message key="label.general.select"/></form:option>
    <form:options items="${agecy}" itemLabel="agecyName" itemValue="agecyCode"/>
        </form:select>
</td>
<td class="label">
    <form:label path="cate">
            <span class="requiredFieldMarker"><fmt:message key="label.requiredMarker"/></span><fmt:message key="label.cate"/><fmt:message key="label.postfix"/>
    </form:label>
</td>
<td class="data" >
    <form:select path="cate">
        <form:option value=""><fmt:message key="label.select"/></form:option>
        <form:options items="${refcate}" itemValue="refCode" itemLabel="refDesc"/>
    </form:select>
</td>
<td class="label">
    <form:label path="level">
            <span class="requiredFieldMarker"><fmt:message key="label.requiredMarker"/></span><fmt:message key="label.level"/><fmt:message key="label.postfix"/>
    </form:label>
</td>
<td class="data" >
    <form:select path="level">
        <form:option value=""><fmt:message key="label.select"/></form:option>
        <form:options items="${refLevel}" itemValue="refCode" itemLabel="refDesc"/>
    </form:select>
</td>
<td class="label">
    <form:label path="noOfQuestions">
            <span class="requiredFieldMarker"><fmt:message key="label.requiredMarker"/></span><fmt:message key="label.noofQuestions"/><fmt:message key="label.postfix"/>
    </form:label>
</td>
<td class="data" >
    <form:input path="noOfQuestions" maxlength="3" size="5"/>
</td>
</c:choose>
<c:otherwise>
<td class="label">
    <form:label path="cate">
            <span class="requiredFieldMarker"><fmt:message key="label.requiredMarker"/></span><fmt:message key="label.cate"/><fmt:message key="label.postfix"/>
    </form:label>
</td>
<td class="data" >
    <form:select path="cate">
        <form:option value=""><fmt:message key="label.select"/></form:option>
        <form:options items="${refcate}" itemValue="refCode" itemLabel="refDesc"/>
    </form:select>
</td>
<td class="label">
    <form:label path="level">
            <span class="requiredFieldMarker"><fmt:message key="label.requiredMarker"/></span><fmt:message key="label.level"/><fmt:message key="label.postfix"/>
    </form:label>
</td>
<td class="data" >
    <form:select path="level">
        <form:option value=""><fmt:message key="label.select"/></form:option>
        <form:options items="${refLevel}" itemValue="refCode" itemLabel="refDesc"/>
        </form:select>
</td>
<td class="label">
    <form:label path="noOfQuestions">
            <span class="requiredFieldMarker"><fmt:message key="label.requiredMarker"/></span><fmt:message key="label.noofQuestions"/><fmt:message key="label.postfix"/>
    </form:label>
</td>
<td class="data" >
    <form:input path="noOfQuestions" maxlength="3" size="5"/>
</td>
</c:otherwise>
</tr>       
</tbody>                

0 个答案:

没有答案