A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
JSP
Author
Problem with jsp:element being ignored by my jspx
Julien Martin
Ranch Hand
Joined: Apr 24, 2004
Posts: 383
posted
Feb 02, 2007 02:49:00
0
Hello,
!Please note that this is a
JSP
problem even though it is located in a jsf page!
I have the following code:
<jsp:element xmlns:jsp="http://java.sun.com/JSP/Page" name="link"> <jsp:attribute name="href">${pageContext.request.contextPath}/css/xp/xp.css</jsp:attribute> <jsp:attribute name="rel">stylesheet</jsp:attribute> <jsp:attribute name="type">text/css</jsp:attribute> </jsp:element>
which is not being evaluated. I just get nothing in lieu of the above code fragment.
Here is part of my web.xml:
<jsp-config> <jsp-property-group> <display-name>Expression Language</display-name> <url-pattern>*.jspx</url-pattern> <el-ignored>false</el-ignored> <scripting-invalid>false</scripting-invalid> <is-xml>true</is-xml> </jsp-property-group> </jsp-config>
Here is the entirety of my jspx:
<f:view xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ice="http://www.icesoft.com/icefaces/component"> <jsp:directive.page isELIgnored="false"/> <ice:outputDeclaration doctypeRoot="HTML" doctypePublic="-//W3C//DTD XHTML 1.0 Strict//EN" doctypeSystem="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/> <html xmlns:jsp="http://java.sun.com/JSP/Page"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>JSP Page{9+1} - 05</title> <jsp:element xmlns:jsp="http://java.sun.com/JSP/Page" name="link"> <jsp:attribute name="href">${pageContext.request.contextPath}/css/xp/xp.css</jsp:attribute> <jsp:attribute name="rel">stylesheet</jsp:attribute> <jsp:attribute name="type">text/css</jsp:attribute> </jsp:element> </head> <body> <ice:outputConnectionStatus/> <ice:form> <ice:inputFile progressListener="#{consoleInputFile.progress}" actionListener="#{consoleInputFile.action}"/> <ice:outputProgress indeterminate="true" value="#{consoleInputFile.percent}" /> <ice:messages showDetail="true" styleClass="consoleInputFileMessages"/> </ice:form> </body> </html> </f:view>
Can anyone help please,
Julien.
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56224
13
I like...
posted
Feb 02, 2007 07:53:00
0
Please do not post the same question more than once.
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Problem with jsp:element being ignored by my jspx
Similar Threads
Beginner needs help with ajax
Problem with el evaluation in a jspx
Problem with {facesContext externalContext requestContextPath}
Problem with el evaluation in a jspx
Problem with jsp:element being ignored by my jspx
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter