• Post Reply Bookmark Topic Watch Topic
  • New Topic

EL expression not recoggnized

 
Kumar Gaurav
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to render out an input text box for which i have written following code in jsp page

<h:inputText value="#{firstBean.cols}" />

when it is rendered out it is coming as a tect box with #{firstBean.cols} as value inside text box.

Please help me out.
 
Tim Holloway
Bartender
Posts: 18472
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like you're using an invalid URL and not being routed to the FacesServlet. In JSF, you can't use the URL of the JSP file itself - you have to set up a URL pattern that routes to the FacesServlet and use that.
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How did you mapped your faces in the web.xml? How are you invoking your page?
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!