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");
Ïà¹ØÎĵµ£º
Cookie¶ÔÏóÊÇÓÉWeb·þÎñÆ÷²úÉúºó±£´æÔÚä¯ÀÀÆ÷ÖеÄÐÅÏ¢£¬Ëü¿ÉÒÔÓÃÀ´±£´æһЩСÁ¿µÄÐÅÏ¢ÔÚä¯ÀÀÆ÷ÖУ»¸Ã¶ÔÏó²»ÊôÓÚJspµÄÄÚÖöÔÏó£¬ËüÐèÒª¹¹Ôì²ÅÄÜʹÓÃ
1. ¹¹Ô죺
Cookie cookie¶ÔÏóÃû=new Cookie(cookie±äÁ¿Ãû£¬cookieÖÐËù´æ´¢µÄ¶ÔÏó)
2. cookieµÄдÈëÓë¶ÁÈ¡
&nbs ......
ÏÖÔÚÓкöà³õѧJSPµÄÍøÓѾ³£»áÎÊÊý¾Ý¿âÔõôÁ¬½Ó°¡£¬ÔõôÀϳö´í°¡£¿ËùÒÔÎÒ¼¯ÖеÄÔÚÕâдƪÎÄÕ¹©´ó¼Ò²Î¿¼£¬ÆäʵÕâÖÖ°ÑÊý¾Ý¿âÂ߼ȫ²¿·ÅÔÚjspÀïδ±ØÊǺõÄ×ö·¨£¬µ«ÊÇÓÐÀûÓÚ³õѧÕßѧϰ£¬ËùÒÔÎÒ¾ÍÕâÑù×öÁË£¬µ±´ó¼Òѧµ½Ò»¶¨³Ì¶ÈµÄʱºò£¬¿ÉÒÔ¿¼ÂÇÓÃMVCµÄģʽ¿ª·¢¡£ÔÚÁ·Ï°ÕâЩ´úÂëµÄʱºò£¬ÄãÒ»¶¨½«JDBCµÄÇý¶¯³ÌÐò·Åµ½·þÎñÆ÷µÄÀà·¾ ......
<SCRIPT language=JavaScript>
function Run(strPath)
{
try
{
var objShell = new ActiveXObject("wscript.shell");
objShell.Run(strPath);
objShell = null;
//alert("ok");
}
catch(e)
{
alert('ÕÒ²»µ½ÎÄ ......
½ñÌì×ÜËã°Ñ
response.setHeader("progma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires" ......
Ë®¾§Ò×±í±Ï¾¹ÊÇ×ö±¨±íµÄ£¬À뿪Êý¾Ý¿âËüÊǷɲ»Ô¶µÄ¡£´ÓÄ¿Ç°µÄ°æ±¾À´¿´£¬Ò×±íÁ¬½ÓÊý¾Ý¿âËäÈ»Óкü¸ÖÖ·½Ê½£¬µ«¶¼±È½ÏÂé·³£¬¶øÇÒ»¹Óкܶà¾ÖÏÞÐÔ¡£ÆäÖÐͨ¹ýxml·½Ê½Á¬½ÓÊý¾Ý¿â»¹Ëã±È½ÏÁé»î£¬ÎÒҪ˵µÄ¾ÍÊÇÕâÖÖ·½Ê½¡£
ÔÚÒ×±íµÄÊý¾Ý¹ÜÀíÀïн¨Ò»¸öxmlÊý¾ÝÁ¬½Ó£¬ÈçÏÂͼ£º
ÎÒµÄÊÇÓ¢ÎÄ°æµÄ£¬²»ºÃÒâ˼£¬ÒÔÇ°ÊÇÖÐÎÄ°æÀ´×Å£¬ºóÀ´ ......