Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help for 1st JSF example  RSS feed

 
Bruce Evans
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm just starting to learn JSF (I have the SCWCD Cert) and am trying to get
my first webapp to run using the 'f' and 'h' tags. I'm using Tomcat 5.latest

I believe I have the .tld's and .jar's in the correct places:
jsf_core.tld & html_basic.tld in WEB-INF
All the jar's in WEB-INF/lib plus some in Tomact 'common/lib'

Thanks in advance for the help. If you feel this topic should be taken
outside of JR, you can contact me at bruce.evans@sun.com.
-Bruce

The request page is simple:




The error result of accessing http://localhost:8080/test/jsfgui.jsp


 
Juhan Voolaid
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You allso must configure Faces servlet and map it to special url pattern, for example *.faces, in web.xml file.
 
Wahaj Dhalani
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, on your web.xml:



Notice the URL pattern, to reach your jsp you must use /faces/<jsp name>.jsp
I had a similar issue like yours, adding the <init-param> helped.

Good Luck
- Wahaj :thumb:
[ September 25, 2006: Message edited by: Wahaj Dhalani ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!