本文目錄一覽:
- 1、jsp的課程設計有哪些
- 2、你有JSP課程設計報告?可以複製份給我嗎,我們有這個作業
- 3、JSP課程設計
- 4、JSP頁面列表動態表的實現
- 5、給一個JSP 課程設計吧~ 謝謝急用,2011.6.9 以前使用~
- 6、。。JSP課程設計報告。。。
jsp的課程設計有哪些
JSP全名為Java Server Pages,中文名叫java服務器頁面,其根本是一個簡化的Servlet設計,它[1]是由Sun Microsystems公司倡導、許多公司參與一起建立的一種動態網頁技術標準。JSP技術有點類似ASP技術,它是在傳統的網頁HTML(標準通用標記語言的子集)文件(*.htm,*.html)中插入Java程序段(Scriptlet)和JSP標記(tag),從而形成JSP文件,後綴名為(*.jsp)。 用JSP開發的Web應用是跨平台的,既能在Linux下運行,也能在其他操作系統上運行。 它實現了Html語法中的java擴展(以%, %形式)。JSP與Servlet一樣,是在服務器端執行的。通常返回給客戶端的就是一個HTML文本,因此客戶端只要有瀏覽器就能瀏覽。JSP技術使用Java編程語言編寫類XML的tags和scriptlets,來封裝產生動態網頁的處理邏輯。網頁還能通過tags和scriptlets訪問存在於服務端的資源的應用邏輯。JSP將網頁邏輯與網頁設計的顯示分離,支持可重用的基於組件的設計,使基於Web的應用程序的開發變得迅速和容易。
中文名
JAVA服務器頁面
外文名
Java Server Pages
外語縮寫
JSP
本質
動態網頁技術標準
倡導公司
Sun Microsystems
你有JSP課程設計報告?可以複製份給我嗎,我們有這個作業
您需要用簡潔明了的語言在這把問題描述詳細,讓回答者更好的清楚您的難疑
比如您的問題還沒有敘述清楚,請點擊展開“問題補充”,
清楚描述您的問題,
並可以插入圖片來幫助回答者更加確切的知道你的困惑,
更有針對性地幫助你。
我們可以針對你的需求提供一份適用於初學者的代碼,或學生版/個人版/專業版/企業版
您需要留下Email地址,以便回答者更好的解決你的問題
為獲取幫助,您可以發送消息到:六伍柒幺伍六幺五(‘幺’讀yao,一聲,’柒’同 ‘七’),QQ
您還可以通過向我們發起求助的方式主動去尋求我們的幫助。
如果您對回答不甚滿意,希望繼續對回答者進行追問了解詳情時,
可點擊回答內容下方的“繼續追問”按鈕
請您切記為您的問題選擇一個最恰當的分類,
因為只有這樣,您的問題才能在第一時間內得到正確解答。
交易提醒:預付訂金是詐騙
JSP課程設計
我不知道你學了多久jsp
用JSP語法做一個系統 — 有這樣提問的?
JSP(JavaServer Pages)是由Sun Microsystems公司倡導、許多公司參與一起建立的一種動態網頁技術標準
它是在傳統的網頁HTML文件(*.htm,*.html)中插入Java程序段(Scriptlet)和JSP標記(tag),從而形成JSP文件(*.jsp)
數據庫要用Microsoft Office FrontPage 2003 —請問 這個工具怎麼設計數據庫?
還是多學習學習吧。。 不要什麼都 拿來主義
JSP頁面列表動態表的實現
一、在頁面上用複選框進行複選,然後把信息寫入到XML文件中。二、進行頁面展示時候讀取xml文件。三、使用反射機制調用類中的get方法四、頁面上用標籤輸出動態表頭。五、雙重循環在頁面上輸出動態列。 寫XML的struts2處理類:
public class DynamicTbAction extends MySuperAction { public String List(){
return “dynamicTbList”;
}
public String set(){
UserVO userVO = (UserVO)session.get(“loginUser”);
String path = request.getRealPath(“/”)+”sysconfig\\DynamicTable”;
path = path.replace(“\\”, “/”)+”/” + userVO.getUsername()+”.xml”;
String[] attributes = request.getParameterValues(“publicAttribute”);
if(attributes.length!= 0){
Element rootElement = new Element(“tables”);
Element tableElt = new Element(“table”);
Element tabInx = new Element(“publicAttribute”);
tableElt.addContent(tabInx);
for (int i = 0; i attributes.length; i++) {
String attr = attributes[i];
String[] attrs = attr.split(“,”);
Element attrElement = new Element(“column”);
attrElement.setAttribute(“name”, attrs[0]);
attrElement.setAttribute(“value”, attrs[1]);
tabInx.addContent(attrElement);
}
rootElement.addContent(tableElt);
Document doc = new Document(rootElement);
XMLOutputter out = new XMLOutputter();
String xmlStr = out.outputString(doc);
System.out.println(xmlStr);
System.out.println(path);
try {
out.output(doc, new FileOutputStream(path));
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
return List();
}
} struts2處理到頁面的列表: public String List(){
UserVO userVO = (UserVO)session.get(“loginUser”);
String path = request.getRealPath(“/”)+”sysconfig\\DynamicTable”;
path = path.replace(“\\”, “/”)+”/” + userVO.getUsername()+”.xml”;
ListString columnName = JDOMUtil.getColumnNames(path, “publicAttribute”);
ListString columnValue = JDOMUtil.getColumnValue(path, “publicAttribute”);
Pagination pagination = systemconfigHelper.queryPageAttribute(“from PublicAttributePO”, page, 5, “select count(*) from PublicAttributePO”);
ListPublicAttributeVO list = pagination.getList();
List entityList = new ArrayList();
for (Iterator iterator = list.iterator(); iterator.hasNext();) {
PublicAttributeVO publicAttributeVO = (PublicAttributeVO) iterator
.next();
if (“0”.equals(publicAttributeVO.getStatus())) {
publicAttributeVO.setStatus(“失效”);
} else {
publicAttributeVO.setStatus(“有效”);
}
ListObject entity = new ArrayListObject();
for (Iterator iterator1 = columnValue.iterator(); iterator1.hasNext();) {
String value = (String) iterator1.next();
String methodName = “get” + value;
try {
String[] args={};
Object name = JDOMUtil.invokeMethod(publicAttributeVO, methodName, args);
entity.add(name);
} catch (Exception e) {
e.printStackTrace();
}
}
entityList.add(entity);
}
request.setAttribute(“navigation”, pagination.pageNavigator(“attribute_List.action”));
request.setAttribute(“attributeList”, entityList);
request.setAttribute(“columnName”, columnName);
return “attributeList”;
}幫助類JDomUtilpublic class JDOMUtil { public static ListString getColumnNames(String path, String tableName) { ListString names = new ArrayListString(); SAXBuilder saxBuilder = new SAXBuilder();
try {
Document document = saxBuilder.build(path);
Element rootElement = document.getRootElement();
List beanList = rootElement.getChild(“table”).getChild(tableName)
.getChildren();
for (Iterator iterator = beanList.iterator(); iterator.hasNext();) {
Element elt = (Element) iterator.next();
String name = elt.getAttributeValue(“name”);
names.add(name);
String value = elt.getAttributeValue(“value”);
}
} catch (JDOMException e1) {
e1.printStackTrace();
} catch (IOException e1) {
e1.printStackTrace();
}
return names;
} public static ListString getColumnValue(String path, String tableName) { ListString values = new ArrayListString();
SAXBuilder saxBuilder = new SAXBuilder();
try {
Document document = saxBuilder.build(path);
Element rootElement = document.getRootElement();
List beanList = rootElement.getChild(“table”).getChild(tableName)
.getChildren();
for (Iterator iterator = beanList.iterator(); iterator.hasNext();) {
Element elt = (Element) iterator.next();
String value = elt.getAttributeValue(“value”);
values.add(value);
}
} catch (JDOMException e1) {
e1.printStackTrace();
} catch (IOException e1) {
e1.printStackTrace();
}
return values;
} public static Object invokeMethod(Object methodObject, String methodName,
Object[] args) throws Exception {
Class ownerClass = methodObject.getClass();
Class[] argsClass = new Class[args.length];
for (int i = 0, j = args.length; i j; i++) {
argsClass[i] = args[i].getClass();
}
Method method = ownerClass.getMethod(methodName, argsClass);
return method.invoke(methodObject, args);
}}
給一個JSP 課程設計吧~ 謝謝急用,2011.6.9 以前使用~
我有一個,但是沒有網頁計數器,加一個應該很簡單,你要嗎?
。。JSP課程設計報告。。。
去CSDN上找“品紅”,北大青鳥的一個項目,很多都帶源碼和設計報告的
原創文章,作者:XUXPP,如若轉載,請註明出處:https://www.506064.com/zh-hant/n/313667.html