Well my problem is trivial but I am not able to decide on exact implementation, as I am new to using JCo.
Well I have a JSP page that has radio buttons. User selects one of them and the page should automatically reload with an extra table below the radio buttons.
This new table is obtained after I perform a backend connection with JCo and retrieve some data values and display them on JSP page.
My problem is how should I implement the process of retrieving the data values and placing them as dropdown menu in table 2 on the same JSP page.
Building a helpful Web page with dynamic information from SAP often requires you to provide preselected values, such as that from a dropdown list. Depending on the user interface framework you are using to build your application, you would likely encapsulate this help functionality within an external Java class. The classic example is that of the MVC pattern as implemented by the Apache Struts framework (http://jakarta.apache.org). In this framework, you would build an Action class that provides the specific SAP RFC call required to populate the dropdown. When the user initiates a selection in the JSP that changes the dropdown, the JSP would call the Struts ActionServlet to transparently execute the Action class that contains the logic to call SAP. My book, "Enterprise Java for SAP," contains specific examples of how to use the Struts framework in conjunction with SAP JCo.
Dig Deeper on SAP Java and J2EE
Related Q&A from Austin Sincock
How to provide an SAP R/3 4.5B application server with a Web service interfacecontinue reading
A reader wants to know how to consume a Web service from an SAP 4.6c R/3 application server.continue reading
Are you a Java/J2EE developer interested in SAP? This expert tip lists the most relevant SAP modules and technologies for you.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.