samedi 24 mars 2018

how to set background image using spring mvc

Undefined attribute name (background).

<div class="col-md-5" background = "${img}/texture-bw.png">

${img} is working for images to display but it is not allowing to set it for background

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<spring:url var="css" value="/resources/css" />
<spring:url var="js" value="/resources/js" />
<spring:url var="img" value="/resources/images" />


<c:set var="contextRoot" value="${pageContext.request.contextPath}" />




Aucun commentaire:

Enregistrer un commentaire