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

½«jspÒ³ÃæÖÐtableµ¼³öµ½doc

<SCRIPT LANGUAGE="javascript">
       //Ö¸¶¨Ò³ÃæÇøÓòÄÚÈݵ¼ÈëWord
       function AllAreaWord() {
       var oWD = new ActiveXObject("Word.Application");
       var oDC = oWD.Documents.Add("",0,1);
       var oRange =oDC.Range(0,1);
       var sel = document.body.createTextRange();
       sel.moveToElementText(PrintA);
       sel.select();
       sel.execCommand("Copy");
       oRange.Paste();
       oWD.Application.Visible = true;
       //window.close();
       }
</SCRIPT>
Ó¦ÓþÙÀý£º
<table width="100%" align=center border="0" cellpadding="0" cellspacing="0" id = "PrintA">
    <tr><td>…</td></tr>
       </table>


Ïà¹ØÎĵµ£º

jsp°üº¬Îļþ¼°Ê¹ÓÃjavabean

£¨Ò»£©°üº¬ÆäËûÒ³ÃæµÄ·½·¨£º
includeÖ¸Á<%@ include file = "test1.jsp" %>
 ¾²Ì¬°üº¬£¬¿ÉÒÔ°üº¬ÈÎÒâ¸ñʽµÄÎļþ£¨²»¹âÊÇjspÎļþ£¬»¹¿ÉÒÔÊÇtxtµÈÎı¾Îļþ£©£¬¾²Ì¬°üº¬¾ÍÊǽ«±»°üº¬ÎļþµÄÄÚÈÝ¿½±´µ½°üº¬ÎļþÖУ¬½øÐÐÖ´ÐС£µ±Ç°Ò³ÃæºÍtest1.jspÖв»ÄÜÓÐÖØÃûµÄ±äÁ¿¡£
include¶¯×÷ <jsp:include page = "tes ......

FckeditorºÍJSP(Java)ÏîÄ¿µÄÕûºÏʵÀý

(תÔرêÇ©£ºfckeditorit ·ÖÀࣺJava)
1.½«FCKeditorĿ¼ÏµÄeditor¿½±´µ½ÏîÄ¿µÄWebContentĿ¼ÏÂ
2.²¢°ÑECKeditor-2.3.jar ºÍ commons-fileupload.jar¿½±´µ½ÏîÄ¿\WebContent\WEB-INF\libĿ¼ÏÂ
3.°Ñ FCKeditor.tld¿½±´µ½ÏîÄ¿\WebContent\WEB-INFÏÂ
4.ÔÚweb.xmlÀïÌí¼ÓÈçÏ´úÂë
´úÂë
<servlet>    ......

JSP+AJAX Ìí¼Ó¡¢É¾³ý¶àÑ¡¿ò

±¾ÀýÊDzÉÓÃJSP + Ajax + Îı¾À´ÑÝʾ¶àÑ¡¡¢È«Ñ¡£¬Ìí¼Ó¡¢É¾³ý¡¢¸üÐÂcheckbox¶àÑ¡¿òµÄЧ¹û£»³ä·ÖÕ¹ÏÖÁËÀûÓÃJavaScript¿ØÖÆHTML DOMÒÔ¼°ÀûÓÃXML http ´«µÝÊý¾Ý£¬ÀûÓÃJSP²Ù×÷Îı¾µÄЧ¹û¡£
¡¡¡¡1.JavaScript ÓÃÀ´¿ØÖÆÒ³ÃæÄÚÈݵÄÏÖʵÓëÔöɾЧ¹û£»
¡¡¡¡2.JSP×÷Ϊºǫ́£¬¶ÔÎı¾½øÐжÁÈ¡¡¢Ð´Èë¡¢¸üеȲÙ×÷£»
¡¡¡¡3.Îı¾¸ñʽÊÇÓÃÀ´´ ......

jspÂÒÂë½â¾ö´óÈ«(ת×ÔcsdnÒ»¸ßÊÖ)

jspÖÐÎÄÏÔʾÂÒÂë½â¾ö·½°¸
Ò»¡¢JSPÒ³ÃæÏÔʾÂÒÂë
¶þ¡¢±íµ¥Ìá½»ÖÐÎÄʱ³öÏÖÂÒÂë
Èý¡¢Êý¾Ý¿âÁ¬½Ó
´ó¼ÒÔÚJSPµÄ¿ª·¢¹ý³ÌÖУ¬¾­³£³öÏÖÖÐÎÄÂÒÂëµÄÎÊÌ⣬¿ÉÄÜÒ»ÖÁÀ§ÈÅ×ÅÄú£¬ÎÒÏÖÔÚ°ÑÎÒÔÚJSP¿ª·¢ÖÐÓöµ½
µÄÖÐÎÄÂÒÂëµÄÎÊÌâ¼°½â¾ö°ì·¨Ð´³öÀ´¹©´ó¼Ò²Î¿¼¡£
Ò»¡¢JSPÒ³ÃæÏÔʾÂÒÂë
ÏÂÃæµÄÏÔʾҳÃæ(display.jsp)¾Í³öÏÖÂÒÂ룺
< ......

jsp/get/set/struts.xml´æÈ¡

get
jsp         url          ${param.serialID}
action    jsp          String commentId = ServletActionContext.getRequest().getParameter("commentId");
-- ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ