I want my drop-down boxes (used to select sort parameters) to remember their last selection. Is my code wrong? I am receiving syntax errors. Below are the error messages and the code.
500 Internal Server Error /jserv/Invoice3.jsp: Compilation error occured: Found 6 errors in JSP file: C:\\Inetpub\\wwwroot\\Beachwear\\jserv\\Invoice3.jsp:98: Syntax: Unexpected symbol ignored C:\\Inetpub\\wwwroot\\Beachwear\\jserv\\Invoice3.jsp:99: Syntax: Unexpected symbol ignored C:\\Inetpub\\wwwroot\\Beachwear\\jserv\\Invoice3.jsp:100: Syntax: Unexpected symbol ignored C:\\Inetpub\\wwwroot\\Beachwear\\jserv\\Invoice3.jsp:101: Syntax: Unexpected symbol ignored C:\\Inetpub\\wwwroot\\Beachwear\\jserv\\Invoice3.jsp:108: Syntax: Unexpected symbol ignored C:\\Inetpub\\wwwroot\\Beachwear\\jserv\\Invoice3.jsp:109: Syntax: Unexpected symbol ignored --------------------------------- 14 //New drop-down box memory variables 15 String rsBeachwear__orderby = (String)request.getParameter("order"); 16 String rsBeachwear__sortby = (String)request.getParameter("sort"); 97 <select name="order" size="1"> 98 <option value="ID" <% if (rsBeachwear__orderby equals ("ID")) {Response.Write('SELECTED');} %>>ID</option> 99 <option value="Item" <% if (rsBeachwear__orderby equals ("Item")) {Response.Write('SELECTED');} %>>Item</option> 100 <option value="Color" <% if (rsBeachwear__orderby equals ("Color")) {Response.Write('SELECTED');} % >>Color</option> 101 <option value="Size" <% if (rsBeachwear__orderby equals ("Size")) {Response.Write('SELECTED');} %> >Size</option> 102 </select> 103 </div> 104 </td> 105 <td width="43%"> 106 <div align="center"> 107 <select name="sort" size="1"> 108 <option value="ASC" <% if (rsBeachwear__sortby equals ("ASC")) {Response.Write('SELECTED');} %>>Ascending</option> 109 <option value="DESC" <% if (rsBeachwear__sortby equals ("DESC")) {Response.Write('SELECTED');} %>>Descending</option> 110 </select> =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com