Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 221685
Collapse All | Expand All

(-)web/org/eclipse/jst/j2ee/internal/web/operations/NewFilterClassDataModelProvider.java (-2 / +2 lines)
Lines 322-328 Link Here
322
			}
322
			}
323
			// If the filter name already exists, throw an error
323
			// If the filter name already exists, throw an error
324
			if (exists) {
324
			if (exists) {
325
				String msg = WebMessages.getResourceString(WebMessages.ERR_SERVLET_DISPLAY_NAME_EXIST, new String[]{prop});
325
				String msg = WebMessages.getResourceString(WebMessages.ERR_FILTER_NAME_EXIST, new String[]{prop});
326
				return WTPCommonPlugin.createErrorStatus(msg);
326
				return WTPCommonPlugin.createErrorStatus(msg);
327
			}			
327
			}			
328
		} else if (mObj instanceof org.eclipse.jst.javaee.web.WebApp) {
328
		} else if (mObj instanceof org.eclipse.jst.javaee.web.WebApp) {
Lines 340-346 Link Here
340
			}
340
			}
341
			// If the filter name already exists, throw an error
341
			// If the filter name already exists, throw an error
342
			if (exists) {
342
			if (exists) {
343
				String msg = WebMessages.getResourceString(WebMessages.ERR_SERVLET_DISPLAY_NAME_EXIST, new String[] {prop});
343
				String msg = WebMessages.getResourceString(WebMessages.ERR_FILTER_NAME_EXIST, new String[] {prop});
344
				return WTPCommonPlugin.createErrorStatus(msg);
344
				return WTPCommonPlugin.createErrorStatus(msg);
345
			}			
345
			}			
346
		}
346
		}
(-)web/org/eclipse/jst/j2ee/internal/web/operations/NewServletClassDataModelProvider.java (-2 / +2 lines)
Lines 498-504 Link Here
498
			}
498
			}
499
			// If the servlet name already exists, throw an error
499
			// If the servlet name already exists, throw an error
500
			if (exists) {
500
			if (exists) {
501
				String msg = WebMessages.getResourceString(WebMessages.ERR_SERVLET_DISPLAY_NAME_EXIST, new String[]{prop});
501
				String msg = WebMessages.getResourceString(WebMessages.ERR_SERVLET_NAME_EXIST, new String[]{prop});
502
				return WTPCommonPlugin.createErrorStatus(msg);
502
				return WTPCommonPlugin.createErrorStatus(msg);
503
			}			
503
			}			
504
		} else if (mObj instanceof org.eclipse.jst.javaee.web.WebApp) {
504
		} else if (mObj instanceof org.eclipse.jst.javaee.web.WebApp) {
Lines 516-522 Link Here
516
			}
516
			}
517
			// If the servlet name already exists, throw an error
517
			// If the servlet name already exists, throw an error
518
			if (exists) {
518
			if (exists) {
519
				String msg = WebMessages.getResourceString(WebMessages.ERR_SERVLET_DISPLAY_NAME_EXIST, new String[]{prop});
519
				String msg = WebMessages.getResourceString(WebMessages.ERR_SERVLET_NAME_EXIST, new String[]{prop});
520
				return WTPCommonPlugin.createErrorStatus(msg);
520
				return WTPCommonPlugin.createErrorStatus(msg);
521
			}			
521
			}			
522
		}
522
		}
(-)web/org/eclipse/jst/j2ee/internal/web/operations/WebMessages.java (-1 / +1 lines)
Lines 66-72 Link Here
66
	public static String ERR_SERVLET_ROLE_LINK_EMPTY;
66
	public static String ERR_SERVLET_ROLE_LINK_EMPTY;
67
	public static String ERR_SERVLET_INTERFACE;
67
	public static String ERR_SERVLET_INTERFACE;
68
68
69
	public static String ERR_FILTER_DISPLAY_NAME_EXIST;
69
	public static String ERR_FILTER_NAME_EXIST;
70
	public static String ERR_FILTER_CLASS_NAME_USED;
70
	public static String ERR_FILTER_CLASS_NAME_USED;
71
	public static String ERR_FILTER_CLASS_NAME_INVALID;
71
	public static String ERR_FILTER_CLASS_NAME_INVALID;
72
	public static String ERR_LISTENER_DISPLAY_NAME_EXIST;
72
	public static String ERR_LISTENER_DISPLAY_NAME_EXIST;
(-)property_files/web.properties (-1 / +1 lines)
Lines 33-39 Link Here
33
ERR_SERVLET_PARAMETER_VALUE_EMPTY=The servlet initialization parameter value cannot be empty.
33
ERR_SERVLET_PARAMETER_VALUE_EMPTY=The servlet initialization parameter value cannot be empty.
34
ERR_SERVLET_PARAMETER_VALUE_EXIST=The servlet initialization parameter value already exists.
34
ERR_SERVLET_PARAMETER_VALUE_EXIST=The servlet initialization parameter value already exists.
35
35
36
ERR_FILTER_DISPLAY_NAME_EXIST=The filter name already exists.
36
ERR_FILTER_NAME_EXIST=The filter name already exists.
37
ERR_FILTER_CLASS_NAME_USED=The class is already associated with other filter.
37
ERR_FILTER_CLASS_NAME_USED=The class is already associated with other filter.
38
ERR_FILTER_CLASS_NAME_INVALID=Cannot use Filter as the filter class name.
38
ERR_FILTER_CLASS_NAME_INVALID=Cannot use Filter as the filter class name.
39
39

Return to bug 221685