然后,我们需要创建web.xml文件。在这里,我们配置StimulsoftResource的servlet,检索内容,如* .js文件和图像文件,该StiWebDesignerActionServlet符合Java web designer,在操作StiWebViewerActionServlet符合Java的Web浏览器操作,并且还配置了JavaServer Faces的。
stimulsoftfaces/designer.xhtml60StimulsoftResourcecom.stimulsoft.web.servlet.StiWebResourceServletStimulsoftResource/stimulsoft_web_resource/*StimulsoftDesignerActioncom.stimulsoft.webdesigner.servlet.StiWebDesignerActionServletStimulsoftDesignerAction/stimulsoft_webdesigner_actionStimulsoftActioncom.stimulsoft.webviewer.servlet.StiWebViewerActionServletStimulsoftAction/stimulsoft_webviewer_actionFaces Servletjavax.faces.webapp.FacesServlet1Faces Servlet/faces/*State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2javax.faces.STATE_SAVING_METHODclientjavax.servlet.jsp.jstl.fmt.localizationContextresources.applicationcom.sun.faces.config.ConfigureListener
在下一步中,我们需要实现StiWebDesignerBean来填充报表数据并保存/加载报表模板。
public class StiWebDesignerBean {
StiWebDesignerOptions options;
String designerID = "StimulsoftWebDesigner";
/**
* @return the handler
*/
public StiWebDesigerHandler getHandler() {
StiWebDesigerHandler handler = new StiWebDesigerHandler() {
public StiReport getEditedReport(HttpServletRequest request) {
try {
String reportPath = request.getSession().getServletContext().getRealPath("/reports/Master-Detail.mrt");
String xmlPath = request.getSession().getServletContext().getRealPath("/data/Demo.xml");
String xsdPath = request.getSession().getServletContext().getRealPath("/data/Demo.xsd");
StiReport report = StiSerializeManager.deserializeReport(new File(reportPath));
report.getDictionary().getDatabases().add(new StiXmlDatabase("Demo", xsdPath, xmlPath));
report.getCustomFunctions().add(new StiCustomFunction() {
public Object invoke(List
1、网络上现成的资料
格式: sed -i "s/查找字段/替换字段/g" `grep 查找字段 -rl 路径`
linux sed 批量替换多个文件中的字符串
sed -i "s/oldstring/newstring/g" `grep oldstring -rl yourdir`
例如:替换/home下所有文件中的www.admi
对于AJAX应用(使用XMLHttpRequests)来说,向服务器发起请求的传统方式是:获取一个XMLHttpRequest对象的引用、发起请求、读取响应、检查状态码,最后处理服务端的响应。整个过程示例如下:
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange
Hive中的排序语法 2014.06.22 ORDER BY
hive中的ORDER BY语句和关系数据库中的sql语法相似。他会对查询结果做全局排序,这意味着所有的数据会传送到一个Reduce任务上,这样会导致在大数量的情况下,花费大量时间。
与数据库中 ORDER BY 的区别在于在hive.mapred.mode = strict模式下,必须指定 limit 否则执行会报错。
post-commit hook failed (exit code 1) with output:
svn: E155004: Working copy 'D:\xx\xxx' locked
svn: E200031: sqlite: attempt to write a readonly database
svn: E200031: sqlite: attempt to write a