Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
khalid horri
Error with redirecting
October 1, 2012 2:34 AM
Answer

khalid horri

Rank: New Member

Posts: 7

Join Date: November 1, 2010

Recent Posts

Hi,

I create a portlet to manager suppliers, So to implement this feature I create 3 jsp page
  1. view.jsp : contains a list o suppliers with toolbar
  2. edit_supplier.jsp : contains sections like the liferay liferay-ui:form-navigator
  3. 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
Tina Agrawal
RE: Error with redirecting
October 1, 2012 3:24 AM
Answer

Tina Agrawal

Rank: Expert

Posts: 294

Join Date: January 2, 2008

Recent Posts

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
RE: Error with redirecting
October 1, 2012 5:03 AM
Answer

khalid horri

Rank: New Member

Posts: 7

Join Date: November 1, 2010

Recent Posts

Thank you it works