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

jspÖÐÔõôµÃµ½ÍøÒ³µÄµØÖ·Öµ£¿

RT...
UP

HTML code:

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>





ÒýÓÃ
HTML code <%String path= request.getContextPath();String basePath= request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%>



¶÷£¬»ñµÃµ±Ç°Ò³ÃæµÄurl

Java code:

out.print(request.getRequestURI());
out.print(request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/");




Ïà¹ØÎÊ´ð£º

jspÖÐͼƬ±£´æÎªÎļþ

ÎÒÏë°ÑͼƬ´æÔÚÎļþ¼Ð£¬°ÑÎļþ·¾¶¡¢¶ÔÓ¦ÐÅÏ¢´æÔÚÊý¾Ý¿âÖС£
¿ªÊ¼Ï룬°ÑͼƬÃû³Æ×÷ΪͼƬÎļþÃû¡£È»ºóÊý¾Ý¿âÖб£´æÎļþ·¾¶ÐÅÏ¢¡£µ«ÊÇ£¬Õâ¾ÍʹµÃͼƬÃû³Æ²»ÄÜÖØ¸´Á˰¡¡£

ÏÖÔÚÏ£ÍûͼƬµÄÃû³Æ¿ÉÒÔÖØ¸´£¬ËùÒÔ ......

jsp²éѯµ±Ç°Ô·ݵļǼ

select * from mainTable where datediff(month,inputDate,getdate())=0
ʱ¼ä×Ö¶ÎΪinputDate
ΪʲôûÓнá¹û
ûÓÐdatediff(month,inputDate,getdate())=0µÄ¼Ç¼¾Íû½á¹ûßÂ

ÄãÏÈ¿´Ò»ÏÂdatediff(month, ......

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

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



  ²»ÖªµÀ Äܲ»ÄÜʵÏÖ    Ï£Íû¸÷λ¸ßÊÖÖ¸µãһϣ¡£¡  ²»Éõ¸Ð¼¤£¡£¡
ͨ¹ýjspÊä³öµ½Ò³ÃæÉÏ£¬ÓÃÒ ......

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

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

jspÒ³ÃæÉèÖÃÒ³Ãæ´óС

HTML code:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getSche ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ