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

jspÖжÁÈ¡propertiesÎļþ

jspÖжÁÈ¡propertiesÎļþ£¬²¢°ÑÖµÉèµ½js±äÁ¿ÖУº
web_stderr.propertiesÎļþÄÚÈÝ£º
common.username.error.null = UserName can not be null.
common.username.error.invalid = UserName is invalid.
common.password.error.null = Password can not bu null.
common.password.error.invalid = Password is invalid.
common.login.error.user = The user can not been stored or password is wrong.
common.request.parameter.error = Request parameter error.
common.function.title.null = The tilte of function or is null.
common.session.timeout = The session has already expired.Please login again.  
1.´æ´¢propertiesÎļþÄÚÈݵÄjs±äÁ¿(common-checkmessage.jsp)£º
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" import="java.util.ResourceBundle"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<%ResourceBundle res = ResourceBundle.getBundle("web_stderr"); %>
<mce:script type="text/javascript"><!--
var check_message_username_null = '<%=res.getString("common.username.error.null")%>';
var check_message_username_invalid = '<%=res.getString("common.username.error.invalid")%>';
var check_message_password_null = '<%=res.getString("common.password.error.null")%>';
var check_message_password_invalid = '<%=res.getString("common.password.error.invalid")%>';
// --></mce:script>
</head>
<body>
</body>
</html>
´ËʱֻҪÔÚÆäËûjspÖаüº¬¸ÃjspÎļþ£¬¾Í¿ÉÒÔÔÚjspºÍjsÎļþÖÐʹÓÃÕâЩ±äÁ¿¡£


Ïà¹ØÎĵµ£º

ÓÃJspÊä³öWord,PDFµÈÎļþʱ½øÐеÄÉèÖÃ

response.setContentType( "application/pdf" ); // MIME type for pdf doc
response.setHeader("Content-Disposition","attachment;filename=output.pdf;");

 
Sets the Content-Type header. Content-Type identifies the MIME type of the response document and the character set encoding.
To se ......

JUnitѧϰ±Ê¼Ç16 ÓÃJSPºÍtaglib½øÐе¥Ôª²âÊÔ3

ÓÃmock objects¶Ôtaglib½øÐе¥Ôª²âÊÔ    ÒòΪJSP²»ÊÇ´¿´âµÄjava´úÂ룬ËùÒÔ£¬Ê¹ÓÃmock½øÐвâÊÔÊÇÐв»Í¨µÄ£¬µ«ÊÇ£¬taglibÈ´ÊÇ´¿´âµÄjava´úÂ룬¿ÉÒÔ²âÊÔ£¬µ«ÊÇËüÒ²ÓÐÂé·³µÄµØ·½£¬ÎÒÃÇҪΪ³éÏóµÄjavaÀàµÄPageContext´´½¨mocks¡£    ÔÚÇ°Ãæ£¬ÎÒÃÇÔøÑ§Ï°ÁËʹÓÃEasyMockºÍDynaMockµÄ¿ò¼ÜÀ´´´½¨mock£¬µ«ÊÇ£¬ ......

JSP¸ßÇåËõÂÔͼJMagickʹÓÃ

JSP¸ßÇåËõÂÔͼJMagickʹÓã¬ÊµÏÖÁ˶ÔͼƬµÄ¶àÖÖ²Ù×÷£¬ºÏ³ÉͼƬ£¬ËõÂÔͼ¡¢¸´ÖÆÊý¾ÝµÈµÈ...¡£
Ê×ÏÈÏÂÔØ£º
http://downloads.jmagick.org/6.3.9/ImageMagick-6.3.9-0-Q16-windows-dll.exe
http://downloads.jmagick.org/6.3.9/jmagick-win-6.3.9-Q16.zip
°²×°ImageMagick-6.3.9-0-Q16-windows-dll.exe³ÌÐòÔÚFÅÌÈ磺F:\Imag ......

jspÁ¬½ÓÊý¾Ý¿âʾÀý

1£¬Ð½¨Ò»web¹¤³Ì£¬½«Êý¾Ý¿âÁ¬½Ó°üÌí¼ÓÈëlibÎļþ¼ÐÏ¡£
2£¬Ð½¨jspÒ³Ãæ£¬ÄÚÈÝÈçÏ£º
<%@ page language="java" import="java.util.*" import="java.sql.*" pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+re ......

jspÒ³ÃæÓйرàÂëµÄ¹Ø¼ü´Ê½âÊÍ

<%@ page contentType=”text/html; charset=GB2312″ %>
<META http-equiv=Content-Type content=”text/html; charset=gb2312″>
 
pageEncoding ÊÇjspÎļþ±¾ÉíµÄ±àÂë
contentTypeµÄcharsetÊÇ·þÎñÆ÷·¢Ë͸ø¿Í»§¶ËµÄÄÚÈݵıàÂë¡£
 
 
ÔÚÍøÒ³µÄHTMLÔ´´úÂëÖÐÒ»¸öÖØÒªµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ