Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9139513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:23:51+00:00 2026-06-17T09:23:51+00:00

I am new to Java and Spring. I encountered the error trying to apply

  • 0

I am new to Java and Spring. I encountered the error trying to apply CSS styles.
Here is my jsp:

<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:display="urn:jsptld:http://displaytag.sf.net"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:spring="http://www.springframework.org/tags">
<jsp:directive.page contentType="text/html; charset=UTF-8" />
<jsp:directive.page import="test1.domain.*" />

<html>
<head>
<title>CD Catalog</title>
<link href='<c:url value="/css/displaytag.css" />' rel="stylesheet" type="text/css" />
</head>
and so on...

The css folder is on the same level where WEB-INF is.

In my servlet.xml I have:

<mvc:resources mapping="/**" location="/*" />

The next error I get:

HTTP Status 500 – /WEB-INF/jsp/test_task.jsp(11,15) The value of attribute “href” associated with an element type “null” must not contain the ‘<‘ character.

I tried also single and double quotes the other way round, and tried the same double quotes, but it wasn’t successful.

I would appreciate any advice.
Thank you in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:23:51+00:00Added an answer on June 17, 2026 at 9:23 am

    Please add tag library declaration<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> to the header. The taglib directive declares that your JSP page uses a set of custom tags(c:url here), and identifies the location of the library. Without that indication, your JSP file will end up with a (href) attribute containing an unescaped < character, which is not a valid XML.

    UPDATE:

    Just realize you are using JSP document instead of JSP page, and you’ve already declared namespace xmlns:c, so taglib isn’t needed any more. Since JSP document strictly requires well-formed XML document, it complains about your link’s href attribute(with unescaped < inside). To avoid that, try:

    <c:url var="url" value="/css/displaytag.css" />
    <link href="${url}" rel="stylesheet" type="text/css" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to java and I've encountered yet another error with my dice program.
new to Laravel (coming from Java spring), while using Route::get('/', function() { return Hello
I'm new to Spring and AOP in Java (though I've done some related stuff
I have been using the new feature of Spring 3.1.1 the java based configuration.
I am facing issues in decryption in Java. Following is the error encountered: javax.crypto.BadPaddingException:
I am getting below error for my spring based dynamic web project.I am new
I am a new guy, a java programmer. Using namespace encountered difficulties in rails3.
I was trying to add a User in my database using Java with Spring
I was working on HTTP post using java and encountered a weird stream behavior.
when I integrate spring and mybatis, I encountered a error output, saying that: Bean

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.