Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : jsp

htmlתjspºó²¼¾ÖΪʲô±äÁË

Ò»¸ö¾²Ì¬µÄhtmlÒ³Ã棬ÃÀ»¯£¬½çÃæ²¼¾ÖÒѾ­´¦ÀíºÃÁË £¬ÔÚ±àд³ÌÐòµÄʱºòÐèÒªÔÚת»¯³ÉJSPÒ³Ã棬

ËùÒÔн¨Ò»¸öJSPÒ³Ã棬½²Ô­À´µÄ´úÂ뿽±´µ½ÀïÃæÈ¥£¬½á¹û²¼¾Ö±äÁË£¿

²»´æÔÚ·¾¶ÎÊÌâ!

ûÈË? Õæʧ°Ü!

ÊÇÓÐÕâÖÖÇé¿ö£¬
±£Ö¤CSSÒ»Ö£¬»¹Óз¾¶¶¼ÕýÈ·£¡

Ê×ÏÈ£¬ÄãÒªÕÒ³öÄÄÀï²»Ò»ÑùÁË£¬Ôì³ÉÕâ¸öÎÊÌâµÄÄǶδ ......

jspÔõô»ñµÃÒ³ÃæµÄÍêÕûµØÖ·

°üÀ¨²ÎÊý
String path = request.getContextPath();
String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";

Ò»°ã¶¼ÓÃpath ºÍbasepathÀ´»ñÈ¡µ±Ç°Ò³ÃæµÄurl

ÕâûÓÐÒ»¸ö·½·¨Ö±½Ó³öÀ´µÄ£¬ÊǼ¸¸ö·½·¨µÄ×éºÏ¡£
......

jsÄÜÈ¡µÃjspÖеĶÔÏóÂð£¿

  ¾ßÌå¾ÍÊÇ  ÎÒÏëÓÃjsÈ¡µÃsessionÖеĶÔÏóÊý¾Ý·ÅÈëjsÖзâÆðÀ´ 



  ²»ÖªµÀ Äܲ»ÄÜʵÏÖ    Ï£Íû¸÷λ¸ßÊÖÖ¸µãһϣ¡£¡  ²»Éõ¸Ð¼¤£¡£¡
ͨ¹ýjspÊä³öµ½Ò³ÃæÉÏ£¬ÓÃÒ»¸öÒþ²ØÓò°ÑÖµ¸ø±£´æÆðÀ´²»¾ÍÐÐÁËÂð£¿

Äã¿ÉÒÔ¸øJSµÄ·½·¨´«Öµ~·

±ÈÈç
function sess(sess ......

jspÒ³ÃæÔõô¿ØÖÆTAB¼ü

ÎÒÔÚÒ»¸öjspÒ³ÃæÖÐÓкܶà¸öͨ¹ýÑ­»·²úÉúµÄÔªËØ£¬ÓÐtext£¬selectµÈ£¬ÔõôÉèÖÃtab¼üÖ»ÔÚtextÔªËØÖ®¼äÌø¶¯£¬¶ø²»È¥¾Û½¹selectÔªËØ£¿£¿£¿¼±£¡¼±£¡¼±£¡Âé·³ÄÄλ¸ßÊÖÖ¸µãһϣ¡
½« <input type="text">µÄÔªËØÔö¼ÓÒ»¸ötabindexÊôÐÔ£¬°´Ë³ÐòÌî,  È»ºóÔÚ×îºóÒ»¸ö <input type="text">дһ¸öon ......

JSP³öEXCEl±¨±íÖÐÎÄÃû³ÆÂÒÂë

ÎÒÔÚʹÓÿªÔ´µÄJXL ³öEXCEL±¨±íʱÓöµ½ÕâÑùµÄÎÊÌâ¡£
ÎÒÏë³öµÄÎļþÃû³ÆÊÇÕâÑùµÄ£ºÀý£ºtest_ÀîÇ¿.xls
´úÂëÊÇ ....test_+"UserID"+".xls";
µ«ÊÇ¿ØÖÆ̨ÎÒ¿´µ½µÄÊä³öÃû³ÆЧ¹ûÊÇ£ºtest_µ¥°¶·ï .xls


²»ÖªµÀΪɶ£¿
  UserID ÊÇÕâÑùÈ¡µ½µÄ
  ......

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.DefaultTextPr ......
×ܼǼÊý:1634; ×ÜÒ³Êý:273; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [264] [265] [266] [267] [268] [269] 270 [271] [272] [273]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ