Q

Avoid directly calling a JCo connection from a JSP

Want to present direct JCo connection from a JSP? Use this code to call an RFC with this advice from SAP/ Java development expert Austin Sincock.

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.
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 last published in December 2005

Dig Deeper on SAP Java and J2EE

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close