Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Help for 1st JSF example

 
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


 
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.
 
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 ]
 
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!