JSP中list的问题,比较诡异 - Java / Web 开发
JScript code:
private ArrayList<TestPaperQuestionForm> questionsListSel = new ArrayList<TestPaperQuestionForm>();
TestPaperQuestionForm questionsForm1 = new TestPaperQuestionForm();
String sqlQuestion="";
ResultSet rs=null;
for(int i=0;i<flag;i++){
if(questionTypeArr[i].trim().equals("1")){
sqlQuestion="select * from tb_select where ID="+questionIdArr[i]+"";
rs=conn.executeQuery(sqlQuestion);
while(rs.next()){
questionsForm1.setID(rs.getInt(1));
questionsForm1.setSubject(rs.getString(2));
questionsForm1.setOptionA(rs.getString(3));
questionsForm1.setOptionB(rs.getString(4));
questionsForm1.setOptionC(rs.getString(5));
questionsForm1.setOptionD(rs.getString(6));
questionsForm1.setAnswer(rs.getString(7));
questionsForm1.setDegree(rs.getString(8));
questionsForm1.setType("1");
questionsForm1.setPoint(questionPointArr[i]);
System.out.println("选择题 这道题目是:"+questionsForm1.getSubject());
相关问答:
我JSP的页面是:
<%@ page language="java" contentType="text/html; charset=gb2312"
%>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 52 in the jsp file: /vip_info.jsp
ÕË cannot be resolved
49: <table border="1& ......
我写了个jsp页面,然后改动了一下,改动的内容就是在jsp页面的js函数里加了个alert()语句,但是我访问这个页面时,死活都是原来页面的内容,我加了很多alert函数还是没改动前的页面内容;tomcat重启了,也重新部署这 ......