2017-09-26 1 views
0
<!doctype html> 
<head> 
    <meta charset="utf-8"> 
    <title>Urban Wolf - Boutique Brand Management Firm</title> 
    <meta http-equiv="X-UA-Compatible" content="IE=Edge"> 
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
    <meta name="theme-color" content="#fff"> 
    <meta name="description" content="Urban Wolf, the Palm Beach based boutique brand management firm with specializations in brand development, branding, and business consulting. No one wants to be the sheep"> 
    <link rel="shortcut icon" href="Sheep/img/favicon-client2.png" type="image/png"> 
    <link rel="icon" href="Sheep/img/favicon-client2.png" type="image/png"> 
    <meta name="format-detection" content="telephone=no"> 
    <link rel="stylesheet" media="all" href="Sheep/css/app.css"> 
</head> 

<body> 
    <p class="form__placehold">Full Name</p> <input class="form__input" name="name" type="text" pattern="^[а-яА-ЯёЁa-zA-Z0-9\s]+$" required> 
    <p class="form__placehold">Email</p> <input class="form__input" type="email" name="_replyto" pattern="/^[\w]{1}[\w-\.]*@[\w-]+\.[a-z]{2,4}$/i" required> <button class="form__btn" type="submit">Send Now</button> </form> 
    </div> 
    </div> 
    </div> 
    <!--end map-block--> 
    <footer class="footer"> 
    <div class="container"> 
    <a class="footer__logo" href="#"> <svg class="icon icon-logo"><use xlink:href="Sheep/img/sprite.svg#icon-logo"></use></svg> </a> 
    <p class="footer__copyright"> <span>&copy;</span> 2017 URBAN WOLF MANAGEMENT LLC. ALL RIGHTS RESERVED </p> 
    </div> 
    </footer> 
    </div> 
</body> 
</html> 

어떻게 스프링 태그를 HTML 문서에 연결할 수 있습니까? 또는 Spring에서 작업 할 경우 JSP 페이지 만 사용해야합니다.html에서 스프링 태그 사용

답변

0

스프링 태그/스프링 폼을 사용하려면 JSP 문서에서만 작업해야합니다. 필요한 경우 단일 JSP 페이지에서 Spring 양식 태그와 HTML 양식 태그를 혼합 할 수 있습니다.

0

당신은 당신이 JSP와 함께 작동하지 않는 경우가있을 것이다 당신이 Thymeleaf

0

으로 시도 할 수 있습니다 당신이 더 많은 정보를 원하시면 here을 찾을 수 있습니다 ...이를 위해 JSP를 사용하는 스프링 태그를 포함해야합니다. 스프링 태그를 포함하려면 JSP 파일에 다음 정의 정보가 있어야합니다.

<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 

JSTL 태그를 사용하는 것이 좋습니다. 그러나 전체 스프링 태그를 시작하려면 GTHUB 저장소의 봄 프레임 워크 샘플 인 pet-clinic으로 재생할 수 있습니다. 건배.

0

html에서 Spring 태그를 사용하려면 JSP를 사용해야합니다. 페이지가 HTML-ish를 더 보이게하려면 thymeleaf을 사용할 수 있습니다. thymeleaf here을 사용할 때의 차이점/장점을 찾을 수 있습니다.