摘要:
选择合适的java脚本语言--如果你正考虑在java应用中集成脚本解释器,最难得是决定使用那种摘要:脚本语言已经向java开发者证明了它的价值。它让客户实现应用功能的扩展和界面的个性化,从而程序的价值得以提升。另外,它们可以显著的简化程序开发者的设计任务,通过实现动态定义、装载和评估。对于开发人员,集成一种或多种脚本语言的任务是简单的,从越来越长的可选列表中选出一个确实困难的。......
摘要:
什么是io io(input/output)是计算机输出/输出的接口。java的核心库java.io提供了全面的io接口,包括:文件读写,标准设备输出等等。java中io是以流为基础进行输入输出的,所有数据被串行化写入输出流,或者从输入流读入。此外,java也对块传输提供支持,在核心库java.nio中采用的便是块io。关于nio我们在后面还有专门的讨论。 流io的好处是......
JavaXML教程(附:源程序)
sonnet.xml 这是在本教程中贯穿使用的示例 xml 文档. <?xml version="1.0"?> <!doctype sonnet system "sonnet.dtd"> <sonnet type="shakespearean"> <author> <last-name>shakespeare</last-name> <first-name>william</first-name> <nationality>british</nationality> <year-of-birth>1564</year-of-birth> <year-of-death>1616</year-of-death> </author> <title>sonnet 130</title> <text> <line>my mistress` eyes are nothing like the sun,</line> <line>coral is far more red than her lips red.</line> <line>if snow be white, why then her breasts are dun,</line> <line>if hairs be wires, black wires grow on her head.</line> <line>i have seen roses damasked, red and white,</line> <line>but no such roses see i in her cheeks.</line> <line>and in some perfumes is there more delight</line> <line>than in the breath that from my mistress reeks.</line> <line>i love to hear her speak, yet well i know</line> <line>that music hath a far more pleasing sound.</line> <line>i grant i never saw a goddess go,</line> <line>my mistress when she walks, treads on the ground.</line> <line>and yet, by heaven, i think my love as rare</line> <line>as any she belied with false compare.</line> </text> </sonnet> sonnet.dtd 这是我们示例文档所用的 dtd. <!-- sonnet.dtd --> <!element sonnet (author,title?,text) > <!attlist sonnet type (shakespearean | petrarchan) "shakespearean"> <!element text (line,line,line,line, line,line,line,line, line,line,line,line, line,line) > <!element author (last-name,first-name,nationality, year-of-birth?,year-of-death?) > <!element title (<!element last-name (<!element first-name (<!element nationality (<!element year-of-birth (<!element year-of-death (<!element line ( domone.java 这是我们的第一个 dom 应用.它解析一个 xml 文档并将其内容输出到标准输出....
下一页 摘要:
//articleconn.jsp 数据库连接文件,几乎被每个页面包含,有的页面去掉获得session,修改一下这个代码,很简单<%@ page contenttype="text/html;charset=big5"%><%@ page import="java.sql.*"%> <% request.se......