JSPÖÐorg.apache.jasper.JasperException
¹ØÓÚJSPÖÐorg.apache.jasper.JasperException:
This absolute uri http://java.sun.com/jsp/jstl/core ) cannot be resolved in either web.xml or the jar files deployed with this application
´ÓÍøÉÏËÑÁËһϣ¬ÏàͬµÄ˵·¨ÊÇ£ºÒ»¸ö¾ÍÊÇJSTLµÄ°æ±¾ÎÊÌ⣨1.0Óë1.1£©£¬ÊÇ·ñ²»Ò»Ö¡£ »¹ÓоÍÊǼì²éÐéÄâĿ¼ÏÂWEB-INFĿ¼ÏµÄlibÎļþ¼Ð(Èç¹ûͬÓÐlibÎļþ¼Ð£¬ºó¶¯´´½¨Ò»¸ö£©ÖÐÊÇ·ñÓÐjstl.jarºÍstandard.jarÁ½¸öjar°ü £¬Èç¹ûûÓÐÔò°ÑËüÃǸ´ÖƵ½libÏÂÃæ¡£
¶¼ÊÔÁË£¬²»¹ý±¨´íÒÀ¾É……ºóÀ´ÓÖÕÒÁËһϼÓÉÏ×Ô¼ºµÄÂҸ㣬°´ÕÕÉÏÃæµÄ¸Ä¹ýÖ®ºó£¬´óÌåÓÐÁ½ÖÖ½â¾ö·½·¨£º
µÚÒ»ÖÖ¾ÍÊÇÔÚEclipseµÄ¹¤³ÌÖе¼ÈëJSTL1.1ºó£¬ÏÂÔØJSTL1.1 http://jakarta.apache.org/taglibs/index.html
È»ºó½âѹ,°Ñ*.jarºÍ*.tld·Åµ½/WEB-INF/libĿ¼Ï¡£Ò²¾ÍÊǽ«ËùÓеÄjakarta-taglibs-standard-current.zip£¨JSTLµÄÀà¿â£©ÖеÄ.jarºÍ.tlb·Åµ½WEB-INFĿ¼Ï嵀 libÎļþ¼ÐÖУ¬JSPÎļþÖе¼Èë<%@ taglib prefix="c" uri="/WEB-INF/lib/c.tld" %>
µÚ¶þÖÖÊÇÐÞ¸Äweb.xml£¬¼ÓÉÏÏÂÃæµÄÓï¾ä£º
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/tlds/fmt.tld</taglib-location>
</taglib>
 
Ïà¹ØÎĵµ£º
ÐÞ¸ÄÁËcss ÑùʽÎļþºó£¬ÖØÐÂä¯ÀÀ¸ÃjspÒ³Ã棬·¢ÏÖÐÂÐ޸ĵÄÑùʽûÓÐÉúЧ¡£×ÜÒÔΪÊÇÏîÄ¿»º´æËùÒýÆðµÄ£¬ÓÚÊÇÇåÀíËùÓÐÏîÄ¿£¬ÖØй¹½¨ÏîÄ¿¡£²»ÐС£Ö´ÐÐserver µÄ publish »¹ÊDz»ÐС£ÓÃwindow µÄËÑË÷¹¦ÄÜ·¢ÏÖ³ýÁË WebContent Ŀ¼Óиà css ÎļþÍ⣬.metadata\.plugins\org.eclipse.wst.server.core\tmp1\webapps\ Ŀ¼ÏÂÒ²´æÔڸà c ......
̸JSPÓëXMLµÄ½»»¥
ʹÓÃJavaServer PagesÓÐÈýÖÖ²»Í¬µÄ·½·¨ÓÃÓÚ´¦ÀíXMLÎĵµ£¬Ã¿ÖÖ·½·¨¶¼ÓÐÀûÓÚÌá¸ß·ÖÀëÒ³Ãæ´úÂëÓëXMLÊý¾ÝµÄˮƽ£¬ÓÐÀûÓÚ¼ò»¯¿ª·¢ÍøÒ³µÄ¸´ÔӶȲ¢ÇÒ¸ÄÉÆÌá¸ß×é¼þÓëÒ³Ãæ´úÂëµÄ¿ÉÖØÓÃÐÔ¡£
¡¡¡¡JavaServer Pages ( JSP)ºÍXMLÊÇSunµÄJ2EEµÄÁ½¸öÖÁ¹Ø½ôÒªµÄ×é¼þ¡£ JSPÊÇÓÃÓÚ´´½¨Ó¦ÓóÌÐò·þÎñÆ÷¶Ë³ÌÐòµÄÓÐЧ¹¤¾ß£¬¶ø¿ ......
JSPÖÐfilter¹ýÂËÆ÷ÑéÖ¤Óû§µÇ¼
ÏÖÔÚJSPʹÓÃÔ½À´Ô½¹ã·ºÁË£¬ÓÈÆäÊǺܶàÕþ¸®µÄÍøÕ¾¶¼²ÉÓÃÁËJSP¼¼Êõ£¬Æ书ÄÜÇ¿´óÇÒ°²È«¡£
³õѧÕߺܶàÓÐÕâô¸öÎÊÌ⣬¾ÍÊÇ£¬ÍøÕ¾µÄÒ»¸öȨÏÞÉèÖ㬱ÈÈçµÇ¼Óû§¿ÉÒԲ鿴ÄÄЩҳÃ棬¶øÓοÍÓÖÓÐȨÏÞ¿ÉÒÔ¿´ÄÄЩÄÚÈÝÄØ£¿
JSPÊÇÇ¿´óµÄ£¬µ«Æä´úÂ뻹ÊÇÏà¶Ô·±ËöµÄ£¬ÆäʵÓÃÒ»¸ö¹ýÂËÆ÷(filter)¾Í¿ÉÒÔʵÏÖÕ ......
JSPÎļþÏÂÔØ-----------------------------------------------------------------
<%@ page contentType="text/html; charset=GBK"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page import="java.io.File"%>
<%@page import="java.io.InputStream"%>
<%@page ......
ÔÚjspÖÐÒýÓÃresponse.setContentType("application/msword");£¬´ò¿ªµÄÒ³Ãæ¾ÍÊÇwordÑùʽ¡£
1¡¢ÊµÏÖwordºá´ò£º
<style>
@page
{mso-page-border-surround-header:no;
mso-page-border-surround-footer:no;}
@page Section1
{size:841.9pt 595.3pt;//Ö½ÕŵĴóС
mso-page-orientation:l ......