re: jBPM開發入門指南(3) 風人園 2007-01-16 13:58
問一個問題,我配置完后進行部署,但是log提示找不到database 'jbpm'
我用mysql作數據庫,需要手動創建database嗎?還是程序會自動生成數據庫中的相關數據庫和表
re: 為Struts 2.0做好準備 風人園 2006-11-01 17:42
我按照你的步驟,但是老是提示說下面的資源不可用,這是怎么回事?
The requested resource (/strutstest/HelloWorld) is not available.
strutstest是項目名
再請問一個問題,除了 pie可以,其他的可以嗎?
我用的是jfreechart 1.01,我通過設定
plot.setURLGenerator(new StandardPieURLGenerator("barview.do?from=xxx"));
可以實現鏈接,但是,其他的圖好像沒有這個方法,只有piePlot才有這個方法
re: 為Struts 2.0做好準備 風人園 2006-10-27 14:36
請問一個問題,我按照你的配置,他出現如下錯誤,在
classpath下加了 struts.properties這個文件還是說沒有找到
Could not find or error in struts.properties
java.lang.IllegalStateException: struts.properties missing
請問有遇到這種問題嗎 ?
對不起,你那里面沒有源代碼啊 ,只有發布的程序,你再看一下
現有就這個問題了,我在jsp或者 用javabean調用都可以實現鏈接 ,但是在action中就沒有辦法把map的資料傳到頁面
下面是我action的代碼
public ActionForward list(ActionMapping actionMapping,
ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) throws Exception {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
HttpSession session = request.getSession();
DefaultPieDataset data = new DefaultPieDataset();
data.setValue("高中以下", 370);
data.setValue("高中", 1530);
data.setValue("大專", 5700);
data.setValue("本科", 8280);
data.setValue("碩士", 4420);
data.setValue("博士", 80);
JFreeChart chart = ChartFactory.createPieChart3D("月統計比例圖", data, true, true, true);
PiePlot3D plot = (PiePlot3D)chart.getPlot();
plot.setURLGenerator(new StandardPieURLGenerator("barview.jsp"));
chart.setBackgroundPaint(java.awt.Color.white);
plot.setToolTipGenerator(new StandardPieToolTipGenerator());
StandardEntityCollection sec = new StandardEntityCollection();
ChartRenderingInfo info = new ChartRenderingInfo(sec);
String filename = ServletUtilities.saveChartAsJPEG(chart, 500, 300, info, session);
//FileOutputStream fos_jpg = new FileOutputStream("d:\\fruit.jpg");
//ChartUtilities.writeChartAsJPEG(out,100, chart, 500, 300, info);
ChartUtilities.writeImageMap(out, "map0", info, false);
String graphURL = request.getContextPath() + "/servlet/DisplayChart?filename=" + filename;
request.setAttribute("filename", filename);
request.setAttribute("graphURL", graphURL);
return actionMapping.findForward("list");
}
能不能把你的有關map部分的演示源代碼發給我,map部分一直沒有測試成功。謝謝
wuxufeng@ivo.com.cn