Eric,
The Javascript variable is only a
test I added for a javascript function I created, Not part of this problem. The code is only a snippet of the total JSP page.
I want the IF statement to compare the <field1> name value on the '<input type' statement to <field2> name value of the '<input type' statement, and if they are equal, do the <jsp:include page="/docApprove.jsp" flush="true"/> statement.
Can I do that?
Thanks
posted December 16, 2003 10:09 AM
--------------------------------------------------------------------------------
Hello everyone,
I am pretty new to JSP and Javascript, and I am trying to modify a delivered JSP page.
Is there anyway to get this to work:
<input type="hidden" name="field1" value='<extn_doc_print:getElement bob="loginUser" name="userLogin"/>'>
<input type="hidden" name="field2" value='<extn_doc_print:getElement bob="docCreator" name="userLogin"/>'>
<input type="hidden" name="field3" value='<extn_doc_print:getElement bob="docCreator" name="userLogin"/>'>
<script language="javascript">
alert(displayappl());
</script>
<%
if (('<extn_doc_print:getElement bob="loginUser" name="userLogin"/>' )== '<extn_doc_print:getElement bob="docCreator" name="userLogin"/>') { %>
<jsp:include page="/docApprove.jsp" flush="true"/>
<% } %>