Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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


Ïà¹ØÎÊ´ð£º

jspÁ´½Ósql2000µÄÒÉÎÊ£¿



type Exception report


message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jas ......

¹ØÓÚAJAXºÍJSPµÄһЩСÎÊÌâ¡« - Java / Web ¿ª·¢

ÎÒJSPµÄÒ³ÃæÊÇ£º
<%@ page language="java" contentType="text/html; charset=gb2312"
  %>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......

JSP·­Ò³ÎÊÌâ - Java / Java EE

JSPÖÐÒª´ÓÊý¾Ý¿âÀïÃæ¶ÁÈ¡Êý¾Ý ÿҳÏÔʾ5ÌõÊý¾Ý£¬Òª½øÐз­Ò³£¬»¹Òª·µ»ØÇ°Ò»Ò³ ¸ÃÔõôʵÏÖ°¡
ÓõÄʲôÊý¾Ý¿âÄØ£¿£¿£¿

MYSQL


....лл ÎÒÏÈ¿´¿´´úÂë

http://my.donews.com/benz/2006/10/21/YnmQXKsKWNgKiTJ ......

Çó½Ìjsp useBean beanµÄÎÊÌâ - Java / Web ¿ª·¢

±ÈÈç˵DB.classÊÇÔÚ°ücom/zhl/jdbcϵÄ
ÄÇôDB.class·ÅÔÚʲôµØ·½ Èç¹ûÓÃ<jsp:useBean id="d" class=""/>À´ÒýÈëbean ÄÇôclassÊôÐÔÓ¦¸ÃÔõôд
Ðè²»ÐèÒªÏñservletÄÇÑù»¹ÒªÅäÖÃweb.xmlµÄ& ......

[¼±Óð¡] JSP+AJAX ÌøתÎÊÌâ. - Web ¿ª·¢ / Ajax

ÎÊÌâ: ÏÖÔÚÌá½»Ö®ºó¾Í²»ÄÜÌøµ½ajax.jsÖÐÖ¸¶¨µÄservlet 
  ¶øÊÇÓÖÖØнøÈëµ½ÁËpub_hotel_t.jspÒ³Ãæ. Ò²¾ÍÊÇûÓÐÖ´Ðе½ajaxÀïÃæÈ¥ ´ó¼Ò°ïæ¿´¿´ÊÇʲôԭÒò°É.
  ÊDz»ÊǺÍÌá½»µÄ°´Å¦ÓйØÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ