Fórum

Error with redirecting

khalid horri, modificado 11 Anos atrás.

Error with redirecting

New Member Postagens: 7 Data de Entrada: 01/11/10 Postagens Recentes
Hi,

I create a portlet to manager suppliers, So to implement this feature I create 3 jsp page
  • view.jsp : contains a list o suppliers with toolbar
  • edit_supplier.jsp : contains sections like the liferay liferay-ui:form-navigator
  • details.jsp : contains the form


When en error is occurred liferay is redirected to view.jsp than display errors in the edit_supplier.jsp

If any one have an idea to solve this problem, it will be great work
thumbnail
Tina Agrawal, modificado 11 Anos atrás.

RE: Error with redirecting (Resposta)

Expert Postagens: 297 Data de Entrada: 03/01/08 Postagens Recentes
Hi Khalid,

What I understand is you have a form in edit_supplier and in case of error in form you want to keep your user on edit_supplier.jsp itself.
One way of doing it is in case you have any errors you can set the jspPage parameter to edit_supplier.jsp.

Something like this -
response.setRenderParameter("jspPage","/html/supplier/edit_supplier.jsp ");

Regards,
Tina
khalid horri, modificado 11 Anos atrás.

RE: Error with redirecting

New Member Postagens: 7 Data de Entrada: 01/11/10 Postagens Recentes
Thank you it works