File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes HTTP Status 500 in Jsf file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "HTTP Status 500 in Jsf file" Watch "HTTP Status 500 in Jsf file" New topic

HTTP Status 500 in Jsf file

liliane fahmy

Joined: Aug 24, 2012
Posts: 22
I am a beginner in Jsf,
The following JSF file get null pointer in <f:view>,here you are the exception and the code:

type Exception report


description The server encountered an internal error () that prevented it from fulfilling this request.


org.apache.jasper.JasperException: An exception occurred processing JSP page /home.jsp at line 11

9: <%@ taglib uri="" prefix="f" %>
10: <%@ taglib uri="" prefix="h" %>
11: <f:view>
12: <h:outputText value="hello offf ba2a"/>
14: </f:view>

and the code of JSF is:

<%@ taglib uri="" prefix="f" %>
<%@ taglib uri="" prefix="h" %>
<h:outputText value="hello offf ba2a"/>

PLEASE I want to know what 's the mistake in my code causing this exception

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16897

Without a stack trace, I cannot say what causes the exception, but your sample code is based on an outdated version of JSF.

Customer surveys are for companies who didn't pay proper attention to begin with.
Don't get me started about those stupid light bulbs.
subject: HTTP Status 500 in Jsf file
It's not a secret anymore!