Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÖÐ <c:if test> Ïà¹ØÎÊÌâ

ÔÚ²éѯºó½«²éѯ³öÀ´µÄÖµ¸³¸ø¸÷ÊäÈë¿ò
<c:if test="${not empty dataValue}">
      fm.SAMPLING_DATE.value=" <c:out value='${dataValue.SAMPLING_DATE}'/ ......

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

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

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

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

ûÈË? Õæʧ°Ü!
......

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

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

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

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

JSPÒ³ÃæÊÇÈçºÎ±»Ö´Ðеģ¿JSPÖ´ÐÐЧÂʱÈServletµÍÂð£¿

ÕâÊÇÎÒ´ÓIT¹«Ë¾ÃæÊÔÊÖ²áÍøÕ¾ÉÏ¿´µ½µÄÒ»¸öÃæÊÔÌ⣬ËûÃÇÌṩµÄ´ð°¸ÊÇ£º

µ±¿Í»§¶ËÏòÒ»¸öJSPÒ³Ãæ·¢³öÇëÇóʱ£¬Web Container½«JSPת»¯³ÉServletµÄÔ´´úÂë(Ö»ÔÚµÚÒ»´ÎÇëÇóʱ)£¬È»ºó±àÒëת»¯ºóµÄServlet²¢¼ÓÔص½ÄÚ´æÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ