Implementing custom dropdown values in a JSP
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.
Thanks,
John
When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.
Hannah Smalltree, Editorial Director
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
-
People who read this also read...
This was first published in August 2004