aspose file tools*
The moose likes JSF and the fly likes Cant get my first jsf page to render :-( Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Cant get my first jsf page to render :-(" Watch "Cant get my first jsf page to render :-(" New topic
Author

Cant get my first jsf page to render :-(

Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
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

Joined: Mar 06, 2001
Posts: 1209
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

Joined: May 30, 2002
Posts: 1400


- Varun
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
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

Joined: Mar 06, 2001
Posts: 1209
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

Joined: May 30, 2002
Posts: 1400
You can refer this tutorial over getting started with JSF.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cant get my first jsf page to render :-(