Hi there all,
Apologies if something similar has been posted before but I tried a search and couldn't find anything.
I have a combobox with 2 options "OPEN" and "CLOSED".
Tied to this combo box I have a scriptlet which I want to select the appropriate value of the combo box depending on a database value.
I'm currently trying to get it working something like this:
if (incidents.getINC_STATUS() = "OPEN")
<option value="OPEN" Selected="true">
else
<option value="CLOSED" Selected="true">;
I'm still pretty new to java and JSP. I know it won't run the html option value's like that within a scriptlet but I'm not sure how to get around this.
If anyone has any ideas or can see another method, it would be most appreciated.
Kind regards,
Rob.