<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/vtison</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; vtison]]></copyright><item><title><![CDATA[FileReader读取文件中文乱码问题]]></title><link>https://blog.csdn.net/vtison/article/details/38082439</link><guid>https://blog.csdn.net/vtison/article/details/38082439</guid><author>vtison</author><pubDate>Thu, 24 Jul 2014 12:07:04 +0800</pubDate><description><![CDATA[有一个UTF-8编码的文本文件，用FileReader读取到一个字符串，然后转换字符集：str=newString(str.getBytes(),"UTF-8");结果大部分中文显示正常，但最后仍有部分汉字显示为问号！ 
Java代码  
public static List getLines(String fileName){   
        List lines=newArrayL]]></description><category></category></item><item><title><![CDATA[myeclipse常用技巧]]></title><link>https://blog.csdn.net/vtison/article/details/38082431</link><guid>https://blog.csdn.net/vtison/article/details/38082431</guid><author>vtison</author><pubDate>Thu, 24 Jul 2014 12:06:13 +0800</pubDate><description><![CDATA[①MyEclipsejava Enterprise perspective//正常模式,web模式 
MyEclipse Image Editor perspective//图形编辑模式
 
 
②按F3可查看函数源代码
 
③切换到正常模式，切换到包视图，右键点击工程Show In可切换两种不同的视图
 
 
④右键点击工程，点击Properties，搜索build，选择Jav]]></description><category></category></item><item><title><![CDATA[代码编写注意]]></title><link>https://blog.csdn.net/vtison/article/details/38082407</link><guid>https://blog.csdn.net/vtison/article/details/38082407</guid><author>vtison</author><pubDate>Thu, 24 Jul 2014 12:05:06 +0800</pubDate><description><![CDATA[①out.println
     ("删除");
在输出链接时，要注意加单引号
 
②stm.execute("deletefrom products where productid='"+productId+"'");
在删除等操作时，要注意在参数或变量两侧加单引号
不然就会报错
javax.servlet.ServletException: com.mysql.jdbc.exc]]></description><category></category></item><item><title><![CDATA[如何该去学习编程]]></title><link>https://blog.csdn.net/vtison/article/details/38068759</link><guid>https://blog.csdn.net/vtison/article/details/38068759</guid><author>vtison</author><pubDate>Wed, 23 Jul 2014 18:43:03 +0800</pubDate><description><![CDATA[编程是一门学问，学习的方法zhi'guan'zhong'yao]]></description><category></category></item><item><title><![CDATA[将javafx编译为exe文件，并在没有jdk的机器上运行]]></title><link>https://blog.csdn.net/vtison/article/details/37905069</link><guid>https://blog.csdn.net/vtison/article/details/37905069</guid><author>vtison</author><pubDate>Thu, 17 Jul 2014 13:31:05 +0800</pubDate><description><![CDATA[e(fx)clipse插件安装地址：]]></description><category></category></item><item><title><![CDATA[mysql编码]]></title><link>https://blog.csdn.net/vtison/article/details/37884209</link><guid>https://blog.csdn.net/vtison/article/details/37884209</guid><author>vtison</author><pubDate>Wed, 16 Jul 2014 19:59:50 +0800</pubDate><description><![CDATA[在my.ini加入，有时不顶用
[mysqld] 
default-storage-engine=MyISAM 
default-character-set=utf8 
default-collation=utf8_general_ci




查看字符编码
show variables like 'character%';
单个设置字符编码
SET character_s]]></description><category></category></item><item><title><![CDATA[常见异常]]></title><link>https://blog.csdn.net/vtison/article/details/37872761</link><guid>https://blog.csdn.net/vtison/article/details/37872761</guid><author>vtison</author><pubDate>Wed, 16 Jul 2014 10:15:55 +0800</pubDate><description><![CDATA[①quote symbol expected
某个地方引号不正确


②Attribute dataSourec invalid for tag query according to TLD
没有这个属性存在，例如JSTL标签中的写错的属性


③Cannot create resource instance
没有在web.xml写入绑定内容，JNDI，绑定内容不正确


]]></description><category></category></item><item><title><![CDATA[sql异常]]></title><link>https://blog.csdn.net/vtison/article/details/37872729</link><guid>https://blog.csdn.net/vtison/article/details/37872729</guid><author>vtison</author><pubDate>Wed, 16 Jul 2014 10:12:13 +0800</pubDate><description><![CDATA[①com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'form ]]></description><category></category></item><item><title><![CDATA[java算法代码（一）]]></title><link>https://blog.csdn.net/vtison/article/details/37871163</link><guid>https://blog.csdn.net/vtison/article/details/37871163</guid><author>vtison</author><pubDate>Wed, 16 Jul 2014 09:30:07 +0800</pubDate><description><![CDATA[100匹马100袋粮食大马驮三袋小马驮两袋，两个小马崽驮一袋，问大马小马小马崽各多少匹？  java代码如何实现？
public class HowManyHorses {
    public static void main(String[] args) {
        final int HORSE_NUMBER = 100;
        final int FOOD_NUMBER]]></description><category></category></item><item><title><![CDATA[简单servlet绘图程序]]></title><link>https://blog.csdn.net/vtison/article/details/37870275</link><guid>https://blog.csdn.net/vtison/article/details/37870275</guid><author>vtison</author><pubDate>Wed, 16 Jul 2014 09:05:16 +0800</pubDate><description><![CDATA[import java.awt.*;
import java.awt.image.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import com.sun.image.codec.jpeg.*; 
//JPEGServlet继承了HttpServlet
public void doGet(Htt]]></description><category></category></item><item><title><![CDATA[JSP监听器与过滤器]]></title><link>https://blog.csdn.net/vtison/article/details/37869957</link><guid>https://blog.csdn.net/vtison/article/details/37869957</guid><author>vtison</author><pubDate>Wed, 16 Jul 2014 09:00:03 +0800</pubDate><description><![CDATA[上下文监听器，也有HTTP会话(session)监听器MySessionListener实现了不同的接口HttpSessionActivationListener,HttpSessionBindingListener,HttpSessionAttributeListener,HttpSessionListener,ServletContextListener接口]]></description><category></category></item><item><title><![CDATA[三种获取表单值的处理页面]]></title><link>https://blog.csdn.net/vtison/article/details/37870245</link><guid>https://blog.csdn.net/vtison/article/details/37870245</guid><author>vtison</author><pubDate>Wed, 16 Jul 2014 08:59:16 +0800</pubDate><description><![CDATA[第一种(最常用的)
request.getParameter("name");

第二种(使用usebaen)
写一个usebean，其变量名需要与表单name一致，get和set函数为小写，放在src目录下，将在WEB-INFO目录下的classes文件夹下生成包和class类。

 需要与usebean动作元素连用，不然会报错，该动作元素用于设置bean的简单和索引属性。
对id]]></description><category></category></item><item><title><![CDATA[用Get提交数据乱码的处理情况]]></title><link>https://blog.csdn.net/vtison/article/details/37869795</link><guid>https://blog.csdn.net/vtison/article/details/37869795</guid><author>vtison</author><pubDate>Wed, 16 Jul 2014 08:51:23 +0800</pubDate><description><![CDATA[用POST方法 

提交的网页假如设置为gb2312编码，则处理页面应为
response.setContentType("text/html;charset=gb2312");

response.setCharacterEncoding("gb2312");

request.setCharacterEncoding("gb2312");
而页面指令设置可以为
    对当前]]></description><category></category></item><item><title><![CDATA[config内置对象计数器]]></title><link>https://blog.csdn.net/vtison/article/details/37868973</link><guid>https://blog.csdn.net/vtison/article/details/37868973</guid><author>vtison</author><pubDate>Wed, 16 Jul 2014 08:41:38 +0800</pubDate><description><![CDATA[该页面为config.jsp
 int org=0;
int count=0;

 try{                          //得到web.xml配置文件参数名为counter的值
   org=Integer.parseInt(config.getInitParameter("counter"));   
   }catch(Exception e){
   out.pri]]></description><category></category></item><item><title><![CDATA[cookie(一)]]></title><link>https://blog.csdn.net/vtison/article/details/37868593</link><guid>https://blog.csdn.net/vtison/article/details/37868593</guid><author>vtison</author><pubDate>Wed, 16 Jul 2014 08:33:05 +0800</pubDate><description><![CDATA[list获取cookie列表，返回按适当顺序在列表的元素上进行迭代的迭代器，遍历cookie，

temp得到cookie，如果得到的cookie是这个名字，就赋给cookie_response。

得到了想要的cookie，输出cookie_response的值，并再一次赋值，以确定这次登录的时间值。

没有得到想要的cookie，就赋给cookie_response一个名字为use]]></description><category></category></item><item><title><![CDATA[MyEclipse快捷键及经验总结]]></title><link>https://blog.csdn.net/vtison/article/details/37659007</link><guid>https://blog.csdn.net/vtison/article/details/37659007</guid><author>vtison</author><pubDate>Thu, 10 Jul 2014 16:45:32 +0800</pubDate><description><![CDATA[Ctrl+Shift+L    显示所有快捷键
 Ctrl+K      参照选中的词(Word)快速定位到下一个
 Ctrl+Shift+K    参照选中的词(Word)快速定位到上一个
 
 Ctrl+O      快速显示OutLine 
 Ctrl+T      快速显示当前类的继承结构
 Ctrl+Shift+X    把选中文本全部改为大写
 Ctrl+Shift+Y ]]></description><category></category></item><item><title><![CDATA[JSTL标签库]]></title><link>https://blog.csdn.net/vtison/article/details/37654841</link><guid>https://blog.csdn.net/vtison/article/details/37654841</guid><author>vtison</author><pubDate>Thu, 10 Jul 2014 13:20:36 +0800</pubDate><description><![CDATA[这是一个简单的JSTL应用
     
     <%
     	Collection cs=new ArrayList();
     	cs.add("gust1");
     	cs.add("gust2");
     	cs.add("gust3");
     	request.setAttribute("customers", cs);
      %>
      
     ]]></description><category></category></item><item><title><![CDATA[JSP自定义标签]]></title><link>https://blog.csdn.net/vtison/article/details/37654715</link><guid>https://blog.csdn.net/vtison/article/details/37654715</guid><author>vtison</author><pubDate>Thu, 10 Jul 2014 13:18:58 +0800</pubDate><description><![CDATA[BodyTagSupport中的说明和启动顺序，也供其它创建标签方式参考。
doStartTag可以返回EVAL_BODY_INCLUDE表示计算标签的Body，返回SKIP_BODY表示不计算标签的BODY
doAfterBody返回EVAL_BODY_TAG表示继续计算一次BodyTag直到返回SKIP_BODY才向下执行
doEndTag返回EVAL_PAGE，容器将在标签结束后继续计]]></description><category></category></item><item><title><![CDATA[JSP自定义标签]]></title><link>https://blog.csdn.net/vtison/article/details/37652251</link><guid>https://blog.csdn.net/vtison/article/details/37652251</guid><author>vtison</author><pubDate>Thu, 10 Jul 2014 11:22:02 +0800</pubDate><description><![CDATA[doStartTag可以返回EVAL_BODY_INCLUDE表示计算标签的Body，返回]]></description><category></category></item><item><title><![CDATA[分页代码]]></title><link>https://blog.csdn.net/vtison/article/details/37584415</link><guid>https://blog.csdn.net/vtison/article/details/37584415</guid><author>vtison</author><pubDate>Wed, 09 Jul 2014 00:50:05 +0800</pubDate><description><![CDATA[<%
//驱动程序名
String driverName="org.gjt.mm.mysql.Driver";

//数据库用户名
String userName="root";

//密码
String userPasswd="2552441";

//数据库名
String dbName="bookstore";

//表名
String tableName="items";
//联结字符串
]]></description><category></category></item></channel></rss>