Skip to main content

JSTL with JSF, Facelets

3 replies [Last post]
javabuddy123
Offline
Joined: 2007-08-07

Hi

I am new to JSF/Facelets.
I am currently writing a sample JSF/Facelet code where I wrote a simple JSTL tag which is not working.
Is there any configuration changes to be done in the web.xml / faces-config.xml file to fix this error?

How to configure JSF/Facelets to work with JSTL tags such as , , etc.?

Expecting your valuable help.

Thanks,
Yogi.

My Codes of web.xml , faces-config.xml, printme.xhtml:
========================================

faces-config.xml:
============
<?xml version='1.0' encoding='UTF-8'?>

en
fr

com.sun.facelets.FaceletViewHandler

web.xml:
=======
<?xml version="1.0" encoding="UTF-8"?>

org.ajax4jsf.VIEW_HANDLERS
com.sun.facelets.FaceletViewHandler

org.ajax4jsf.SKIN
blueSky

facelets.DEVELOPMENT
true

javax.faces.DEFAULT_SUFFIX
.xhtml

Faces Servlet
javax.faces.webapp.FacesServlet
1

printme.xhtml:
==========

print text :

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
soudmaijer
Offline
Joined: 2007-07-18

The solution is to remove the /jsp from the jstl namespace:

xmlns:c="http://java.sun.com/jstl/core"

gliesian
Offline
Joined: 2008-06-22

I see this recommendation time and time again. What does it do? In my case, when I remove the jsp it can't resolve properly, is there another step I'm missing?

Your recommendation: The solution is to remove the /jsp from the jstl namespace:
xmlns:c="http://java.sun.com/jstl/core"

y_param
Offline
Joined: 2007-05-26

facelets jstl namespace is different from jsp jstl namespace. when you use facelets namespace should be http://java.sun.com/jstl/core