上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 82 下一页
摘要: <TABLE BORDER=2><% for ( int i = 0; i < n; i++ ) { %> <TR> <TD>Number</TD> <TD><%= i+1 %></TD> </TR> <% }%></TABLE> 阅读全文
posted @ 2012-01-24 00:52 greencolor 阅读(136) 评论(0) 推荐(0) 编辑
摘要: The JSP "request" variable is used to obtain information from the request as sent by the browser. For instance, you can find out the name of the client's host (if available, otherwise the IP address will be returned.) Let us modify the code as shown:<HTML><BODY><% // Thi 阅读全文
posted @ 2012-01-24 00:41 greencolor 阅读(204) 评论(0) 推荐(0) 编辑
摘要: a scriptlet does not generate HTML. If a scriptlet wants to generate HTML, it can use a variable called "out".<HTML><BODY><% // This scriptlet declares and initializes "date" System.out.println( "Evaluating date now" ); java.util.Date date = new java.util 阅读全文
posted @ 2012-01-24 00:37 greencolor 阅读(191) 评论(0) 推荐(0) 编辑
摘要: <HTML><BODY><% // This is a scriptlet. Notice that the "date" // variable we declare here is available in the // embedded expression later on. System.out.println( "Evaluating date now" ); java.util.Date date = new java.util.Date();%>Hello! The time is now <%= 阅读全文
posted @ 2012-01-24 00:33 greencolor 阅读(183) 评论(0) 推荐(0) 编辑
摘要: yum install fonts-chineseyum install fonts-ISO8859-2 阅读全文
posted @ 2012-01-23 23:52 greencolor 阅读(127) 评论(0) 推荐(0) 编辑
摘要: import java.util.*;public class ab {public static void main(String[] args) {TreeSet<String> set = new TreeSet<String>(); set.add("justin");set.add("caterpillar"); set.add("momor");set.add("justin");Iterator<String> iterator = set.iterator(); 阅读全文
posted @ 2012-01-15 15:56 greencolor 阅读(159) 评论(0) 推荐(0) 编辑
摘要: StringTokenizer st = new StringTokenizer("this is a test"); while (st.hasMoreTokens()) { System.out.println(st.nextToken()); } String[] result = "this is a test".split("\\s"); for (int x=0; x<result.length; x++) System.out.println(result[x]); 阅读全文
posted @ 2012-01-14 14:30 greencolor 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1、指定欢迎页面,例如: <welcome-file-list> <welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>index1.jsp</welcome-file> </welcome-file-list> 上面的例子指定了2个欢迎页面,显示时按顺序从第一个找起,如果第一个存在,就显示第一个,后面的不起作用。如果第一个不存在,就找第二个,以此类推。 关于欢迎页面: 访问一个网站时,默认看到的第一个页面就叫欢迎页,一 阅读全文
posted @ 2012-01-12 23:18 greencolor 阅读(280) 评论(0) 推荐(0) 编辑
摘要: start_dcss start_impdhs start_epicsgw start_dhs galil1 start_dhs galil2 start_dhs galil3 start_dhs galil4 start_dhs camera start_cryojet start_adsc_detector #start_sudo_dhs_detector #start_scan345 阅读全文
posted @ 2012-01-10 22:11 greencolor 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 下面两条命令将把sampadm用户连接到本地主机(如果没有指定主机名字,就是默认的)的sampdb数据库上去:% mysql -p -u sampadm sampdb如果需要连接到在远程主机上运行的MySQL服务器,就应在命令行指定主机:% mysql -h cobra.snake.net -p -u sampadm sampdb如果没有特别说明,以后的示例都将假定你在启动mysql时已经在命令行上把sampdb数据库选定为当前的默认数据库。如果你在启动mysql时忘了在命令行选定这个数据库,请在mysql>提示符处发出一条USE sampdb语句。 阅读全文
posted @ 2012-01-06 23:24 greencolor 阅读(696) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 82 下一页