jsp - sendRedirect not working in liferay 6.1 CE installed on windows server -
i new liferay. using liferay 6.1 ce. have requirement navigate first.jsp
page second.jsp
page. in first.jsp
page, there <form>
, values of form's input fields should passed on second.jsp
. having processaction
first.jsp
, on submitting parameters, here action method:
public void saveproject(actionrequest actionrequest, actionresponse actionresponse) throws ioexception, portletexception { system.out.println("saving data"); string prjtitle = paramutil.getstring(actionrequest, "title"); portleturl redirecturl = null; string redirectjsp = "/html/abc/second.jsp"; string portletname = (string)actionrequest.getattribute(webkeys.portlet_id); themedisplay themedisplay = (themedisplay)actionrequest.getattribute (webkeys.theme_display); redirecturl = portleturlfactoryutil.create(portalutil.gethttpservletrequest (actionrequest),portletname, themedisplay.getlayout().getplid(), portletrequest.render_phase); redirecturl.setparameter("title", prjtitle); redirecturl.setparameter("jsppage", redirectjsp); actionresponse.sendredirect(redirecturl.tostring()); }
this works on windows 7 machine. trying on windows server machine, not working. have tried setrenderparameter
, not working. please help, provide alternative ways working.
Comments
Post a Comment