《jsp编程起步》里面的所有源代码

源代码在线查看: header.xsl~

软件大小: 2651 K
上传用户: syxie
关键词: jsp 编程 有源 代码
下载地址: 免注册下载 普通下载 VIP

相关代码

								   - Formats the top level of the template.  header.xsl assumes the XTP				   - has been read in as HTML.  So it can assume the existence of the				   - html and body tags.				  -->																								  String top = "/";				  String title = null;				  Navigation nav = null;								  String topnav(Object a, Object b, Object c) { return ""; }								  void initNavigation(XslWriter out)				    throws IOException				  {				    PageContext page = out.getPage();				    ServletContext app = page.getServletContext();				    HttpServletRequest req = (HttpServletRequest) page.getRequest();				    String realPath = req.getRealPath("toc.xml");								    Path path = out.getPwd().lookupNative(realPath);								    nav = new Navigation(path);								    top = nav.getTop();				    if (top == null || top == "")				      top = "/";				  }								  void writeFamilyNavigation(XslWriter out)				  {				    PageContext page = out.getPage();				    HttpServletRequest req = (HttpServletRequest) page.getRequest();								    NavItem item = nav.findLink(req.getRequestURI());				    if (item == null)				      return;				  }				#>								html								  				     initNavigation(out);				     title = XPath.evalString("head/title", node);				     if (title == null)				       title = "";				  #>				  				  				  				  				  								  				  				>>								html/body								  								  				  				    				    				      				      				      				    				    				  				  				    				  				  				     top navigation 				    				    				      				        				           				        				        				                				        				        				                By 				        				      				       				       				    				    				       				       				    				  				  				  								  				  								  				  				  				  				    Home |				    Products | 				    Download | 				    About Caucho |				    Support |				    Site Map				    				    Copyright © 1998-1999 Caucho Technology.  All rights reserved.				  								  				  Write us at info@caucho.com				    				    				  				  								  				  				  				  				  				>>															

相关资源