먼저, 여기에 (http://code.google.com/p/struts2-examples/downloads/list와 Hello_World_Struts2_Mvn.zip을 다운로드했습니다.) 그 예제를 실행합니다.JFreeChart와 함께 Struts 2를 사용하는 방법?
는 그 후, 나는 내가 평민 - 랭 - 2.5.jar, jcommon-1.0.16.jar 및 JFreeChart가-1.0.13.jar 및 I에 대한 종속성을 추가 여기 (http://struts.apache.org/2.x/docs/jfreechart-plugin.html을) 갔다 JFreeChart를가 작동하는 방식을 볼 수 code.google.com에서 다운로드 한 예를 수정,하지만 난이 오류가 나타납니다 struts.xml에서 라인 (36)에
Unable to load configuration. - action - file:/C:/.../untitled_war_exploded/WEB-INF/classes/struts.xml:34:67
Caused by: Error building results for action createChart in namespace - action - file:/C:/.../out/artifacts/untitled_war_exploded/WEB-INF/classes/struts.xml:34:67
Caused by: There is no result type defined for type 'chart' mapped with name 'success'. Did you mean 'chart'? - result - file:/C:/.../out/artifacts/untitled_war_exploded/WEB-INF/classes/struts.xml:36:49
것은 struts2 웹 사이트에서이 코드 (코드입니다) :
<action name="viewModerationChart" class="myapp.actions.ViewModerationChartAction">
<result name="success" type="chart">
<param name="width">400</param>
<param name="height">300</param>
</result>
</action>
내가 뭘 잘못하고있어?
struts-jfreechart 플러그인을 사용하지 않고 struts2에서 jfreechart를 생성 할 수있는 방법이 있습니까? – CodeHunter