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

jsp:getProperty±êÇ©

jsp:getProperty±êÇ©ÓÃÓÚ»ñÈ¡±»¼ÓÔص½µ±Ç°Ò³ÃæÖеÄJavaBeanÖÐij¸öÊôÐÔµÄÖµ
¸ñʽ£º<jsp:getProperty name=? property=? />
name£ºJavaBeanµÄ¶ÔÏóÃû£¬ÓÃÓÚÖ¸¶¨´ÓÄĸöJavaBeanÖлñÈ¡ÊôÐÔÖµ
property£ºJavaBeanÖеÄÊôÐÔÃû£¬ÓÃÓÚÖ¸¶¨»ñÈ¡JavaBeanÖеÄÄĸöÊôÐÔÖµ
                ×¢Ò⣺µ±JavaBeanÖеÄÊôÐÔÃûΪxxx£¬¶ø»ñÈ¡¸ÃÊôÐÔÖµµÄ·½·¨ÃûΪgetYyy()£¬Ôòproperty="yyy"£¬¶ø²»ÊÇproperty="xxx"


Ïà¹ØÎĵµ£º

JspÖеÄsession¶ÔÏó

       session¶ÔÏóÊÇjavax.servlet.http.HttpSessionÀàµÄÒ»¸ö×ÓÀà¶ÔÏó£»ÔÚsessionÖб£´æµÄ¶ÔÏóÖµÔÚµ±Ç°Óû§Á¬½ÓµÄËùÓÐÒ³ÃæÖж¼ÊÇ¿ÉÒÔ±»·ÃÎʵ½µÄ£¬¼´session¶ÔÏóÊÇ´æ´¢ÔÚÿ¸ö´ò¿ªµÄIEä¯ÀÀÆ÷Öеģ¬²»Í¬µÄÓû§Ëù¶ÔÓ¦µÄsession¶ÔÏóÒ»°ãÊDz»Í¬µÄ£»³£Ó÷½·¨ÈçÏ£º
setAttribute(String name,Obje ......

¡¾×ª¡¿JSP/ServletÖеıàÂë

    Ê×ÏÈ£¬ËµËµJSP/ServletÖеļ¸¸ö±àÂëµÄ×÷Óá£
ÔÚJSP/ServletÖÐÖ÷ÒªÓÐÒÔϼ¸¸öµØ·½¿ÉÒÔÉèÖñà Â룬pageEncoding="UTF-8"¡¢contentType="text/html;charset=UTF-8"¡¢request.setCharacterEncoding("UTF-8")ºÍ response.setCharacterEncoding("UTF-8")£¬ÆäÖÐÇ°Á½¸ ......

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·ÖÒ³±êÇ©

Ò»¼ò½é£¬
Pager-taglib£¬Ö§³Ö¶àÖÖ·ç¸ñµÄ·ÖÒ³ÏÔʾ¡£Êµ¼ÊÉÏËýÊÇÒ»¸öJsp±êÇ©¿â£¬ÎªÔÚJSPÉÏÏÔʾ·ÖÒ³ÐÅÏ¢¶øÉè¼ÆµÄÒ»Ì×±êÇ©£¬Í¨¹ýÕâЩ±êÇ©µÄ²»Í¬µÄ×éºÏ£¬»áÐγɶàÖÖ²»Ò»ÑùµÄ·ÖÒ³Ò³Ã棬·ç¸ñ¸÷Ò죬Ëý×Ô´øµÄDEMO¾ÍÓÐÆßÖÖ×óÓҵķÖÒ³·ç¸ñ£¬°üÀ¨GoogleµÄ·ÖÒ³·ç¸ñ¡£¶øÐèÒª¶©ÖÆ×ÔÒѵķç¸ñµÄ·ÖÒ³Ò³ÃæÒ²·Ç³£¼òµ¥¡£
·ÖÒ³·½Ê½ÓÐÁ½ÖÖ£º
Ò ......

JSP¶ÔÎļþµÄ²Ù×÷

Ò»¡¢ÔÚJSPÒ³ÃæÖжÁÈ¡±¾µØÎļþÄÚÈÝ£º
<%
    try {
        BufferedReader in = new BufferedReader(new FileReader("D:/test.txt"));
        String file = "";
        String temp = "";
 &n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ