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

jsp visit spring


<%@page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="org.springframework.context.ApplicationContext"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="ccp.suddenattack.service.news.*"%>
<%@page import="com.netstar8.util.page.*"%>
<%@page import="net.sf.json.*"%>
<%
ApplicationContext context=WebApplicationContextUtils.getWebApplicationContext(application);
NewsService newsService = (NewsService)context.getBean("newsService");
PaginationSupport ps = newsService.findAllNews(10,0);
//out.println(ps.getTotalCount());

JSONObject jsonObject = JSONObject.fromObject(ps);
String jsonStr = "json503="+jsonObject.toString();
out.println(jsonStr);

%>


Ïà¹ØÎĵµ£º

ÓÃJFreeChartÔöÇ¿JSP±¨±íµÄÓû§ÌåÑé

  
   
      JFreeChartÊÇÒ»×鹦ÄÜÇ¿´ó¡¢Áé»îÒ×ÓõÄJava»æͼAPI£¬Ê¹ÓÃËü¿ÉÒÔÉú³É¶àÖÖͨÓÃÐԵı¨±í£¬°üÀ¨Öù״ͼ¡¢±ýͼ¡¢ÇúÏßͼ¡¢¸ÊÌØͼµÈ¡£ËüÄܹ»ÓÃÔÚSwingºÍWebµÈÖÐÖÆ×÷×Ô¶¨ÒåµÄͼ±í»ò±¨±í£¬²¢Çҵõ½¹ã·ºµÄÓ¦Óᣱ¾ÎĽ«Í¨¹ýÒýÁì¶ÁÕßѧϰÔÚJFreeChartÖбýͼ¡¢Öù״ͼ ......

ÔÚjspÀïʹÓÃCookie

дCookie£º
   //´Óä¯ÀÀÆ÷È¡µÃÓû§Ãû
        String username = request.getParameter("username");
        //´Óä¯ÀÀÆ÷È¡µÃÃÜÂë
        String password = request.getParameter(" ......

jsp¾Å´óÄÚÖöÔÏó¡¢ËÄÖÖ×÷ÓÃÓò¡¢Ìøת·½Ê½

jspÓÐËÄÖÖÊôÐÔ·¶Î§£º
 page -> Ò³Ã漶±ð£¬ÏÔȻֻÓÐÔÚÒ»¸öÒ³ÃæÄÚ¿ÉÓá£
 request -> ÇëÇ󼶱ð ·þÎñÆ÷Ìøת£¬Ò»´ÎÇëÇóÖ®ºóÏûʧ¡£
 session -> »á»°¼¶±ð ¿Í»§¶ËÌøת£¨·þÎñÆ÷Ìøת£©£¬Óëä¯ÀÀÆ÷Óйأ¬ieÊÇÔÚÖØдò¿ªieʱ²Å»á²»Í¬¡£
 application = Ó¦Óü¶±ð£¬µ±ÖØÆô·þÎñÆ÷ʱ²Å»áÏûʧ
¿Í»§¶ËÌøת ......

JSP+AJAX Ìí¼Ó¡¢É¾³ý¶àÑ¡¿ò

±¾ÀýÊDzÉÓÃJSP + Ajax + Îı¾À´ÑÝʾ¶àÑ¡¡¢È«Ñ¡£¬Ìí¼Ó¡¢É¾³ý¡¢¸üÐÂcheckbox¶àÑ¡¿òµÄЧ¹û£»³ä·ÖÕ¹ÏÖÁËÀûÓÃJavaScript¿ØÖÆHTML DOMÒÔ¼°ÀûÓÃXML http ´«µÝÊý¾Ý£¬ÀûÓÃJSP²Ù×÷Îı¾µÄЧ¹û¡£
¡¡¡¡1.JavaScript ÓÃÀ´¿ØÖÆÒ³ÃæÄÚÈݵÄÏÖʵÓëÔöɾЧ¹û£»
¡¡¡¡2.JSP×÷Ϊºǫ́£¬¶ÔÎı¾½øÐжÁÈ¡¡¢Ð´Èë¡¢¸üеȲÙ×÷£»
¡¡¡¡3.Îı¾¸ñʽÊÇÓÃÀ´´ ......

ÕÐƸjsp\phpÍøÕ¾¿ª·¢³ÌÐòÔ±

ÉϺ£ÔóÎäÍøÂçÓÐÏÞ¹«Ë¾
ÕÐƸ£ºÕÐƸjsp\phpÍøÕ¾¿ª·¢³ÌÐòÔ±
ÒªÇóÓÐÈýÄêÒÔÉÏ¿ª·¢¾­Ñé
¶ÔTomcat+Apache¼¯Èº¼¼ÊõÓÐÊìϤµÄ¾­Ñé.¶ÔËÑË÷ÒýÇæ¼¼Êõ(Lucene)±È½ÏÁ˽⡣
-ÊìÁ·Ê¹ÓÃUML½¨Ä£¹¤¾ß¡¢°æ±¾¿ØÖƹ¤¾ß; ÊìÁ·Ê¹ÓÃEclipseµÈIDE¿ª·¢¹¤¾ß;
-¾«Í¨JAVA,php,ÉîÈëÀí½âOOP˼Ïë,ÊìϤÉè¼Æģʽ¡£
-ÊìÁ·ÔËÓÃJ2EE¼¼Êõ¡¢WEB·þÎñÆ÷ºÍ¹ØϵР......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ