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Ò³ÃæÖÐÓжà¸öradio°´Å¥
JSPÒ³Ã潫²ÎÊýPOST¸øservlet
ÒªÇóÈçÏÂ;
1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......
±¾ÈËÕýÔÚÓÃJava×öÒ»¸öC/S¼Ü¹¹µÄÏîÄ¿£¬
¿ÉÊÇÓÉÓÚÏîÄ¿±È½Ï´ó£¬Ç°ÆڶԼܹ¹µÄÉè¼ÆÓÈÆäÖØÒª£¬ÒòΪºóÆÚ¿ÉÄÜËæʱ»á¼Ó¸ö¹¦ÄÜ»òÕßÈ¥µôijЩ¹¦ÄÜ¡£
ËùÒÔÌصØÑ°ÇóÈçºÎÉè¼ÆC/SµÄ¼Ü¹¹Ê¹³ÌÐò¸ü¼ÓÃæÏò¶ÔÏó¸ü¼ÓÒ×ÓÚά ......
ÎÒJSPµÄÒ³ÃæÊÇ£º
<%@ page language="java" contentType="text/html; charset=gb2312"
%>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......
ÎÒÔÚ javaºËÐļ¼ÊõÉÏ ¿´ÁËÒ»¸ö ÀûÓà Java socket emailµÄÀý×Ó ¿ÉÊÇÔõôҲ ²»³É¹¦ Ϊʲô£¿
Ô´Âë
Java code:
package cn.com.test.email;
import java.awt.GridBagLayout;
import java.awt.event.Action ......