반응형

Spring MVC Framework with Example

 

https://javabeat.net/introduction-to-spring-mvc-web-framework-web-tier/

 

Spring MVC Framework with Example

This article provides an introduction over the various components that are available in the Spring MVC for the Web Tier with Example and Sample Application

javabeat.net

  1. The Client requests for a Resource in the Web Application.
  2. The Spring Front Controller, which is implemented as a Servlet, will intercept the Request and then will try to find out the appropriate Handler Mappings.
  3. The Handle Mappings is used to map a request from the Client to its Controller object by browsing over the various Controllers defined in the Configuration file.
  4. With the help of Handler Adapters, the Dispatcher Servlet will dispatch the Request to the Controller.
  5. The Controller processes the Client Request and returns the Model and the View in the form of ModelAndView object back to the Front Controller.
  6. The Front Controller then tries to resolve the actual View (which may be Jsp, Velocity or Free marker) by consulting the View Resolver object.
  7. Then the selected View is rendered back to the Client.

Let us look into the various Core Components that make up the Spring Web Tier. Following are the components covered in the next subsequent sections.

 

 

반응형
반응형

JSTL, Function Tag의 이해

  • Functon 태그는 자주 사용하는 유틸 함수의 기능을 제공한다.
  • <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 선언을 해줘야 사용할 수 있다.

5.1 Function Tag 에서 지원하는 함수들

  • 아래 표는 Function Tag 에서 지원하는 함수들이다.

 

속성 설명
fn:contains(string, sbustring) string이 substring을 포함하면 return True
fn:containsIgnoreCase(string, sbustring) 대소문자 관계없이 string이 substring을 포함하면 return True
fn:endsWith(string, suffix) string이 suffix로 끝나면 return True
fn:escapeXml(string) stting에 XML과 HTML에서 특수문자(<,>,&,',")들이 있으면, XML엔티티 코드로 바꿔준뒤 문자열 반환
fn:indexOf(string, sbustring) string에서 substring이 처음으로 나타나는 인덱스 반환
fn:join(array, separator) array요소들을 separator를 구분자로 하여 연결해서 반환
fn:length(item) item이 배열이나 컬렉션이면 요소의 객수를 문자열이면 문자의 객수를 반환
fn:replace(string, before, after) string내에 있는 before 문자열을 after 문자열로 모두 변경해서 반환
fn:split(string, separator) string내의 문자열 separetor에 따라 나누어서 배열로 구성해서 반환
fn:startsWith(string, prefix) string이 prefix로 시작하면 return True
fn:substring(string, begin, end) string에서 begin인덱스에서 시작해서 end인덱스에 끝나는 부분의 문자열 반환
fn:substringAfter(string, sbustring) string에서 substring이 나타나는 이후의 문자열 반환
fn:substringBefore(string, sbustring) string에서 substring이 나타나는 이전의 문자열 반환
fn:toLowerCase(string) string을 모두 소문자로 바꿔 리턴
fn:toUpperCase(string) string을 모두 대문자로 바꿔 리턴
fn:trim(string) string앞뒤의 공백을 모두 제거하여 반환

 

 

 

출처 : http://wiki.gurubee.net/pages/viewpage.action?pageId=26740270

 

JSTL의 이해 및 실습 - 12.구루비 Dev 스터디 - 개발자, DBA가 함께 만들어가는 구루비 지식창고!

JSTL의 이해 및 실습 Added by 김정식, last edited by 김정식 on 9월 18, 2012  (view change) JSTL의 이해 및 활용 1. JSTL의 이해 http://tomcat.apache.org/taglibs/ JS

wiki.gurubee.net

.....

반응형

'프로그래밍 > JAVA' 카테고리의 다른 글

JSP Spring workflow  (0) 2019.04.24
eclipse(이클립스) 유용한 단축키  (0) 2019.04.23
주석, JSP, JAVA  (0) 2019.04.23
JSTL, Format Tag의 이해  (0) 2019.04.23
JSP 에서 ASP의 response.end 처럼 하기  (0) 2019.04.23

+ Recent posts