milooy / jwp-final

NEXT Java Web Programming Basic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

  • 8080접근 web.xml에선 welcome-file로 index.jsp보냄
  • index.jsp에서 “/list.next”로 리다이렉트됨
  • web.xml에선 *.next는 FrontController서블릿으로 보냄
  • RequestMapping을 선언하고 거기에 sevletContext를 넣어둠
  • frontControllerservlet에서 redirect로 온것 알아채고
  • url을 urlExceptParameter로 잘라 알아내서
  • 그 잘라낸 url 의 이름과 같은 파일로 req, resp와 함께 보낸다(list.jsp)
  • list.jsp에 가서 listController에서 보낸 question을 받아
  • 각각의 questions들의 Question.java라는 모델에서 questionId, createdDate, writer를 받아와서 보여줌.
  • listController에선 questions를 보냄
  • showController에선 question, answers 보냄

About

NEXT Java Web Programming Basic


Languages

Language:Java 56.2%Language:CSS 40.0%Language:JavaScript 3.6%Language:Shell 0.2%