掲示板

Error with redirecting

11年前 に khalid horri によって更新されました。

Error with redirecting

New Member 投稿: 7 参加年月日: 10/11/01 最新の投稿
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
11年前 に Tina Agrawal によって更新されました。

RE: Error with redirecting (回答)

Expert 投稿: 297 参加年月日: 08/01/03 最新の投稿
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
11年前 に khalid horri によって更新されました。

RE: Error with redirecting

New Member 投稿: 7 参加年月日: 10/11/01 最新の投稿
Thank you it works