File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cant get my first jsf page to render :-(

 
Karthik Guru
Ranch Hand
Posts: 1209
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a test.jsp under the context root. This is my web.xml entry.
Tomcat allows directory browsing of the context root. But does'nt render the jsp..it just takes forever and hangs.

Am i missing something here?
thanks.



and this my jsp. I had lot more stuff in there but i trimmed it down.

 
Karthik Guru
Ranch Hand
Posts: 1209
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i changed the page suffix to .faces instead of .jsp and also changed the web.xml mapping url to *.faces and it works now !
 
Varun Khanna
Ranch Hand
Posts: 1400
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Karthik Guru
Ranch Hand
Posts: 1209
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Varun,

I think i celebrated too soon. I saw it working yesterday.

This is the url:

http://localhost:8090/hello/test.faces

and i see the following:

404 error for test.jsp !

When i do,
http://localhost:8090/hello

I can see test.faces there. But on clicking i see a 404 error now.
my web.xml entry is same as above.

Help needed!
 
Karthik Guru
Ranch Hand
Posts: 1209
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Karthik Guru:
my web.xml entry is same as above.


But yeah with *.jsp mapping changed to *.faces
 
Varun Khanna
Ranch Hand
Posts: 1400
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can refer this tutorial over getting started with JSF.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic