java - Struts 2 partial page submit and come to same page with retained values -


i working on struts 2 , have following scenario :-

(*) have 3 dropdowns in page , selecting values first 2 dropdowns, 3rd dropdown gets populated popup page, popup opens on click of button , value added in popup page gets inserted db , popup closes , parent action gets submitted , drop down(3rd ) gets populated values db , above dropdown values (1st , 2nd) stays, doing using hidden input fields each dropdown , passing value action on partial submit , populating form bean values request object in action class itself. so, correct approach?

(*) explain further 3rd dropdown has values , if needed popup opened , new value added should reflect in dropdown list.

your question not telling problem.

but far understood, can use ajax calls , use json sent through ajax populate fields in action class , use them in methods sent data server after applying logic , populate dropdowns after change.

for more specific answer, need clear in telling doubt


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -