Interface
package MVC; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public interface Impl { public String boardImpl(HttpServletRequest req, HttpServletResponse res); }
Class
package MVC; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class Listlmpl implements Impl { @Override public String boardImpl(HttpServletRequest req, HttpServletResponse res) { return "test.jsp"; } }
ListImpl을 호출을 했다면 test.jsp로 이동합니다.