Group Abstract Group Abstract

Message Boards Message Boards

webMathematica: Avoid reset the input in a menu with different options?

In the below jsp file the user chooses between 3 options: A, B, C. When the menu is evaluated the output is fine, but the menu reset to the initial state. For instance: If I choose B, and evaluate the ouput is B (it is OK), but the input menu resest to A, how could I get that it stays in my last election (B)?

<%@ page language="java"  %>
<%@ taglib uri="/webMathematica-taglib" prefix="msp" %>

<html>

<form name="fest" action="test.jsp" method="post">
<body>
Select a option:  

<SELECT NAME="element" SIZE="1">
<OPTION VALUE="OptionA">A
<OPTION VALUE="OptionB">B
<OPTION VALUE="OptionC">C
</SELECT>
<br>
<br>
<msp:evaluate>
MSPBlock[$$element,$$element ]
</msp:evaluate>
<input type="submit" name="btnSubmit" value="Evaluate" > 

</body>
</html>
2 Replies

Thanks, it is just I was looking for.

POSTED BY: Hans Michel
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard