How to combine servlet with java portlet to handle requests from portlet? -


there database server , portal installed portlet. portlet represents view, divied 2 parts. @ left side there navigation tree. when user clicks on tree nodes gets information database server , portlet should display information on right side of view.

on assumption portlet view page contains javascript code, when user clicks on tree node, portlet sends request servlet, gets servlet response, parses , updates view.

portlet view layout displayed below:

if servlet based application, implement javascript calls page server, return json, parse on page , update page representation.

but java portlets bit different , did not find way how that.

and question there way package servlet portlet in 1 *.war file , implement requests portlet servlet. portlet sends requests servlet, servlet accesses database server, , after sends results portlet.

if answer "yes" - how can that. because tried package servlet portlet, such portlet not work.

if answer "no" - best approach implement "data query->response->update view" sequence in portlet?

thank you.

glad have answer looking think may simpler , cleaner use serveresource method portlet api this. 1 of main reasons serveresource method added in portlet 2.0 spec make ajax functionality simpler in portlets.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -