process action called twice
Hi,
in my case whenever the form is submitted once from the JSP page , the process action is called and then doView is called both methods twice.
Im writing down the code im using
*****Process Action******
public class ApplicantProfile extends GenericPortlet {
private PortletContext pContext;
private String strJSPPath ="";
private String strJSPFile="";
public void init(PortletConfig config) throws PortletException
{
super.init(config);
pContext = config.getPortletContext();
}
protected void doView (RenderRequest request, RenderResponse response) throws PortletException, IOException
{
System.out.println("In doView");
strJSPPath=ResourceManager.getCommonCtsValue(IApplicationCommonConstants.APPLIC ANT_PROFILE_PATH);
response.setContentType(request.getResponseContentType());
strJSPFile = request.getPreferences().getValue("ApplicantProfile", "");
PortletRequestDispatcher dispatcher = pContext.getRequestDispatcher(strJSPPath+strJSPFile);
dispatcher.include(request, response);
}
public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException
{
System.out.println("In process Action");
}
}
In the JSP file im using the portlet:actionURL. so that it goes to process action first and then doView, but the problem is that after going to doView it agains goes to processAction and then doView. whereas normally it should do it once.

