Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 1 of 1

Thread: help taking code from java class put it in JSP page.

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question help taking code from java class put it in JSP page.

    hello,

    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.


    struts:

    <action path="/getCrystalReport" type="com.struts.report.crystal.GetCrys talReportAction">
    <forward name="success" path="/CrystalReportViewer.jsp"/>
    <forward name="failure" path="/do/modalMessagePage" />
    </action>


    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.
    Attached Files Attached Files
    Last edited by anavagomez; April 26th, 2012 at 10:59 AM.


Similar Threads

  1. We use to run code to get a few thousand Google Page Ranks each day.
    By petersonlee.cc@gmail.com in forum Java Theory & Questions
    Replies: 0
    Last Post: April 20th, 2012, 11:18 AM
  2. [SOLVED] Taking a square root in Java, answer appears as 0.0. Why?
    By r19ecua in forum What's Wrong With My Code?
    Replies: 7
    Last Post: January 30th, 2012, 11:47 AM
  3. Beauty School student taking JAVA? doesn't work out so well, NEED HELP!
    By tmihans in forum What's Wrong With My Code?
    Replies: 2
    Last Post: October 20th, 2011, 07:58 AM
  4. Replies: 8
    Last Post: August 9th, 2011, 08:25 PM
  5. Retrieving arrays of java class inside C++ code
    By sattu in forum Java Native Interface
    Replies: 2
    Last Post: May 20th, 2011, 02:15 AM