上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 42 下一页
摘要: 转载自:http://read.newbooks.com.cn/info/169649.html 1、文章1 最近遇到一个问题:用get方法传递中文有问题,用post没有问题。 问题简单的描述是这样的: <pre><a href="userGroup.jsp?userGroupName=<%=userGroupName%>">aa</a></pre> 这里userGroupName是中文 在userGroup.jsp 阅读全文
posted @ 2010-09-26 16:27 qiang.xu 阅读(3815) 评论(0) 推荐(0) 编辑
摘要: 在HTML中,form元素用method属性来指定有两种不同的提交方法,即"get"(默认值)和"post"。 1. get和post的定义 W3C的HTML 4.01 specification说,form元素的method属性用来指定发送form的HTTP方法。 使用get时,form的数据集(形如control-name=current-value的键值对)被附加到form元素的action属性所指定的URI后面; 使用post时,form的数据集(形如control-name=current-value的键值对)被包装在请求的body中并被发 阅读全文
posted @ 2010-09-26 16:11 qiang.xu 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 1。命令元素pageincludetaglib2。脚本元素Declarations:使用<%! %>来标记,注意这里的变量和方法是在整个的网页范围内共享的,也就是对于这个网页的所有request 是共享的Scriptlets:使用<%%>来标记。这些变量可以在这个页面中使用,但是这些变量是不对整个的request共享的。Expressions:<%= %>一个简单demo比较declarations和scriptlets: <body> <!-- 比较declar 阅读全文
posted @ 2010-09-26 15:51 qiang.xu 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 1。新增加一个virtual web site?在server.xml文件中修改下面的代码: <!-- Define the default virtual host Note: XML Schema validation will not work with Xerces 2.2. --> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation=& 阅读全文
posted @ 2010-09-26 15:16 qiang.xu 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 1。jsp网页的生命周期当一个request到达某个指定的jsp页面时,web container会查看当前的servlet是否比此jsp页面旧。如果比较旧的话,这个web container就会自动的翻译这个jsp页面(将jsp页面翻译成servlet)。这时web容器加载这个servlet class,建立该类的一个对象,并调用jspInit method初始化这个servlet。调用_jspService将这个请求的request和response对象传递进去。然后servlet经过处理,通过response对象将相应的结果传递给客户端。 阅读全文
posted @ 2010-09-26 14:54 qiang.xu 阅读(172) 评论(0) 推荐(0) 编辑
摘要: how to install : http://code.google.com/p/extbuilder/wiki/UserGuide#Apatana 阅读全文
posted @ 2010-09-25 20:22 qiang.xu 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Main.java/* * 主程序 */import java.io.*;import lexer.*;public class Main { public static void main(String[] args) throws IOException { Lexer lexer = new Lexer(); while (lexer.getReaderState() == false) { lexer.scan(); } /* 保存相关信息 */ lexer.saveTokens(); lexer.saveSymbolsTable(); }} Lexer.j 阅读全文
posted @ 2010-09-21 19:10 qiang.xu 阅读(25557) 评论(1) 推荐(4) 编辑
摘要: 1。java测试文件结尾import java.io.BufferedInputStream;import java.io.DataInputStream;import java.io.FileInputStream;import java.io.IOException;public class MainClass { public static void main(String[] args) throws IOException { DataInputStream in = new DataInputStream(new BufferedInputStream(new FileInput 阅读全文
posted @ 2010-09-21 09:30 qiang.xu 阅读(296) 评论(0) 推荐(0) 编辑
摘要: http://www.blogjava.net/zhyiwww/archive/2007/04/05/77622.html 阅读全文
posted @ 2010-09-20 16:13 qiang.xu 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 重新修复一下word即可。 阅读全文
posted @ 2010-09-20 15:18 qiang.xu 阅读(1286) 评论(0) 推荐(0) 编辑
摘要: 一个简单的java词法分析器的实现(c语言版)#include <stdio.h>#include <string.h>#define BUFSIZE 256static char keyWords[][13]={"abstract", "boolean", "break", "byte", "case", "catch", "char", "class", "const 阅读全文
posted @ 2010-09-19 21:16 qiang.xu 阅读(5826) 评论(1) 推荐(0) 编辑
摘要: /* * Scanner.java */ package SyntaxScanner;public class Scanner{ public static void main(String[] args) { // 这里实现此法分析的主程序 Utils utils = new Utils(); }} javac -d . Scanner.java 阅读全文
posted @ 2010-09-19 20:22 qiang.xu 阅读(161) 评论(0) 推荐(0) 编辑
摘要: http://bytes.com/topic/java/answers/18107-test-if-string-integer"dave" <go_away_you_spammer_scum@nowhere.com> wrote in messagenews:FAHJc.59786$Xb4.4468@nwrdny02.gnilink.net...[color=blue]> I am reading input from a form. I want to validate the input by making[/color]su 阅读全文
posted @ 2010-09-19 20:01 qiang.xu 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 1.如何向页面中传递参数? public ActionResult Index(string id, Nullable<int> other) { this.ViewData["Other"] = other; return View(); } 上面中的id变量是在index页面初始化的时候,通过mvc framework来实现传递的(http://...?id=1)。2.如何制定form的action函数? <form action="ShowPostData" method="post"& 阅读全文
posted @ 2010-09-08 14:58 qiang.xu 阅读(860) 评论(0) 推荐(0) 编辑
摘要: 1.安装jdk;2.Tomcat下载安装,试着打开:http://localhost:8080/,如果能够显示,则说明 tomcat正确的安装了;3.下载安装myeclipse;4.下载Eclipse Tomcat plugin ,解压到myeclipse的dropin目录下;下面将整个过程中出现的问题记录如下:1.The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.pathhttp://www 阅读全文
posted @ 2010-09-03 15:47 qiang.xu 阅读(194) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 42 下一页