|
| Say i have two basic portlets placed in WebContent like this
jsp1
html
CreateEmployeePortlet.jsp
jsp2
html
SearchEmployeePortlet.jsp
While searching for an employee i am in 'SearchEmployeePortlet.jsp' and i get the results list again back in this jsp.Now i want to update a particular record out of the list of employees displayed.User selects a particular record and the control goes to
the 'SearchEmployeePortlet' class.
In this class there are two callback methods implemented actionPerformed() and doView(). From the doView i redirect the page to 'CreateEmployeePortlet.jsp'. This is because i wish to display the data to be edited using this jsp. Here user makes the change
s to the relevant fields and submits.Here on submit control goes to 'SearchEmployeePortlet' class instead of the CreateEmployeePortlet class.
Firstly is this approach ok. This is how we normally do in a jsp framework, but problem i am facing is how the control is transferred from a jsp to a different portlet class other than its own.
|
|