Sounds a bit unclear. I presume what you are saying is that this line:
alert('<%=request.getParameter("option")%>');
shows null in the alert?
I think the main reason is that the form hasn't been submitted yet. You are using a server side "request" object, but you render this page nothing has been submitted yet hence request.getParameter("option") returns null.
If you submit this form then inside testAction.do (since this is where it will be submitted to) you will be able to read the value from request.getParameter("option")
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…