上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 常用到的Button链接,代码如下:1.链接到某页<input type="button" name="Submit" value="确定" class="btn" onclick="location.href='filename.html'" />2.返回(等同后退) <input name="Submit2" type="button" class="btn" onclick="locat 阅读全文
posted @ 2012-11-08 15:40 hlb 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1 public class StringChar { 2 public static void main(String[] args){ 3 String s="abcdef"; 4 char[] x=s.toCharArray(); //String转为char[]数组 5 String z=String.valueOf(x); //char[]数据转为String 6 System.out.println(x); 7 8 for(char v:x) 9 ... 阅读全文
posted @ 2012-11-08 15:25 hlb 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1 public class Test { 2 static void list(Integer[] i) { 3 for (Integer q : i) { 4 System.out.print(q + "*"); 5 } 6 System.out.println(); 7 } 8 static void list(String...args){ 9 for (String q : args) {10 System.out.print(q + "*");1... 阅读全文
posted @ 2012-11-08 15:22 hlb 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 国际化(internationalization)是设计和制造容易适应不同区域要求的产品的一种方式。它要求从产品中抽离所有的与语言,国家/地区和文化相关的元素。换言之,应用程序的功能和代码设计考虑在不同地区运行的需要,其代码简化了不同本地版本的生产。开发这样的程序的过程,就称为国际化。很多技术框架都提供国际化支持,struts2的国际化大致上分为页面的国际化,Action的国际化以及xml的国际化。我们将使用Struts2国际化技术实现登录功能的国际化。实现根据客户端的浏览器区域进行语言的切换,我们以英文和中文为例子。右键点击TestStruts2_001项目的“src”文件夹,选择“New” 阅读全文
posted @ 2012-11-07 14:20 hlb 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 1 package com.hlb.main; 2 /** 3 * 基类 4 */ 5 class Test { 6 private String name = "Test:"; 7 public String app(String a) { 8 return name += a; 9 }10 11 public String exe() {12 app("调用exe()");13 return name;14 }15 16 public String exe2() {17 a... 阅读全文
posted @ 2012-11-07 00:33 hlb 阅读(329) 评论(0) 推荐(0) 编辑
摘要: struts.xml (拦截器必须放进拦截器站(interceptor-stack)中方便调用) 1 <?xml version="1.0" encoding="UTF-8" ?> 2 <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd"> 3 <struts> 阅读全文
posted @ 2012-11-06 16:21 hlb 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 附图1:"不能重新部署"Deployment failure on Tomcat 6.x. Could not copy all resources to E:\apache-tomcat-6.0.16\webapps\HebbnWebServices. If a file is locked, you can wait until the lock times out to redeploy, or stop the server and redeploy, or manually remove the deployment at E:\apache-tomcat-6.0 阅读全文
posted @ 2012-11-06 16:05 hlb 阅读(971) 评论(0) 推荐(0) 编辑
摘要: 启动Tomcat时,提示如下错误信息:2012-11-6 15:20:12 org.apache.catalina.core.StandardContext filterStart严重: Exception starting filter MyStruts2Unable to load configuration. - bean - jar:file:/F:/Web/homesite/jsp/struts/WEB-INF/lib/struts2-convention-plugin-2.1.6.jar!/struts-plugin.xml:30:119at com.opensymphony.xw 阅读全文
posted @ 2012-11-06 15:49 hlb 阅读(10690) 评论(0) 推荐(0) 编辑
摘要: 1:struts.xml的文档声名: <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> 2:导入struts-core.jar3.在配置中 导入这个<include file="struts-default.xml" /> 4.联网后检查继承struts-de 阅读全文
posted @ 2012-11-05 22:25 hlb 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 进入CMD,输入netstat -ano就可以很清楚的看到80口占用程序的PID,然后再去任务管理器里查找到PID所对应的进程(如果任务管理器没有PID,查看–>选择列),原来是迅雷5给占用了,再去迅雷里查看设置,竟然BT的默认TCP传输端口是80,改掉设置,IIS启动正常了! 阅读全文
posted @ 2012-11-05 22:21 hlb 阅读(171) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页