I'm wondering how to auto refresh the page when dropdown list value selected and according to this when refreshed page came it must show some values from DB in table view. I know I'm asking much but just i want to know a way to do it. I'm working on a Web-Application which developing by JAVA EE platform using JSP-Servlets. I just got record from DB and list them into dropdownlist. Now I want to create a table when dropdownlist item WHEN selected(No submit button). How can i do that and how should i do that ? Should I use servlet or what else could be ? I can post my JSP page which is related with it.
STAFF HERE....
<form action="/ProjectResultServlet" method="post">
<select name="selectedProject">
<c:forEach items="${projects}" var="project">
<option value="${project.code}">${project.desc}"</option>
</c:forEach>
</select>
<input type="submit" value="Order" />
</form>
Some Staff here
This part of my code is getting List for dropdown and shows them in it. Now When I select an item it should auto refresh and create a info table with informations from DB. I know I should create table in Java classes or servlets to get them from jsp. I can do that coding. I want to know HOW should I do that?