Refactoring of Create Client/U_WebMenu in Posterita

This commit is contained in:
shameem_z 2007-10-29 12:47:24 +00:00
parent efb578d87e
commit adfa9e6453
3 changed files with 15 additions and 22 deletions

View File

@ -72,24 +72,7 @@ public class BaseDispatchAction extends DispatchAction
if (webSessionCtx == null) // Session Timeout
{
try
{
ApplicationManager.changeApplication(request, response);
Properties ctx = TmkJSPEnv.getCtx(request);
String forward = Env.getContext(ctx, UdiConstants.WEBPARAM6);
return mapping.findForward(forward);
}
catch(DefaultStoreException ex)
{
postGlobalError("error.store.default", ex.getMessage(), request);
return mapping.findForward(CHOOSE_APPLICATION);
}
catch(Exception ex)
{
return mapping.findForward(APPLICATION_ERROR);
}
return mapping.findForward(CHOOSE_APPLICATION);
}
else
return null;

View File

@ -245,7 +245,7 @@ public class BaseForm extends ActionForm
try
{
ActionErrors currErrors = populateProperty(vo,currKey, currValue, mode, valueMap);
ActionErrors currErrors = populateProperty(vo,currKey, currValue, mode, valueMap);
errors.add(currErrors);
}
@ -950,7 +950,7 @@ public class BaseForm extends ActionForm
keysToSkip.add("bean");
keysToSkip.add("properties");
keysToSkip.add("checkBoxLists");
keysToSkip.add("file");
// keysToSkip.add("file");
keysToSkip.add("minValue");
keysToSkip.add("maxValue");

View File

@ -354,6 +354,7 @@ public class DefaultForm extends BaseForm
protected String fieldName;
protected String applicationName;
protected String storeId;
protected String isWebstoreFeatured="false";
protected String isNotWebstoreFeatured;
protected String imageName;
@ -553,8 +554,6 @@ public class DefaultForm extends BaseForm
protected String birthdate;
protected String openDrawer="true";
public String getHistoryType()
{
return historyType;
@ -4667,6 +4666,17 @@ public String getUserDiscount() {
this.openDrawer = openDrawer;
}
public String getStoreId() {
return storeId;
}
public void setStoreId(String storeId) {
this.storeId = storeId;
}
}