JAVA IDE之烦恼

   在计算机开发语言的历史中,从来没有哪种语言象Java那样受到如此众多厂商的支持,有如此多的开发工具,Java菜鸟们如初入大观园的刘姥姥,看花了眼,不知该何种选择。

    颠来倒去最后在我的那台破电脑上折腾的一个晚上,最后JBUILDER、ECLIPSE和JCREATOR,当然当然还是有JDK的。

    JBUILDER大名鼎鼎的宝兰德公司出品,JBUILDER我的新欢,DILPHI我的最爱;但愿别给你忠实的粉丝下马威了

    ECLIPSE著名开源IDE工具,就冲它开源的模式也要弄上一弄,不过好像上手蛮难的。

    JCREATOR似乎平平无奇,但是编程界面很舒服,而且看起来就比较好用,缺点嘛,还不是很清楚。

    那位大大有空可以帮偶参考一下下

我也可以访问电信网站了^_^(转)

转自:http://blog.matrix.org.cn/page/inclear?entry=%E6%88%91%E4%B9%9F%E5%8F%AF%E4%BB%A5%E8%AE%BF%E9%97%AE%E7%94%B5%E4%BF%A1%E7%BD%91%E7%AB%99%E4%BA%86

我也可以访问电信网站了^_^ 2006年06月05日, 03:07:49 下午 CST in category 自省札记 by inclear

今天在网上看到一个链接,介绍了一种可以解决网通-电信之间互联互通问题的软件,哎呀,这可是困扰了我很久的一个问题,马上去看看。

网址:http://www.tywg.com/

注册了一个用户名,下载了软件,连接上去一看,哇,真的好用哦~~~~~象Matrix,CJSDN等以前访问起来比牛还慢的网站现在都非常流畅,心情顿时大好

不过这个软件仅是目前是免费的,将来看来要收费了,不过,将来的问题将来再说吧,享受先喽

Permalink 留言 [0]

反向跟踪 URL: http://blog.matrix.org.cn/trackback/inclear/Weblog/%E6%88%91%E4%B9%9F%E5%8F%AF%E4%BB%A5%E8%AE%BF%E9%97%AE%E7%94%B5%E4%BF%A1%E7%BD%91%E7%AB%99%E4%BA%86

svhda.exe,Backdoor.Rbot,瑞星也搞不定的病毒

  我是瑞星的正版用户。今天,瑞星提示我一个名叫svhda.exe文件在改写注册表,我当然不会让它改写。用瑞星去查毒,结果一会儿瑞星就自行退出了。在纯dos下查毒也不行,看来是碰到硬货了。

  上网用svhda.exe查了一下,百度没有查到,用google查,有22项,其中包括百度的“百度知道_反病毒_待解决问题”中的一页中文的,看来,前沿的技术性的东西还是google行。估计是这个病毒目前主要是在国外流行,中国还没有流行起来吧。

  最后是根据这个国外论坛的方法解决这个病毒的:http://forums.techguy.org/security/470410-annoying-virus-please-help.html

  真正解决问题的是一个叫作:Ewido Security Suite的软件。

  使用说明如上面论坛的:

  


27-May-2006 11:40 AM 

 Cheeseball81  

Moderator  Posts: 44,883

Join Date: Mar 2004

Location: New York

Experience: Nerd

 

* Click here to download the trial version of Ewido Security Suite.

· Install Ewido.

· During the installation, under "Additional Options" uncheck "Install background guard" and "Install scan via context menu".

· Launch ewido.

· It will prompt you to update click the OK button and it will go to the main screen.

· On the left side of the main screen click update.

· Click on Start and let it update.

· DO NOT run a scan yet.

Restart your computer into Safe Mode now.

(Start tapping the F8 key at Startup, before the Windows logo screen).

Perform the following steps in Safe Mode:

* Run Ewido:

Click on scanner

Click Complete System Scan and the scan will begin.

During the scan it will prompt you to clean files, click OK.

When the scan is finished, look at the bottom of the screen and click the Save report button.

Save the report to your desktop.

Reboot.

   

  使用截图如下:



另外,其中还介绍一个叫作Hijack This的软件,英文不大懂,好像是一个查看、删除常驻内存进程的工具。论坛中的作用就是用它,在上面那个Ewido执行前和后来查看比较内存中的进程的。正如下面所说,它查出来的东西不一定是病毒,有些是系统的和用户定制的。

使用说明如下:


26-May-2006 03:41 PM 

 Cheeseball81  

Moderator  Posts: 44,883

Join Date: Mar 2004

Location: New York

Experience: Nerd

 

Hi and welcome

* Click here to download HJTsetup.exe.

Save HJTsetup.exe to your desktop.

Double click on the HJTsetup.exe icon on your desktop.

By default it will install to C:\Program Files\Hijack This.

Continue to click Next in the setup dialogue boxes until you get to the Select Addition Tasks dialogue.

Put a check by Create a desktop icon then click Next again.

Continue to follow the rest of the prompts from there.

At the final dialogue box click Finish and it will launch Hijack This.

Click on the Do a system scan and save a log file button. It will scan and then ask you to save the log.

Click Save to save the log file and then the log will open in notepad.

Click on "Edit > Select All" then click on "Edit > Copy" to copy the entire contents of the log.

Come back here to this thread and Paste the log in your next reply.

DO NOT have Hijack This fix anything yet. Most of what it finds will be harmless or even required.

__________________

Peter: Oh my god Brian, there's a message in my Alpha-Bits. It says, 'Oooooo.'

Brian: Peter, those are Cheerios.

Member of ASAP

Microsoft MVP/Windows - Security

If we've helped, please donate to TSG.

使用截图如下:



问题:搞不懂HttpServletRequest的getCharacterEncoding()方法了

运行Struts中那个upload的例子,当使用那个upload-utf8.jsp上传文件时,上传后转到display.jsp时,显的总是乱码。就算在display.jsp中设置了<%@ page contentType="text/html; charset=utf-8" %>也没有用。

如下:

upload-utf8.jsp的设置:


<%@ page language="java" contentType="text/html; charset=gbk" %>

action:


            String encoding = request.getCharacterEncoding();

            System.out.println("the encoding is: "+ encoding);

            if ((encoding != null) && (encoding.equalsIgnoreCase("utf-8")))

            {

                response.setContentType("text/html; charset=utf-8");

            }

虽然在upload-utf8.jsp中也指定了utf8编码,但是在request.getCharacterEncoding();得到的encoding总是null,也就是没有在request中没有指定编码,明明是指定了的呀?怪事。

还有,就是那个upload.jsp,在昨天的运行中还是在display.jsp中出现了乱码,可是今天却没有了,搞不懂,怪事。

初识

编程年龄也有6年多了,都是再使用DELPHI和C++等,最近刚开始学习JAVA语言,对这个领域相对很陌生,基本上算是从0开始。

所谓万丈高楼平地起,什么事情都要一步一步来。

这两天接触并查阅了大量的关于JAVA的资料,发现说它是一个庞大的家族并不为过,相反自己倒有点看的头晕目眩的了,为了不迷失在这片茂密的JAVA森林里面,决定定下初步的学习方向,由于本人过去做的都是基于C/S结构的应用程序,所以现在本人将目标放在了B/S的目标上面。

提起JAVA首先几乎所有程序员都知道它的语言的开放性和在世界级的广泛应用(相形之下本人以前学习的DELPHI和C++都可怜的很),而且还有伴随着JAVA的J2EE/J2ME等等架构。

我学习的第一个疑问就是J2EE究竟是什么,它到底有什么用处?

翻阅了很多网络上的资料,但是发现各位发资料的大大们好像都是高手中的高手,将一个J2EE写的惊天动地的,看了半天也完全没看明白。最后只好清楚的认识到自己的水平实在太低了,遂打消掉一步登天的念头决定从最简单的开始做起。

struts在上传文件过程中如何自动建立文件夹(转)

转自:http://bbs.chinajavaworld.com/thread.jspa?messageID=724084&tstart=0

 struts上传文件问题

发表于: 2006-5-23 下午9:27         回复 

 

struts在上传文件过程中如何自动建立文件夹?并根据上传的文件名存入不同的文件夹中?如果能有具体的例子代码更好。请各位多多指教,十分感谢!

 

·Hibernate查询出错 

 

chenyanji 

 

 

发表: 268

点数: 80

来自: 北京

注册: 05-3-1 

  Re: struts上传文件问题

发表于: 2006-5-26 下午11:53    原帖: springlet         回复 

 

还是应该用FILE处理吧

 

POPO帐号:yanji94521 QQ:309157714 MSN:yanji94521@hotmail.com 欢迎加入IT交流QQ群:5468368

 

·不需要编写actionForm、action来完成struts架构。 

 

gzxthebest 

 

 

发表: 9

点数: 100

注册: 05-9-23 

  Re: struts上传文件问题

发表于: 2006-5-29 上午1:16    原帖: springlet         回复 

 

自动创建文件夹?还真没实现过,关注中

 

·关于jsp页面执行问题 

 

test_1982 

 

发表: 116

点数: 100

注册: 05-7-26 

  Re: struts上传文件问题

发表于: 2006-5-29 下午1:30    原帖: springlet         回复 

 

可以通过file对象创建文件夹的。

1: 如果不存在{

File file = new File("d:/testD");

file.mkdir();

}

这样就创建了一个文件夹。后面的你应该知道如何递归的创建文件夹了吧。

 

Knowing how to make the one of the most abilities counts for much more

 

·大家好 关于3gp文件的转换 

 

JavaScript精简学习4:表单(转帖)

转自:http://www.dvbbs.net/tech/js/2006041949627.asp

 JavaScript精简学习4:表单

作者: 来源:

阅读 156 人次 , 2006-4-19 16:47:00

43 表单构成

1: <form method=”post” action=”target.html” name=”thisForm”>

2: <input type=”text” name=”myText”>

3: <select name=”mySelect”>

4: <option value=”1”>First Choice</option>

5: <option value=”2”>Second Choice</option>

6: </select>

7: <br>

8: <input type=”submit” value=”Submit Me”>

9: </form>

44 访问表单中的文本框内容

1: <form name=”myForm”>

2: <input type=”text” name=”myText”>

3: </form>

4: <a href='#' onClick='window.alert(document.myForm.myText.value);'>Check Text Field</a>

45 动态复制文本框内容

1: <form name=”myForm”>

2: Enter some Text: <input type=”text” name=”myText”><br>

3: Copy Text: <input type=”text” name=”copyText”>

4: </form>

5: <a href=”#” onClick=”document.myForm.copyText.value =

6: document.myForm.myText.value;”>Copy Text Field</a>

46 侦测文本框的变化

1: <form name=”myForm”>

2: Enter some Text: <input type=”text” name=”myText” onChange=”alert(this.value);”>

3: </form>

47 访问选中的Select

1: <form name=”myForm”>

2: <select name=”mySelect”>

3: <option value=”First Choice”>1</option>

4: <option value=”Second Choice”>2</option>

5: <option value=”Third Choice”>3</option>

6: </select>

7: </form>

8: <a href='#' onClick='alert(document.myForm.mySelect.value);'>Check Selection List</a>

48 动态增加Select项

1: <form name=”myForm”>

2: <select name=”mySelect”>

3: <option value=”First Choice”>1</option>

4: <option value=”Second Choice”>2</option>

5: </select>

6: </form>

7: <script language=”JavaScript”>

8: document.myForm.mySelect.length++;

9: document.myForm.mySelect.options[document.myForm.mySelect.length - 1].text = “3”;

10: document.myForm.mySelect.options[document.myForm.mySelect.length - 1].value = “Third Choice”;

11: </script>

49 验证表单字段

1: <script language=”JavaScript”>

2: function checkField(field) {

3: if (field.value == “”) {

4: window.alert(“You must enter a value in the field”);

5: field.focus();

6: }

7: }

8: </script>

9: <form name=”myForm” action=”target.html”>

10: Text Field: <input type=”text” name=”myField”onBlur=”checkField(this)”>

11: <br><input type=”submit”>

12: </form>

50 验证Select项

1: function checkList(selection) {

2: if (selection.length == 0) {

3: window.alert(“You must make a selection from the list.”);

4: return false;

5: }

6: return true;

7: }

51 动态改变表单的action

1: <form name=”myForm” action=”login.html”>

2: Username: <input type=”text” name=”username”><br>

3: Password: <input type=”password” name=”password”><br>

4: <input type=”button” value=”Login” onClick=”this.form.submit();”>

5: <input type=”button” value=”Register” onClick=”this.form.action = ‘register.html’; this.form.submit();”>

6: <input type=”button” value=”Retrieve Password” onClick=”this.form.action = ‘password.html’; this.form.submit();”>

7: </form>

52 使用图像按钮

1: <form name=”myForm” action=”login.html”>

2: Username: <input type=”text” name=”username”><br>

3: Password: <input type=”password”name=”password”><br>

4: <input type=”image” src=”login.gif” value=”Login”>

5: </form>

6:

53 表单数据的加密

1: <SCRIPT LANGUAGE='JavaScript'>

2: <!--

3: function encrypt(item) {

4: var newItem = '';

5: for (i=0; i < item.length; i++) {

6: newItem += item.charCodeAt(i) + '.';

7: }

8: return newItem;

9: }

10: function encryptForm(myForm) {

11: for (i=0; i < myForm.elements.length; i++) {

12: myForm.elements.value = encrypt(myForm.elements.value);

13: }

14: }

15:

16: //-->

17: </SCRIPT>

18: <form name='myForm' onSubmit='encryptForm(this); window.alert(this.myField.value);'>

19: Enter Some Text: <input type=text name=myField><input type=submit>

20: </form>

上面的encryptForm方法把表单中的数据转换为编码,在提交表单之前完成了简单的表单数据加密~