For example: if there is name combobox in my jsp page, the names inside it are retrieved from database. if I want like if I select 'lala' from combobox then it will display a table of information about 'lala' such as her address and contact no but if I never select anything then it doesn't show the table.
I've manage to find out how to do that by reloading to that page and passing the parameter name so the url is something like this: http://192.168.28.174:8080/TWIS/intranet/sample/showDetail1.jsp?samplecode=lala
if its empty then it will be like this:
which I don't want... I want it to be like this:
cos there are a lot of pages that is linked to this page so if I change that it will become more complicated. any ideas how to do that? thanks.
here is my sample code:
<select name="samplecode" size="1" id="select" onchange="location.reload(
<option selected><%= request.getParameter("samp
conn = db.getConnection();
stmt = conn.createStatement();
sql="select sample from sampledefinition";