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 1052075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:02:07+00:00 2026-05-16T17:02:07+00:00

I have simple JSP: <jsp:directive.attribute name=severity type=java.lang.String required=true/> <jsp:directive.attribute name=currentSeverity type=java.lang.String required=true/> <c:if test=${severity

  • 0

I have simple JSP:

<jsp:directive.attribute name="severity" type="java.lang.String" required="true"/>
<jsp:directive.attribute name="currentSeverity" type="java.lang.String" required="true"/>

<c:if test="${severity ne currentSeverity}">
    <c:url value="/session" var="url">
        <c:param name="severity" value="${severity}"/>
    </c:url>
    <li><a href="#" onclick="$.ajax({
        type: 'GET',
        url: '${url}',
        success: function() {
            window.location.reload();
        }
    });"><c:out value="${severity}"/></a></li>
</c:if>

But when I’m evaluate it servlet engine throws:

org.apache.jasper.JasperException:
  /WEB-INF/tags/severity-position.tagx(17,9) PWC6287: 
  The attribute prefix success does not correspond to any imported tag library

Somehow JSP engine thinks that $.ajax({...}); string is JSP EL expression (no matter what characters are placed between $ and {). When I backslash { or $ it’s all ok, but then my IDE thinks that this code is broken JS code.

So, why JSP engine thinks that $.ajax({...}) is JSP EL expression?

  • 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-05-16T17:02:08+00:00Added an answer on May 16, 2026 at 5:02 pm

    This look indeed like a bug in the EL implementation used by the servletcontainer (or webapplication) in question. You need to figure which one it is using and try upgrading/replacing it.

    If upgrading/replacing the EL implementation doesn’t help, then I’d warmly recommend do move that whole script out into an function in its own .js file which you load using <script> in the HTML <head> element. That’s also the normal practice. Even more, I’d give the link a classname so that you can just hook on it during $(document).ready() and add the click() accordingly. E.g.

    <a href="${url}" class="someName">
    

    with

    $(document).ready(function() {
        $('.someName').click(function() {
            $.ajax({
                type: 'GET',
                url: $(this).attr('href'), // This sets the actual value of ${url}.
                success: function() {
                    window.location.reload();
                }
            });
            return false; // Blocks link from executing the default href action.
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 516k
  • Answers 516k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer A UIView's superView is assumed to be a UIView. However,… May 16, 2026 at 6:48 pm
  • Editorial Team
    Editorial Team added an answer Take a look at JUnit, what I think you want… May 16, 2026 at 6:48 pm
  • Editorial Team
    Editorial Team added an answer What sort of key have they provided? Assuming this key… May 16, 2026 at 6:48 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have this simple JSP page in Eclipse and the first line in the
Begining with JSP and servlet development, I have some problems with a bodyless custom
We have a simple table with employee data containing a 100k records. We want
I have a really simple J2SE app that consists of a couple of classes.
I have a simple Android RSS reader app in which I am using SAX
As part of a project I'm working on, we're migrating from Velocity to JSP.
I have some static html content (included on a dynamically generated page) that I
I'm currently building a Spring MVC application. I was looking to use JSP pages
I'm using IBM's Rational Software Architect (essentially Eclipse I suppose). I have a JAR
I have configured the SimpleMappingExceptionResolver in my web application, which is handling all the

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.