}
else
{
String tab =
rundata.getParameters().getString(TAB_PARAMETER);
JetspeedLink link =
JetspeedLinkFactory.getInstance(rundata);
DynamicURI duri =
link
.getPaneByName(PORTLET_UPDATE_PANE)
.addPathInfo(
SecurityConstants.PARAM_MODE,
SecurityConstants.PARAM_MODE_UPDATE)
.addPathInfo(
SecurityConstants.PARAM_MSGID,
SecurityConstants.MID_MISSING_PARAMETER)
.addQueryData(TAB_PARAMETER, tab)
.addQueryData(PORTLET_NAME, portletName);
JetspeedLinkFactory.putInstance(link);
rundata.setRedirectURI(duri.toString());
resetForm(rundata);
}
}
else
{
String tab = rundata.getParameters().getString(TAB_PARAMETER);
JetspeedLink link = JetspeedLinkFactory.getInstance(rundata);
DynamicURI duri =
link
.getPaneByName(PORTLET_UPDATE_PANE)
.addPathInfo(
SecurityConstants.PARAM_MODE,
SecurityConstants.PARAM_MODE_UPDATE)
.addPathInfo(
SecurityConstants.PARAM_MSGID,
SecurityConstants.MID_INVALID_ENTITY_NAME)
.addQueryData(TAB_PARAMETER, tab);
JetspeedLinkFactory.putInstance(link);
rundata.setRedirectURI(duri.toString());
resetForm(rundata);
}
}
catch (Exception e)
{
String tab = rundata.getParameters().getString(TAB_PARAMETER);
JetspeedLink link = JetspeedLinkFactory.getInstance(rundata);
DynamicURI duri =
link
.getPaneByName(PORTLET_UPDATE_PANE)
.addPathInfo(
SecurityConstants.PARAM_MODE,
SecurityConstants.PARAM_MODE_UPDATE)
.addPathInfo(