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

jsp requestÎÊÌâ

Java code:

if(request.getAttribute("top")==null){
request.setAttribute("top","1");
}
String topS=(String)request.getAttribute("top");
top=Integer.parseInt(topS);


±¨ÈçÏÂ´í£º
java.lang.ClassCastException: com.opensymphony.xwork2.DefaultTextProvider
cannot be cast to java.lang.String

java.lang.ClassCastException: com.opensymphony.xwork2.DefaultTextProvider
cannot be cast to java.lang.String
at _jsp._entplist__jsp._jspService(entpList.jsp:22)
at com.caucho.jsp.JavaPage.service(JavaPage.java:61)
at com.caucho.jsp.Page.pageservice(Page.java:578)
at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:195)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:416)
at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:273)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682)
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:743)
at com.caucho.util.T


Ïà¹ØÎÊ´ð£º

JSP µÄtable Ôõô°ó¶¨Êý¾Ý¿â¡£¡£ - Java / Java EE

tableÔõô°ó¶¨Êý¾Ý¿â£¬²¢ÇÒÓÃJavaScriptʵÏÖ·­Ò³¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£JavaScriptÄÜÏòJSPÒ³Ãæ´«µÝ²ÎÊýÂð
Äã˵µÄÎÊÌâÓеãÄǸö¡£¡££¬²»ºÃ»Ø´ð¡£¡£¡£¡£

jspÖÐtableÊÇÐèÒªhtml´úÂëÓëÒ³Ãæ¶Ë»ñÈ¡Êý¾Ý¿â²éѯºóµÄÐÅÏ¢½øÐÐ ......

jsp Ò³ÃæÑéÖ¤ÂëУÑ飿 - Java / Java EE

1¡¢ÎÒÓÃservletÉú³ÉµÄËæ»úÑéÖ¤Â룬·ÅÈësession
2¡¢ÔÚ·þÎñÆ÷¶ËÑéÖ¤Óû§ÊäÈëµÄÑéÖ¤ÂëÊÇ·ñÕýȷûÓÐÎÊÌâ
3¡¢¿ÉÊÇservlet´«µ½jspµÄÑéÖ¤ÂëºÍÎÒÔÚjsp´ÓsessionÖÐÈ¡µÃµÄÑéÖ¤Âë²»Ò»Ö£¬Ò³ÃæÏÔʾµÄ±ÈÎÒ´ÓsessionÖÐÈ¡µ½µÄÒª¿ì ......

jspºÍtomcatÎÊÌ⣬¿ì·èÁË - Java / Java EE

ÎÒдÁ˸öjspÒ³Ã棬Ȼºó¸Ä¶¯ÁËһϣ¬¸Ä¶¯µÄÄÚÈݾÍÊÇÔÚjspÒ³ÃæµÄjsº¯ÊýÀï¼ÓÁ˸öalert()Óï¾ä£¬µ«ÊÇÎÒ·ÃÎÊÕâ¸öÒ³Ãæʱ£¬ËÀ»î¶¼ÊÇÔ­À´Ò³ÃæµÄÄÚÈÝ£¬ÎÒ¼ÓÁ˺ܶàalertº¯Êý»¹ÊÇû¸Ä¶¯Ç°µÄÒ³ÃæÄÚÈÝ£»tomcatÖØÆôÁË£¬Ò²ÖØв¿ÊðÕâ ......

jsp ǶÈëpdf µÄÎÊÌâ - Java / Web ¿ª·¢

ÎÒµÄ˼·ÊÇ ÉÏ´«£¨ÎļþÑ¡Ôñ¿ò£©-> ͨ¹ý·¾¶¶ÁÈ¡Îļþ£¬×ª³É¶þ½øÖÆÁ÷¶ÁÈëÊý¾Ý¿â ->Êý¾Ý¿â»ñÈ¡¶þ½øÖÆÁ÷£¬±£´æΪ.pdf ->ÏÔʾ
ÏÖÔÚÇ°Èý²½¶¼ÊÇʵÏÖÁË£¬±£´æµÄPDF¹Ì¶¨Â·¾¶ÒÔ¼°Ãû³Æ£¨·ÅÔÚWebRootĿ¼Ï£¬out.pdf£© ......

jspÎļþµ½µ×Òª²»Òª¼ÓNo-cache - Java / Web ¿ª·¢

ÓÃStruts2+Spring+Hibernate×öµÄÒ»¸öwebµÄERPСÏîÄ¿£¬×ܲ¿Ò»Ì¨·þÎñÆ÷£¨Êý¾Ý¿âÓëWeb·þÎñÆ÷ÔÚͬһ»ú×ÓÉÏ£©Êǵ¥¶À²¦ºÅÉÏÍøµÄ£¬Óë·Ö¹«Ë¾Ã»ÓÐÓþÖÓòÍøÏߣ¬Ó²¼þÌ«¹óÁË£¬ÆäËû¼¸¸öÊ¡Êзֹ«Ë¾¶¼À´·ÃÎÊÕâÒ»·þÎñÆ÷£¬¸Ð¾õºǫ́´ú ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ