½â¾öJSPÂÒÂëµÄ¹ýÂËÆ÷
----*web.xml *----
----*web.xml *----
<filter>
<filter-name>MyFilter</filter-name>
<filter-class>cray.util.MyFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>MyFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
------------MyFilter.java-------------
import javax.servlet.*;
import javax.servlet.http.HttpServlet;
import java.io.IOException;
public class MyFilter extends HttpServlet implements Filter
{
private FilterConfig filterConfig;
public void init(FilterConfig filterConfig) throws ServletException
{
this.filterConfig = filterConfig;
}
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain filterChain)
{
try
{
request.setCharacterEncoding("GBK");
filterChain.doFilter(request, response);
} catch (ServletException sx)
{
filterConfig.getServletContext().log(sx.getMessage());
} catch (IOException iox)
{
filterConfig.getServletContext().log(iox.getMessage());
}
}
public void destroy()
{
}
}
Ïà¹ØÎĵµ£º
windows Media Player 9.0ÍøÒ³²¥·ÅÆ÷
£¨mp3.wma.wmv.asf£©
ÒÔÏÂͼƬΪһ°ã²¥mp3.wmaÎļþʱµ÷ÓÃwindows×Ô´ø²¥·ÅÆ÷windows Midia Player9.0ËùÏÔʾÍâ¹Û£¬·Ç9.0°æËùÏÔʾµÄÃæ°åÍâ¹Û¿ÉÄܲ»Í¬£¡
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
´úÂë¼ò½é£º
width£¨²¥·ÅÆ÷Ãæ°å¿í¶È£©
height£¨²¥·ÅÆ÷Ãæ°å¸ß¶È£©
autostart£¨×Ô¶¯² ......
×î½ü¿´SSHÐèҪʹÓÃÑéÖ¤Â룬ËùÒÔÔÚÍøÉÏÕÒÁËһϡ£Õâ¸ö´úÂëÔÚÍøÉÏÒѾÁ÷´«ºÜ¾ÃÁË£¬´ó²¿·Ö¶¼´óͬСÒ죬Ìù³öÀ´ÒÔ±¸ºóÓá£
´úÂëÈçÏÂ(image.jsp)£º
<%@ page contentType="image/jpeg" import="java.awt.*,
java.awt.image.*,java.util.*,javax.image ......
ÔÚÌá½»±íµ¥µÄÒ³Àï¼ÓÉÏ
<%
org.apache.struts.util.TokenProcessor.getInstance().saveToken(request);
%>
<input type="hidden" name="org.apache.struts.taglib.html.TOKEN" value="<%=session.getAttribute("org.apache.struts.action.TOKEN")%>" />
struts actionÀï
if(isTokenValid(request ......
ÒÔǰÓÃWSAD wizard×öµÄ£¬¶¼¿ÉÒÔÔÚJSPÒ³ÃæÖнâÎöµ½EL±í´ïʽ£¬µ±È»Ç°ÌáÊÇJSP2.0µÄÇé¿öÏ¡£
½ñÌìÓöµ½ÁËÒ»¸öĪÃûÆäÃîµÄÎÊÌâ¡£¸ÕÏÂÔØEclipse3.3+MyEclipse6.0ÌåÑéµÄ¹ý³ÌÖУ¬ÓöÉÏÁ˽âÎö²»µ½EL±í´ïʽµÄÎÊÌâ¡£¾¹ýºÃ¼¸¸öСʱµÄ×ÁÄ¥ÖÕÓÚ·¢ÏÖÁË£¬¸ø´ó¼Òshareһϣº
ÎÊÌâ¾Í³öÔÚ½¨Web ProjectµÄʱºòweb.xmlÉùÃ÷ÉÏ¡£
web.xmlÉùÃ÷²¿ ......
<%@ page c language="java"%>
<%@ page import="com.dragon.*" %>
<%@ page import="lotus.domino.*" %>
<%! ......