<form method="post" action="paperEditQ.do">
Please select the subject you want to modify the database of :<select name="category">
<%
Statement st = DBConnection.DBConnection.DBConnect();
ResultSet rs = st.executeQuery("select * from papers");
while(rs.next()){
String paper = rs.getString(1);
out.print("<option>"+paper+"</option>");
}
%>
</select>
<input type="submit" value="Modify"/>
</form>
这是我的网络应用程序的第一页。我想使用jstl和EL标签在这个jsp页面上显示来自mySQL的数据(去掉scriplets并严格遵循MVC)。我该怎么办? (真的很感激一点代码。)