📄 actionlisting.java
字号:
/* * WebWork, Web Application Framework * * Distributable under Apache license. * See terms of license at opensource.org */package webwork.examples;import org.jdom.input.SAXBuilder;import org.jdom.Document;import webwork.action.ActionSupport;import webwork.util.ClassLoaderUtils;import javax.xml.parsers.DocumentBuilderFactory;import java.net.URL;/** * Read list of actions and view mappings * * @author Rickard Öberg (rickard@middleware-company.comd) * @version $Revision: 1.6 $ */public class ActionListing extends ActionSupport{ Document document; public Document getDocument() { return document; } // Action implementation ----------------------------------------- protected String doExecute() throws Exception { URL actions = ClassLoaderUtils.getResource("actions.xml", ActionListing.class); SAXBuilder builder = new SAXBuilder(); document = builder.build(actions); return SUCCESS; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -