Ask the Expert

Avoid directly calling a JCo connection from a JSP

We are using SAP EP6 (NetWeaver). We are using ASP code to call an RFC in SAP. It was working fine, but for some reason, we are planning to use JSP code for the same. I created sample JSP code just for testing -- it's working for now. I also made some standalone Java programs to call RFC -- which is also working. I'd like to know what sample JSP code will call an RFC.

    Requires Free Membership to View

Typically, you don't want a JSP invoking a JCo connection directly. I would recommend invoking a standard Java object that contains your JCo code from a JSP. This way you don't have a lot on non-HTML/JSP scriptlet code in your JavaServer Page.

However, check out my article Build a Java Web Application for SAP Right Now to see how to call a JCo from inside a JSP.

This was first published in December 2005

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: