Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to call JSP from a java class?

srhcanFeb 28 2013 — edited Mar 6 2013
I have a java class Enrollment which has a method enroll() which returns a String.
public class Enrollment {
  public String enroll() { ...
  }
}
I have another java class EnrollmentWF which has a method processEnrollment(); this method instantiates Enrollment class, call its enrollEmp method and get the return value as a string. After that I want it to call a JSP Test.jsp passing the string return value to the JSP. How can I do that?
public class EnrollmentWF {
  public void processEnrollment() {
    Enrollment enrollment = new Enrollment();
    String returnValue = enrollment.enroll();
    // now need to call Test.jsp 
  }
}
Thanks

Edited by: srhcan on Feb 28, 2013 8:00 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 3 2013
Added on Feb 28 2013
5 comments
14,532 views