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

jsp¶ÁÈ¡ÅäÖÃÎļþÂÒÂë½â¾ö

Properties properties = new Properties();
   
    File file = new File(request.getRealPath("/") +"\\WEB-INF\\classes\\configs.properties");
    FileInputStream fiStream = new FileInputStream(file);
    InputStreamReader isReader = new InputStreamReader(fiStream,"utf-8");
    properties.load(isReader);
   
    String path = properties.getProperty("docpath");


Ïà¹ØÎĵµ£º

JspÖеÄCookie¶ÔÏó

     Cookie¶ÔÏóÊÇÓÉWeb·þÎñÆ÷²úÉúºó±£´æÔÚä¯ÀÀÆ÷ÖеÄÐÅÏ¢£¬Ëü¿ÉÒÔÓÃÀ´±£´æһЩСÁ¿µÄÐÅÏ¢ÔÚä¯ÀÀÆ÷ÖУ»¸Ã¶ÔÏó²»ÊôÓÚJspµÄÄÚÖöÔÏó£¬ËüÐèÒª¹¹Ôì²ÅÄÜʹÓÃ
1. ¹¹Ô죺
     Cookie cookie¶ÔÏóÃû=new Cookie(cookie±äÁ¿Ãû£¬cookieÖÐËù´æ´¢µÄ¶ÔÏó)
2. cookieµÄдÈëÓë¶ÁÈ¡
 &nbs ......

jspÁ¬½Ó¸÷ÖÖÊý¾Ý¿â´óÈ«

ÏÖÔÚÓкöà³õѧJSPµÄÍøÓѾ­³£»áÎÊÊý¾Ý¿âÔõôÁ¬½Ó°¡£¬ÔõôÀϳö´í°¡£¿ËùÒÔÎÒ¼¯ÖеÄÔÚÕâдƪÎÄÕ¹©´ó¼Ò²Î¿¼£¬ÆäʵÕâÖÖ°ÑÊý¾Ý¿âÂß¼­È«²¿·ÅÔÚjspÀïδ±ØÊǺõÄ×ö·¨£¬µ«ÊÇÓÐÀûÓÚ³õѧÕßѧϰ£¬ËùÒÔÎÒ¾ÍÕâÑù×öÁË£¬µ±´ó¼Òѧµ½Ò»¶¨³Ì¶ÈµÄʱºò£¬¿ÉÒÔ¿¼ÂÇÓÃMVCµÄģʽ¿ª·¢¡£ÔÚÁ·Ï°ÕâЩ´úÂëµÄʱºò£¬ÄãÒ»¶¨½«JDBCµÄÇý¶¯³ÌÐò·Åµ½·þÎñÆ÷µÄÀà·¾ ......

jspÒ³ÃæÀûÓÃjs activexobjectµ÷Óÿͻ§»úexeÎļþ

<SCRIPT language=JavaScript>
function Run(strPath)
{
try
{
var objShell = new ActiveXObject("wscript.shell");
objShell.Run(strPath);
objShell = null;
//alert("ok");
}
catch(e)
{
alert('ÕÒ²»µ½ÎÄ ......

jsp»º´æ´¦Àí

½ñÌì×ÜËã°Ñ
response.setHeader("progma", "no-cache");
            response.setHeader("Cache-Control", "no-cache");
            response.setDateHeader("Expires" ......

Ë®¾§Ò×±í—JSP—Êý¾Ý¿â

Ë®¾§Ò×±í±Ï¾¹ÊÇ×ö±¨±íµÄ£¬À뿪Êý¾Ý¿âËüÊǷɲ»Ô¶µÄ¡£´ÓÄ¿Ç°µÄ°æ±¾À´¿´£¬Ò×±íÁ¬½ÓÊý¾Ý¿âËäÈ»Óкü¸ÖÖ·½Ê½£¬µ«¶¼±È½ÏÂé·³£¬¶øÇÒ»¹Óкܶà¾ÖÏÞÐÔ¡£ÆäÖÐͨ¹ýxml·½Ê½Á¬½ÓÊý¾Ý¿â»¹Ëã±È½ÏÁé»î£¬ÎÒҪ˵µÄ¾ÍÊÇÕâÖÖ·½Ê½¡£
 
ÔÚÒ×±íµÄÊý¾Ý¹ÜÀíÀïн¨Ò»¸öxmlÊý¾ÝÁ¬½Ó£¬ÈçÏÂͼ£º
ÎÒµÄÊÇÓ¢ÎÄ°æµÄ£¬²»ºÃÒâ˼£¬ÒÔÇ°ÊÇÖÐÎÄ°æÀ´×Å£¬ºóÀ´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ