第一天,问个低级问题
DataSource ds=null;try {
InitialContext ctx;
ctx = new InitialContext();
ds = (DataSource) ctx.lookup("java:PostgresDS");
} catch (NamingException e) {
e.printStackTrace();
}
这些是什么意思啊,我是刚开始学jsf,不懂,总那里学,怎么学阿
高手送佛送到西,从那里找到这个东西啊,找到他么:http://java.sun.com/jsf/core
在我的系统路径中有么,这个不是网址么?[此贴子已经被作者于2007-5-15 14:45:51编辑过]
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Exception in JSP: /form/login.jsp:29 26: </head> 27: 28: <body> 29: <f:view> 30: <h:form id="form0"> 31: <h:outputLabel for="username" value="username:" /> 32: <h:inputText id="username" value="#{LoginAct.name}" required="false" /> <br /> Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.lang
[此贴子已经被作者于2007-5-15 17:41:21编辑过]