Punter Vicky
Punter Vicky

Reputation: 16992

Fetching information from another UI

There is a UI application which provided multiple functionality out of which one is downloading customer info. Only authenticated users are allowed to access the application functionlity.

I am building a UI using JSF which needs to pull the customer info from the UI that I had mentioned above. A button download customers will be present in my UI. On clicking download customers , my UI has to call the other UI , enter user id and password (configured in property file in my UI) and then send approperiate request to download the customer information and finally display that information to the user.

UI Application 1 -

(1) Click on Get Customer Info Menu Link - triggers the below listed activities in background

UI Application 2 - (a) Login (b) Click on Customer Info Menu Link (c) Click on downlod customer data button in customer info screen (2) Display customer info to user.

Activities (a) , (b) and (c) have to done in the background transparent to the user and info from (c) must be displayed to user.

Is this possible? Is there any framwork / tools which would make the task of pulling info from another UI easier.

Regards,

Upvotes: 1

Views: 70

Answers (2)

GingerHead
GingerHead

Reputation: 8230

If you have username and password saved in a property file:

You can easily do the following:

you just call the servlet by assigning the action and onsubmit url to that servlet URL adding the username and password and any other properties. And when on response you just neatly present it to the user in your UI.

Upvotes: 0

srini.venigalla
srini.venigalla

Reputation: 5145

Do not view them as two different "UI"s. They are two different systems. What you are trying to achieve is system level integration. Most systems support some kind of "programmatic" service layer. First explore if it has one. If it does not, explore if you could build and use. If that is not possible, check if you can bring both systems under the same login, namely, Single Sign-On applications.

Upvotes: 1

Related Questions