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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:22:21+00:00 2026-06-07T11:22:21+00:00

Before I was using JSF, the following code was working in JSP files: <c:if

  • 0

Before I was using JSF, the following code was working in JSP files:

<c:if test="${not (empty request.error)}">
    Error: ${request.getAttribute("error")}
</c:if>

Now, when I am using JSF, I am getting this error:

/login.xhtml @24,51 test=”${not (empty request.error)}” /login.xhtml @24,51 test=”${not (empty request.error)}”: Property ‘error’ not found on type org.apache.catalina.connector.RequestFacade

What is the problem/solution here? The editor does not underline anything.

Whole login.xhtml:

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./template.xhtml"
                xmlns:c="http://java.sun.com/jsp/jstl/core">

    <ui:define name="userBar">
        <form method="POST" action="Login">
            <table>
                <tr>
                    <td>Login</td>
                    <td><input type="text" name="login" /></td>
                </tr>
                <tr>
                    <td>Password</td>
                    <td><input type="password" name="password" /></td>
                </tr>
                <tr>
                    <td colspan="2"><input type="submit" value="Login" /></td>
                </tr>
            </table>            
        </form>

        <c:if test="${not (empty request.error)}">
            Error: ${request.getAttribute("error")}
        </c:if>
    </ui:define>

    <ui:define name="content">
        content
    </ui:define>
</ui:composition>
  • 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-07T11:22:23+00:00Added an answer on June 7, 2026 at 11:22 am

    Since JSF2/Facelets, the #{request} is an implicit EL variable referring the currently involved HttpServletRequest object. See also Communication in JSF 2.0 – Implicit EL objects.

    You need to either rename your managed bean (or whatever it is which appears with exactly the same attribute name in the EL scope), or to explicitly refer it through the EL scope map. Assuming that it’s request scoped, you should be using #{requestScope.request} instead.

    <c:if test="#{not empty requestScope.request.error}">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a project using JSF 1.2 deploying a portlet to WebSphere Portal
I'm working on a project using JBoss 6.1.0.Final, JSF 2.0.3, EJB3 and JPA 2
I have been using a Phase Listener to debug my JSF application. Now I'm
Before using google collections I had something similar to next code: private Set<A> aSet
The entry point to my JSF application is EntryPoint.jsp . We are using JSF
I'm using JSF ajax ( we can NOT change that =\ ) in my
I'm working on an application using JSF 2.0 and Richfaces 4, that consists of
I have selected rows based on DateTime before using either: DATEADD(day, -1, GetDate()) AND
I've done some simple string -> DateTime conversions before using DateTime.ParseExact(), but I have
Is there a way to check if a template tag exists before using 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.