help taking code from java class put it in JSP page.
I am a java beginner and i have a task assigned that I need help with.
I am testing the latest Crystal Reports for Java component.
This is what I understand so far, the struts-config.xml file contains the actions of what class to call and what action to follow, either success or failure.
<action path="/getCrystalReport" type="com.struts.report.crystal.GetCrys talReportAction">
<forward name="success" path="/CrystalReportViewer.jsp"/>
<forward name="failure" path="/do/modalMessagePage" />
Then the Java class "GetCrystalReportAction" contains the functions that will be executed to get to the page, and return the value to be passed to the action on the struts file.
I am aware I maight be violating the standards of MVC, but I would like to test something.
I need to take the code that gets the report path in the java class (I think starting in line 92) and place it in the JSP page CrystalReportViewer.jsp
This is just to test if I can get to the page and display the reports.
I am including the code for the java class, and the JSP page.
I hope someone can spare some time and lend me a hand. I have been trying to figure this out and have gotten nowhere.
Thank you very much.