jspÁ¬½ÓÊý¾Ý¿â¶à±í²éѯÎÊÌâ
Çé¿öÊÇÕâÑùµÄ£¬Ò»¸öÄ£ºý²éѯ½çÃ潫YHDLM¡¢FLBH¡¢LXRMCÕâ3¸öÖµ´«µ½search.java
search.javaÖ÷Òª´úÂ룺
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=gb2312");
PrintWriter out = response.getWriter();
request.setCharacterEncoding("gb2312");
String LXRMC = request.getParameter("LXRMC").trim();
int FLBH = Integer.parseInt(request.getParameter("FLBH"));
request.setAttribute("LXRMC", request.getParameter("LXRMC"));
HttpSession session = request.getSession();
String YHDLM = ((beans.UserInf)session.getAttribute("admin")).getYHDLM();
ArrayList list = new DBConn().search(FLBH,LXRMC,YHDLM);
String sPage=request.getParameter("page");
int recordCount=list.size();
int pageCount=1;
int page=strToInt(sPage,1);
int pageSize=5;
int paend=page*pageSize;
List list1=new ArrayList();
for(int i=paend-5;i <paend;i++)
{
try{
beans.UserInf bean=(beans.UserInf)(list.get(i));//
list1.add(bean);
} catch (Exception e) {
}
}
request.setAttribute("recordCount
Ïà¹ØÎÊ´ð£º
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jas ......
ÎÒJSPµÄÒ³ÃæÊÇ£º
<%@ page language="java" contentType="text/html; charset=gb2312"
%>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......
JSPÖÐÒª´ÓÊý¾Ý¿âÀïÃæ¶ÁÈ¡Êý¾Ý ÿҳÏÔʾ5ÌõÊý¾Ý£¬Òª½øÐзҳ£¬»¹Òª·µ»ØÇ°Ò»Ò³ ¸ÃÔõôʵÏÖ°¡
ÓõÄʲôÊý¾Ý¿âÄØ£¿£¿£¿
MYSQL
....лл ÎÒÏÈ¿´¿´´úÂë
http://my.donews.com/benz/2006/10/21/YnmQXKsKWNgKiTJ ......
±ÈÈç˵DB.classÊÇÔÚ°ücom/zhl/jdbcϵÄ
ÄÇôDB.class·ÅÔÚʲôµØ·½ Èç¹ûÓÃ<jsp:useBean id="d" class=""/>À´ÒýÈëbean ÄÇôclassÊôÐÔÓ¦¸ÃÔõôд
Ðè²»ÐèÒªÏñservletÄÇÑù»¹ÒªÅäÖÃweb.xmlµÄ& ......
ÎÊÌâ: ÏÖÔÚÌá½»Ö®ºó¾Í²»ÄÜÌøµ½ajax.jsÖÐÖ¸¶¨µÄservlet
¶øÊÇÓÖÖØнøÈëµ½ÁËpub_hotel_t.jspÒ³Ãæ. Ò²¾ÍÊÇûÓÐÖ´Ðе½ajaxÀïÃæÈ¥ ´ó¼Ò°ïæ¿´¿´ÊÇʲôÔÒò°É.
ÊDz»ÊǺÍÌá½»µÄ°´Å¦ÓйØÄ ......