?? jobxmlaction.java
字號(hào):
/*
* 創(chuàng)建日期 2005-8-29
*
* TODO 要更改此生成的文件的模板,請(qǐng)轉(zhuǎn)至
* 窗口 - 首選項(xiàng) - Java - 代碼樣式 - 代碼模板
*/
package com.publish.jxc.charpter9;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
* @author Administrator
*
* TODO 要更改此生成的類型注釋的模板,請(qǐng)轉(zhuǎn)至
* 窗口 - 首選項(xiàng) - Java - 代碼樣式 - 代碼模板
*/
public class JobXMLAction extends BaseXMLAction {
public void readXMLFile(String fileName)
{
array = xmlManager.readJobXML(fileName);
}
//////////////////////實(shí)現(xiàn)父類的抽象方法/////////////////////////////////////
public void loadXMLFile(HttpServletRequest req,
HttpServletResponse res, String fileName)
{
String companyId = req.getParameter("companyId");
if (companyId==null || companyId.equals(""))
{
Utility.forwardToErrorPage(req, res);
}
fileName += "CompanyJobs" + companyId + ".xml";
readXMLFile(fileName);
HttpSession session = req.getSession();
String companyName = (String)req.getParameter("companyName");
session.setAttribute("companyName", (String)req.getParameter("companyName"));
session.setAttribute("showList", array);
}
public void newXMLNode(HttpServletRequest req,
HttpServletResponse res, String fileName)
{
}
public void updateXMLNode(HttpServletRequest req,
HttpServletResponse res, String fileName)
{
}
public void deleteXMLNode(HttpServletRequest req,
HttpServletResponse res, String fileName)
{
}
/////////////////////////////////////////////////////////////////////////////////
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -