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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:12:18+00:00 2026-05-31T01:12:18+00:00

I am declaring the jsp namespace in my xhtml faces pages using xmlns:jsp=http://java.sun.com/jsp/page <?xml

  • 0

I am declaring the jsp namespace in my xhtml faces pages using xmlns:jsp=”http://java.sun.com/jsp/page&#8221;

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:fn="http://java.sun.com/jsp/jstl/functions"
      xmlns:jsp="http://java.sun.com/jsp/page"
      xml:lang="en" lang="en">

However the jsp:include directive is not being processed, just rendered. My IDE (Netbeans) tells me that it cannot find the library for this namespace. I am using maven with the following pom.xml file. I have another application deployed into the same container, which uses a similar structure, but is not using maven. I can’t for the live of me figure out what library I need to include to get any of the jsp:directives working.

http://maven.apache.org/xsd/maven-4.0.0.xsd&#8221;>
4.0.0

<groupId>com.j2anywhere.demo</groupId>
<artifactId>JSFDebug</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>

<name>JSFDebug</name>
<url>http://maven.apache.org</url>

<dependencies>
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>2.5</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>javax.servlet.jsp</groupId>
        <artifactId>jsp-api</artifactId>
        <version>2.2</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>org.glassfish</groupId>
        <artifactId>javax.faces</artifactId>
        <version>2.1.7</version>            
        <scope>runtime</scope>
    </dependency>    
    <dependency>
        <groupId>javax.servlet.jsp.jstl</groupId>
        <artifactId>jstl-api</artifactId>
        <version>1.2</version>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>org.glassfish.web</groupId>
        <artifactId>jstl-impl</artifactId>
        <version>1.2</version>
        <scope>runtime</scope>
    </dependency> 
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.0.2</version>
            <configuration>
                <source>1.7</source>
                <target>1.7</target>
            </configuration>
        </plugin>            
    </plugins>
</build>
<properties>
    <netbeans.hint.deploy.server>Tomcat</netbeans.hint.deploy.server>
</properties>

Thanks in advance

  • 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-31T01:12:20+00:00Added an answer on May 31, 2026 at 1:12 am

    You’re using Facelets, which is basically the successor of JSP. It are two entirely distinct view technologies. The one is XML based and the other is Servlet based. You can’t use JSP tags in Facelets, nor can you use Facelets tags in JSP.

    You need to use Facelets’ own <ui:include> instead.

    <ui:include src="/WEB-INF/includes/foo.xhtml" />
    

    Forget about JSP at all when developing with Facelets.

    See also:

    • Java EE 6 tutorial – Introduction to Facelets
    • Facelets tag library documentation
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When declaring external ant tasks using taskdef, for instance ant-contrib, the proposed setup is
C# has syntax for declaring and using properties. For example, one can declare a
when declaring the two dimensional array int random[height][width]; and then using it in a
When declaring custom view in xml, what is the difference between declaring a View
Let's imagine one retrieves the declaring type of a Field using reflection. Which of
Are declaring custom .NET event such as this , more common in a winform
When declaring a template, I am used to having this kind of code: template
Is declaring an attribute of a table as UNIQUE equivalent to declaring it as
What are differences between declaring a method in a base type virtual and then
I am declaring an array of void pointers. Each of which points to a

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.