// Path: 1-hi-utils/src/main/java/com/helpinput/core/LoggerBase.java
// public class LoggerBase {
// 	public static final Logger logger =LoggerFactory.getLogger(LoggerBase.class);
// }
// 
// Path: 3-hi-spring-Dynamic-mvc-demo/WebRoot/WEB-INF/script/com/script/manager/TeacherManager.java
// public interface TeacherManager {
// 
// 	public Teacher getTeacher(String id);
// 	
// 	public List<Teacher> getAllTeacher();
// 	
// 	public void addTeacher(Teacher teacher);
// 	
// 	public boolean delTeacher(String id);
// 	
// 	public boolean updateTeacher(Teacher teacher);
// }
// 
// Path: 3-hi-spring-Dynamic-mvc-demo/WebRoot/WEB-INF/script/com/script/propertyEditors/DatePropertyEditor.java
// @Prototype
// @TargetType(Date.class)
// @Properties({ @Property(name = "format", value = "yyyy-MM-dd") })
// // or @Property(name = "format", value = "yyyy-MM-dd") when has 1 setter
// public class DatePropertyEditor extends PropertyEditorSupport {
// 	static Logger logger = LoggerBase.logger;
// 	
// 	private String format = "yyyy-MM-dd";
// 	
// 	public void setFormat(String format) {
// 		this.format = format;
// 		
// 	}
// 	
// 	public void setAsText(String text) throws IllegalArgumentException {
// 		if (Utils.hasLength(text) && Utils.hasLength(format)) {
// 			SimpleDateFormat sdf = new SimpleDateFormat(format);
// 			try {
// 				Date date = sdf.parse(text);
// 				this.setValue(date);
// 				return;
// 			}
// 			catch (ParseException e) {
// 				throw new IllegalArgumentException("data format error!");
// 			}
// 		}
// 		setValue(null);
// 	}
// 	
// 	@Override
// 	public String getAsText() {
// 		if (Utils.hasLength(format)) {
// 			Object value = getValue();
// 			if (value != null) {
// 				SimpleDateFormat sdf = new SimpleDateFormat(format);
// 				return sdf.format((Date) value);
// 			}
// 		}
// 		return "";
// 	}
// 	
// }


import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.annotation.Resource;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.RequestMapping;
import com.helpinput.core.LoggerBase;
import com.script.entity.Teacher;
import com.script.manager.TeacherManager;
import com.script.propertyEditors.DatePropertyEditor;
package com.script.web;





@Controller
@RequestMapping("/teacher")
@Scope("request")
public class TeacherController {
// Path: 1-hi-utils/src/main/java/com/helpinput/core/LoggerBase.java
// public class LoggerBase {
// 	public static final Logger logger =LoggerFactory.getLogger(LoggerBase.class);
// }
// 
// Path: 3-hi-spring-Dynamic-mvc-demo/WebRoot/WEB-INF/script/com/script/manager/TeacherManager.java
// public interface TeacherManager {
// 
// 	public Teacher getTeacher(String id);
// 	
// 	public List<Teacher> getAllTeacher();
// 	
// 	public void addTeacher(Teacher teacher);
// 	
// 	public boolean delTeacher(String id);
// 	
// 	public boolean updateTeacher(Teacher teacher);
// }
// 
// Path: 3-hi-spring-Dynamic-mvc-demo/WebRoot/WEB-INF/script/com/script/propertyEditors/DatePropertyEditor.java
// @Prototype
// @TargetType(Date.class)
// @Properties({ @Property(name = "format", value = "yyyy-MM-dd") })
// // or @Property(name = "format", value = "yyyy-MM-dd") when has 1 setter
// public class DatePropertyEditor extends PropertyEditorSupport {
// 	static Logger logger = LoggerBase.logger;
// 	
// 	private String format = "yyyy-MM-dd";
// 	
// 	public void setFormat(String format) {
// 		this.format = format;
// 		
// 	}
// 	
// 	public void setAsText(String text) throws IllegalArgumentException {
// 		if (Utils.hasLength(text) && Utils.hasLength(format)) {
// 			SimpleDateFormat sdf = new SimpleDateFormat(format);
// 			try {
// 				Date date = sdf.parse(text);
// 				this.setValue(date);
// 				return;
// 			}
// 			catch (ParseException e) {
// 				throw new IllegalArgumentException("data format error!");
// 			}
// 		}
// 		setValue(null);
// 	}
// 	
// 	@Override
// 	public String getAsText() {
// 		if (Utils.hasLength(format)) {
// 			Object value = getValue();
// 			if (value != null) {
// 				SimpleDateFormat sdf = new SimpleDateFormat(format);
// 				return sdf.format((Date) value);
// 			}
// 		}
// 		return "";
// 	}
// 	
// }


// Path: 3-hi-spring-Dynamic-mvc-demo/WebRoot/WEB-INF/script/com/script/web/TeacherController.java
import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.annotation.Resource;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.RequestMapping;
import com.helpinput.core.LoggerBase;
import com.script.entity.Teacher;
import com.script.manager.TeacherManager;
import com.script.propertyEditors.DatePropertyEditor;

package com.script.web;





@Controller
@RequestMapping("/teacher")
@Scope("request")
public class TeacherController {
	static Logger logger = LoggerBase.logger;