HTML JSP code creation question -


i have submit button, created - when clicked want groupbox appear below submit button is....any suggestions?

i've tried request given of click doesn't me. thought logic similar this:

<form>    <input type="checkbox" name="group" value="yes" />yes    <input type="checkbox" name="group" value="no" /> no    <input type="submit" value="submit" /> </form> <%    string[] select = request.getparametervalues("group");   /* add code creation here */ %> 

any suggestions or examples can think of?

thanks greatly, u.

first replace checkboxes radio buttons. right it's possible check both yes , no. makes no sense.

<form>    <input type="radio" name="group" value="yes" /> yes    <input type="radio" name="group" value="no" /> no    <input type="submit" value="submit" /> </form> 

then, use jstl <c:if> tag conditionally display content depending on parameters and/or other scoped variables in el.

<c:if test="${param.group == 'yes'}">     <p>write here html code you'd show when 'yes' chosen.</p> </c:if> <c:if test="${param.group == 'no'}">     <p>write here html code you'd show when 'no' chosen.</p> </c:if> 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -