老大

不伤悲

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  4 Posts :: 0 Stories :: 0 Comments :: 0 Trackbacks

2006年8月9日 #

JSP spec 2.1:

When including a JSP document (written in the XML syntax), in the resulting
XML View of the translation unit the root element of the included segment must
have the default namespace reset to "". This is so that any namespaces
associated with the empty prefix in the including document are not carried
over to the included document.
























JSP10.3.3 has the following, but I don't see the "clear out" part, is
this a typo or just me confused???



This example illustrates the need to clear out the default namespace
when doing
a translation-time include of a JSP document:

<!-- a.jspx -->
<elementA>
<tagB xmlns="http://namespace1">
<jsp:directive.include file="b.jspx" />
</tagB>
</elementA>

<!-- b.jspx -->
<elementC />

The resulting XML View for these two JSP documents is:

<jsp:root>
<elementA>
<tagB xmlns="http://namespace1">
<elementC /> <-------- should this be <elementC xmlns=""/> ??????????
</tagB>
</elementA>
</jsp:root>A
posted @ 2006-08-24 23:54 antelope 阅读(250) | 评论 (0)编辑 收藏

If you get a "Cannot find FacesContext" error message, it means that the request did not go through the FacesServlet before the JSP. How to make sure that? Use the url pattern in the servlet mapping.
posted @ 2006-08-24 17:57 antelope 阅读(501) | 评论 (0)编辑 收藏

I tried to connect to a database using JDBC, only getting SQLExceptions saying no suitable driver. Found out later that I should add a '/' to the end of the URL.
posted @ 2006-08-24 16:28 antelope| 编辑 收藏

亲身体验失业的滋味,希望不会太久。   
posted @ 2006-08-09 23:09 antelope 阅读(186) | 评论 (0)编辑 收藏