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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:28:39+00:00 2026-05-19T17:28:39+00:00

This is a really confusing error, as it crops up in some of the

  • 0

This is a really confusing error, as it crops up in some of the webpages that I’m creating, but not in others, although syntactically the elements are identical.

For example, this doesn’t show up:

            <main:uiInputBox
                onDarkBG="${hasDarkBG}"
                name="questionTitle1"
                onblur="pollUpdateQuestion(false, false, true, this);"
                defaultValue="&lt;${field['POLL_FIELD_ENTER_QUESTION']}&gt;"
                styleWidth="280px">
            </main:uiInputBox>

Where the tag ${field['POLL_FIELD_ENTER_QUESTION']} should return the string “enter question”. What I don’t understand is that the tag returns the string normally in the JSP file, but now when it’s in the HTML descriptor.

Another error is that in javascript if I have a function like this:

It prints out the literal string "${field['POLL_FIELD_CHOICE']}", and not the element that it’s representing. Ex:

template.find('h2').text('${field["POLL_FIELD_CHOICE"]} ');

What am I doing wrong here and how can I fix it?

  • 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-19T17:28:39+00:00Added an answer on May 19, 2026 at 5:28 pm

    As to the first problem of EL not being resolved in a custom tag, that’s not JSTL (it are those <c:xxx> tags). That’s EL (those ${} things).

    You seem to be using EL in a custom tag. The <main:xxx> does not belong to any JSP standard tag library (look, that’s what JSTL stands for). To get EL in custom tags to work as well, you need to ensure of the following:

    • The web.xml must be declared as at least Servlet 2.4, which implies JSP 2.0 where this feature is supported.

      <web-app 
          xmlns="http://java.sun.com/xml/ns/j2ee"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
          version="2.4">
      
    • The .tld file of the <main:xxx> taglib must be declared as at least JSP 2.0, where the <rtexprvalue> attribute is supported.

      <taglib 
          xmlns="http://java.sun.com/xml/ns/j2ee" 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" 
          version="2.0"> 
      
    • The defaultValue attribute in the .tld file of the <main:uiInputBox> must be marked with <rtexprvalue>true</rtexprvalue> to enable the support runtime expressions (the EL, those ${} things).

      <attribute>
          <name>defaultValue</name>
          <rtexprvalue>true</rtexprvalue>
      </attribute>
      

    As to the second problem of EL not being resolved in a JavaScript file, well, the explanation is pretty simple: EL in template text like that runs in JSP (2.0 or newer) files with .jsp extension only. There are several ways to get it to work anyway:

    • Rename .js to .jsp and add the following line to top of the page (best solution):

      <%@page contentType="text/javascript" %>
      
    • Put that piece of JS in an inline <script> of the JSP page instead (not recommend since that’s generally seen as a poor practice).

    • Map *.js on the JSP servlet in web.xml (not recommended, it tight-couples your webapp to the servletcontainer’s specific JspServlet which may not necessarily be mapped on the servlet name of jsp).

      <servlet-mapping>
          <servlet-name>jsp</servlet-name>
          <url-pattern>*.js</url-pattern>
      </servlet-mapping>
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is pretty confusing. I'm receiving this error whenever I try to add to
Domain Driven Design can be really confusing at times and since I am rather
I'm getting the error Error for /la/truckpage java.lang.NoClassDefFoundError: Could not initialize class com.google.apphosting.runtime.security.shared.stub.java.net.Proxy For
I'm having a really rough time wrapping my head around prototypes in JavaScript. Previously
I'm programming a feedback loop that takes in user commands and processes the arguments
hi im confusing about how to get a char* when i read a specific
This past semester I was taking an OS practicum in C, in which the
I want to start learning PHP, so I installed Apache2, MySQL and PHP5 on
So I handle all exceptions in my project within my Global.asax page. For example,

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.