Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSP works in IE 7 and Opera 9.1 but not Firefox 2.0

843838Mar 21 2007 — edited Mar 21 2007
Hi everyone,

I have a JSP with a form and a list box. When the user selects a value in the list box the form is submitted:
<form id="ampForm" method="POST" action="AMPSearch">
    <fieldset>
        <p>
            <label for="amp">
                Actual Medicinal Product Search Result:
            </label>
            //Here is where I think the problem lies the "onchange" method does not appear to be recognised by Firefox.
            <select size="10" name="amp" onchange="ampForm.submit()" class="listbox">
                <c:out escapeXml="false" value="${requestScope.ampList}" />
            </select>
            <input type="hidden" name="ampList" value="<c:out escapeXml="true" value="${requestScope.ampList}" />" />
               </p>
        <p>
            <label for="ampp">
                Actual Medicianl Product Pack Sizes:
            </label>
            <select size="10" name="ampp" class="listbox">
                <c:out escapeXml="false" value="${requestScope.amppList}" />
            </select>
        </p>
        <c:if test="${!empty requestScope.amppList}">
            <p>
                <label for="quantity">
                    Quantity:
                </label>
                <input type="text" name="quantity" value="" />
                <input type="submit" value="Add Order" name="addOrder" />
            </p>
        </c:if>
    </fieldset>
</form>
This all works fine in IE7 and Opera 9.1 and Netscape 8.1 when it is set to display like IE, but not in Firefox 2.0 or when Netscape is set to display like Firefox.

Does Firefox not recognise the "onchange" method? What should I use instead? Any help would be much appreciated.

Tom
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 18 2007
Added on Mar 21 2007
1 comment
94 views