Forums Register Login

EL not evaluated

+Pie Number of slices to send: Send
Hi,
the following code line is not being evaluated


<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<h: outputText value="#{UserBean.userName}" />to JSF 1.2 World!
i have stored the bean value as "welcome"
i should get the output as welcome to jsf 1.2 world

but i am simply getting
#{UserBean.userName} to JSF 1.2 World!

what am i doing wrong

Please help
Krishan

+Pie Number of slices to send: Send
This is usually because the web.xml specifies the wrong servlet container. What does your web.xml say?
1
+Pie Number of slices to send: Send
 

Tim McGuire wrote:This is usually because the web.xml specifies the wrong servlet container. What does your web.xml say?



:confused:

I don't think the term "servlet container" really applies here - that's more about the application server program itself. But this particular problem of JSPs not evaluating EL is common for people who don't realize the difference between the jsp file (resource) and the web URL that consumes that resource, submitting a URL that pulls the file directly instead of routing it via the FacesServlet. And yes, web.xml controls how URLs are routed.

Someone else just asked the same question, so I recommend searching this forum for the detailed answer given there.
+Pie Number of slices to send: Send
I don't know why I wrote servlet container. I meant that the web.xml specifies the wrong version in the web-app tag. That was my problem on at least one past occasion.
Paper beats rock. Scissors beats tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1341 times.
Similar Threads
Problem in JSF
I am so tired just getting start in jsf please help me please
About Operator Precendence
EL expressions are not evaluated
Server is throwing 500 internal server error caused by Stack overflow!
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 08:30:22.