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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:11:55+00:00 2026-05-22T21:11:55+00:00

I have developed a java server page which has java server faces tags. It

  • 0

I have developed a java server page which has java server faces tags. It is fetching a bean data like this:

<h:inputText value="#{UserBean.userName}" />

But when I run it, it is showing the value as it is and not evaluating the value.

How is this caused and how can I solve 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-22T21:11:56+00:00Added an answer on May 22, 2026 at 9:11 pm

    So, the EL expressions are not evaluated and you see #{UserBean.userName} in the webpage instead of the evaluated value?

    Ensure that your web.xml is declared conform the maximum supported Servlet version as supported by the webcontainer. JSF 1.2 and 2.0 requires a minimum of Servlet 2.5. JSF 2.1 requires a minimum of Servlet 3.0. The Servlet version is coupled to the EL version used. JSF 1.2/2.0 rely on the new “Unified EL” (EL 2.1) which is part of Servlet 2.5.

    I’ll assume Servlet 2.5, here’s how the root declaration of the web.xml should then look like:

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://java.sun.com/xml/ns/javaee" 
        xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
        version="2.5">
    
        <!-- Your config here -->
    
    </web-app>
    

    A bit decent IDE can autogenerate it for you if you have properly configured the project as Servlet 2.5 project and chosen a Servlet 2.5 compatible container such as at least Tomcat 6.0.

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

Sidebar

Related Questions

I have a Java server page which should execute showPeopleDetails function, when a user
I have developed a number of classes which manipulate files in Java. I am
We have our own custom calendar in our portal which is developed in Java.
We have hundreds of websites which were developed in asp, .net and java and
I have developed a Java EE web application. This application allows a user to
I have developed a basic Chat application in Java. It consists of a server
I have developed an applet java with Eclipse, which is included in MyPage.html. I
I have a java server that sends some data through a socket to a
I have developed an WebApplication with Java-Servlets. It is running in a GlassFish-Server (on
I'm working on a Java 6 application server which has a web service for

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.