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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:05:42+00:00 2026-05-16T22:05:42+00:00

We recently switched to Servlet 2.4 and JSP 2 on a project and our

  • 0

We recently switched to Servlet 2.4 and JSP 2 on a project and our custom tags no longer work.
We have tags like:

<myTags:someTag value="${x}" />

and once in the tag we evaluated x bean and went from there. Now the evaluation happens directly in the JSP and we get a String (apparently x.toString()) set for the value attribute.

There are not a lot of tags and I could adapt them in a few days but how can I do that? I could not find anything on the web (or maybe I’m not looking where I should).

How do I pass the x bean to my tag and evaluate it there and not allow it to be evaluated in the JSP?

P.S. I do not want to deactivate the EL-engine

Thank you!

  • 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-16T22:05:43+00:00Added an answer on May 16, 2026 at 10:05 pm

    If you redeclare web.xml as Servlet 2.4 as follows

    <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">
    

    and the tld file as JSP 2.0 taglib as follows:

    <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"> 
    

    Then you can add <rtexprvalue>true</rtexprvalue> entries to tag attributes in the TLD file which are expecting EL values. E.g.

    <attribute>
        <name>value</name>
        <rtexprvalue>true</rtexprvalue>
    </attribute>
    

    It namely defaults to false.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We recently switched to git for our source control needs. We have been using
I recently switched from a Java based project to a C#/.net project. I previously
I recently switched to command-line git for my personal projects. I have used 3-way
I've recently switched focus from VB.NET to C# due to some decisions at work.
I recently switched over to using Janus from a custom set of vim plugins
I recently switched to using Git (eGit) from SVN... for my Eclipse Java project
We recently switched from SVN to Git and re-configured our ccnet server. Everything is
I recently switched from VB to C# and have, for the most part, been
I recently switched to Outlook 2007 and noticed that my VBA-macros won't work. I
***Project Specs:*** iOS 4.3 Ti SDK 1.6.2 Titanium Studio I've recently switched to Titanium

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.