Open jsp file in a popup (and execute a method before opening it) from a jsp file

346 views Asked by At

Since I'm not very familiar with struts 1.2, I'm coming to you for help : in the picture I enclosed, you can see a page whose purpose is to update information about a specific person. Each person can be identified with an unique id (the birthdate is included in it). With this id, I can call a web service. In return, I get personal information of the person : name, first name, birthdate, gender, address, ...

Sometimes the information we have can be outdated (for example, the person moved out and lives elsewhere) and that's why we have the button you see in the middle of the picture ("Synchroniser avec le ..." which is French for "Synchronize with the ... ").

When I click on the button, I'd like a popup to appear with the latest information about the person (So that means before the popup appears, I call the webservice with the id as the parameter.). Then, in this popup I can choose whether to update the information or cancel the operation. Either way, the popup closes and I get back on the page you see in the picture. How can I do that ?

Do I have to add a new action in struts-config.xml ?

Thanks in advance

P.S : Unfortunately, I'm not sure how much code I can show you (confidentiality stuff)

Worker information update

0

There are 0 answers