Q
Problem solve Get help with specific problems with your technologies, process and projects.

Implementing custom dropdown values in a JSP

How can one go about creating custom dropdown values? Java expert Austin Sincock offers suggestions.

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
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.

This was last published in August 2004

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