jspÉú³Éhtml¾²Ì¬Ò³Ãæ´úÂë
<%@ page contentType="text/html;charset=GBK"%>
<%@page import="java.util.*"%>
<%@page import="java.io.*" %>
<%
//ÔÚÕâÀïÈç¹ûд³É“WEB-INF\templates\template.htm”³ÌÐò»á±¨´í
String filePath = request.getRealPath("/")+"WEB-INF/templates/template.htm";
out.print(filePath);
String templateContent="";
FileInputStream fileinputstream = new FileInputStream(filePath);//¶Áȡģ¿éÎļþ
//int lenght = fileinputstream.available();
byte bytes[] = new byte[1024];
fileinputstream.read(bytes);
fileinputstream.close();
templateContent = new String(bytes);
out.print("ÒÔÏÂÊÇÄ£°åÄÚÈÝ£º<br>"+templateContent+"<br> ÒÔÏÂÊÇÖû»ÒÔºóµÄhtmlÄÚÈÝ<br><hr>");
templateContent=templateContent.replaceAll("#title#","ÎÄÕ±êÌâ");
templateContent=templateContent.replaceAll("#author#","×÷ÕßÊÇË");//Ìæ»»µôÄ£¿éÖÐÏàÓ¦µÄµØ·½
templateContent=templateContent.replaceAll("#content#","ÎÄÕÂÄÚÈÝ");
// ¸ù¾Ýʱ¼äµÃÎļþÃû
Calendar calendar = Calendar.getInstance();
String fileame = String.valueOf(calendar.getTimeInMillis()) +".html";
fileame = request.getRealPath("/")+fileame;//Éú³ÉµÄhtmlÎļþ±£´æÂ·¾¶
out.print(templateContent);
FileOutputStream fileoutputstream = new FileOutputStream(fileame);//½¨Á¢ÎļþÊä³öÁ÷
byte tag_bytes[] = templateContent.getBytes();
fileoutputstream.write(tag_bytes);
fileoutputstream.close();
%>
Ïà¹ØÎĵµ£º
³¬Îı¾±ê¼ÇÓïÑÔ£¨HTML£©5 µÚÒ»´ÎÏò HTML ÖÐÒýÈëеÄÔªËØ¡£ÐÂµÄ½á¹¹ÔªËØ°üÀ¨ aside¡¢figure ºÍ section¡£ÐµÄÄÚÁªÔªËذüÀ¨ time¡¢meter ºÍ progress¡£ÐµÄÄÚÇ¶ÔªËØÓÐ video ºÍ audio¡£ÐµĽ»»¥ÔªËØÓÐ details¡¢datagrid ºÍ command¡£
¡¡¡¡³¬Îı¾±ê¼ÇÓïÑÔ£¨HTML£©µÄ¿ª·¢µ½ ......
Crescent Eve(http://www.kashim.com/eve/
)ÊÇÃâ·ÑµÄHTML,CSSµÄ±à¼Æ÷.
ºÍ¼Çʱ¾ÀàËÆ,·Ç³£¼ò½à.
Ö÷ÒªÓÐÒÔÏÂ4¸ö¹¦ÄÜ
HTMLµÄtagÊäÈëÌáʾ
tagÊôÐÔµÄÊäÈëÌáʾ
HTMLµÄÓï·¨¼ì²é
HTMLÔ¤ÀÀ
ÔÚ±à¼HTML»ÃæÊ±·Ç³£ÓÐÓÃ.
Crescent EveÊǷdz£Ð¡µÄÒ»¸ö±à¼Æ÷,²Ù×÷Ò²·Ç³£¼ò ......
/* 1 construct html form 2 bind data to form 3 validate form data 4 collect data from form */ (function($){ var controlTypes = ['textbox','password',' ......
ºÜ¶àʱºò£¬ÎÒÃÇÐèÒª½«ÏÂÀ¿òÀïÃæµÄÊý¾ÝÓÃÊ÷ÏÔʾ³öÀ´£¬ÕâÑù»á±ãÓÚ¿Í»§µÃµ½ÇåÎúµÄÊý¾Ý£¬¶øÇұȽÏÖ±½Ó£¬ÁÀ³öÒÔÏÂHTML´úÂ룬¿ÉÒÔÖ±½Ó¸´ÖƵ½HTML´úÂëÀïÃæÔËÐУ¡
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-tran ......
JSP µÄÄÚÖöÔÏóÓУºresquest ¡¢response¡¢session¡¢ application ¡¢out¡£ÒÔÏÂÎÒÃǽ«
Ò»Ò»½éÉÜ¡£
response ºÍrequest ¶ÔÏóÊÇJSP µÄÄÚÖöÔÏó½ÏÖØÒªµÄÁ½¸ö£¬ÕâÁ½¸ö¶ÔÏóÌṩÁ˶ԷþÎñ
Æ÷ºÍä¯ÀÀÆ÷ͨÐÅ·½·¨µÄ¿ØÖÆ¡£Ö±½ÓÌÖÂÛÕâÁ½¸ö¶ÔÏóǰ£¬ÒªÏȶÔHTTP ÐÒé----Word Wide
Webµ×²ãÐÒé×÷¼òµ¥½éÉÜ¡£
Word Wide WebÊÇÔõÑùÔËÐеÄÄØ£ ......