post #1 of 1
Thread Starter 
I have the following code in a JSP.
Code:
<SELECT name="useraccountlocked" >
      <%if(user.getUserLocked()) { %>
              <option selected="yes" value="true">Yes</option>
              <option value="false">No</option>
      <%}%>
      <%if(!user.getMajicUserLocked()) { %>
              <option value="true">Yes</option>
              <option selected="yes" value="false">No</option>
    <%}%>
</SELECT>

No matter what I select, when I submit the form to the Servlet, the "useraccountlocked" parameter in the HttpServletRequest object is always "false", even when "Yes" is selected.

Any ideas?
Ryzen
(12 items)
 
  
CPUMotherboardGraphicsRAM
Ryzen 7 1700 Gigabyte GA-AB350M Gaming 3 Palit GT-430 Corsair Vengeance LPX CMK16GX4M2B3000C15 
Hard DriveCoolingOSMonitor
Samsung 850 EVO AMD Wraith Spire Linux Mint 18.x Dell UltraSharp U2414H 
KeyboardPowerCaseMouse
Apple Basic Keyboard Thermaltake ToughPower 850W Lian-Li PC-A04B Logitech Trackman Wheel 
  hide details  
Reply
Ryzen
(12 items)
 
  
CPUMotherboardGraphicsRAM
Ryzen 7 1700 Gigabyte GA-AB350M Gaming 3 Palit GT-430 Corsair Vengeance LPX CMK16GX4M2B3000C15 
Hard DriveCoolingOSMonitor
Samsung 850 EVO AMD Wraith Spire Linux Mint 18.x Dell UltraSharp U2414H 
KeyboardPowerCaseMouse
Apple Basic Keyboard Thermaltake ToughPower 850W Lian-Li PC-A04B Logitech Trackman Wheel 
  hide details  
Reply