Vote count:
0
The structure looks like -
projectroot -- src --> main-->java-->com-->controllers etc
-- src --> resourcess--> css-->.css
-- src --> resourcess--> images-->.jpg etc
-- src --> webapp --> mvc-dispatcher-servlet.xml
-- src --> webapp --> pages --> .jsp pages
Top of the page contains -
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@taglib prefix="c" uri="http://ift.tt/QfKAz6"%>
<!doctype html>
<html>
<head>
I am using following in head section of page -
<link
href="http://ift.tt/14Tc4tE"
rel="stylesheet">
<link
href="http://ift.tt/1CSZshK"
rel="stylesheet">
<link href="<c:url value="/resources/css/style.css" />" rel="stylesheet">
Images like -
<img src="/resources/images/logo2.png" height=20;></a>
There is no error in console as such, but I don't see page being displayed properly. Any suggestions as why images and css aren't getting uploaded? Isn't mvc-dispatcher mapping for resources not correct as per my project directory structure? Thanks for any help on this.
asked 1 min ago
Images and css aren't getting uploaded in spring mvc JSP page
Aucun commentaire:
Enregistrer un commentaire