菠萝三国

大江东去,浪淘尽...
随笔 - 34, 文章 - 47, 评论 - 22, 引用 - 0
数据加载中……

To install JSEclipse

  1. Open the Eclipse workbench.
  2. To install new software with the Update manager, in the main Eclipse menu, go to Help > Software Updates ->Find and Install.
  3. In the user interface that opens, select the Search for new features to install.
  4. In the next step you choose what locations will be searched. If this is the first time installing JSEclipse, you have to add a New remote site. If you already have it defined, skip to step 7.
  5. To define a new site to be searched for available plugins, in the user interface click the New Remote Site button.
  6. The New Update Site dialog box opens. It contains two fields that must be completed:
  7. Check the newly added entry's checkbox. This will set it as active for the software search. You can disable or enable sites on which the software search is performed by checking, respectively un-checking them in the user interface
  8. Click Finish to start searching for software. A new window will appear showing the search progress.
  9. Once the search completes, a list of the features available on the remote site will be displayed, with their respective version, using an hierarchical display
  10. Select the feature to install by checking its checkbox. Click Next to continue.
  11. The license agreement for each selected feature is displayed next. You must accept the licence agreement in order to continue with the install process. Click the I accept the terms in the license agreement radio button, then Next to move on.
  12. Next select where to install the plugin. By default, it is the current folder. Use the default and click Finish to install.
  13. If your configuration is set to check plugins for a digital signature, a confirmation window is displayed, warning if the plugin is not digitally signed. Simply click Install to close the window and install the plugin
  14. After the installation is completed, and all features have been copied to the desired location, a dialog box will ask for a restart of the workbench. Although some features can be enabled without restarting the workbench, a restart is recommended. Select Yes.
  15. JSEclipse has been installed.

posted @ 2007-10-31 22:16 菠萝 阅读(251) | 评论 (0)编辑 收藏

JSTL简介

     摘要: JSTL简介
JSTL是一个不断完善的开放源代码的JSP标签库,是由apache的jakarta小组来维护的。JSTL只能运行在支持JSP1.2和Servlet2.3规范的容器上,如tomcat 4.x。但是在即将推出的JSP 2.0中是作为标准支持的。  阅读全文

posted @ 2007-10-24 12:32 菠萝 阅读(271) | 评论 (0)编辑 收藏

Eclipse支持PHP自动提示

其实如果你已经安装好了php环境(安装过程见)的话,只需要下面2步就可以了。hoho,很简单的。

1,下载eclipse中php的插件
地址:http://www.phpeclipse.de/tiki-view_articles.php
http://prdownloads.sourceforge.n ... ip?use_mirror=jaist

2,解压缩。plugins文件夹下内容copy至eclipseplugins文件夹下,features文件夹下内容copy至eclipsefeatures文件夹下。

使用Eclipse环境来编写PHP程序,以下是详细说明。有基础的朋友可以不看。

简单介绍:
Eclipse,著名开源软件,IDE,广泛用于Java开发等。
加上相应插件后,可支持大部分编程语言。

使用前提:
已正确搭建安装了AMP(A=Apache, M=Mysql, P=PHP)环境,操作系统平台不限

下载:
Eclipse3.0.1: http://www.eclipse.org/downloads/index.php
(选择适合你系统的相应版本,支持windows,linux,max等,建议选择最新版本3.0.1)

PHPeclipse插件: http://sourceforge.net/project/ showfiles.php?group_id=57621
(同上,最新版本1.1.2)

安装:
均为绿色软件,无须安装
将下载回来的Eclipse压缩包解开,放到常用安装软件文件夹即可(请勿急着马上启动Eclipse)
将PHPeclipse插件(下载的压缩包内有features及plugins两个文件夹,跟Eclipse目录下的一样,应该是对应的)解压到Eclipse相应目录下即可
注意:
如果已经事先安装过Eclipse或者在未解压插件之前已经启动过,因为它第一次启动会扫描全部xml文件并缓存以加快启动速度,所以PHP插件不会被马上识别。需要用选项-clean来强行启动一次。(win下直接cmd到Eclipse目录再Eclipse.exe –clean即可,其他平台类似)

配置:
1、Eclipse启动比较慢,在硬件配置比较好的机器上也需要好几秒钟,请耐心等待。首次启动会让你选择工作目录(workspace),制定后打个勾下次就不会再问。
2、另外指定一个用来放置PHP项目的目录,如果不指定默认就在workspace的子目录下,最好事先想好名字,比如我的:workspace/phpeclipse
3、修改httpd.conf文件,新建一个指向workspace/phpeclipse的别名(Alias)---PHP安装的问题,恕不多述。我这里还是叫phpeclipse。当然如果你把PHP项目放在DocumentRoot下的话这步就可以省略了。
4、本次启动后会发现菜单和工具栏上多了一些东西(如果你之前用过Eclipse的话,呵呵)
到Window - Preferences – PHPeclipse Web Development – PHP中指定一下你的PHP环境中Apache,php,mysql三个执行文件的相应位置,至于参数似乎默认的就可以了,我用的是Apache2,修改了一下,启动用:-w -n "Apache2" -k start ;停止用:-w -n "Apache2" -k stop;重启用-w -n "Apache2" -k restart
这样工具栏上的那几个apache和mysql的按钮就可以用了。

使用:
菜单->new->Project->PHP->PHP Project,指定一个名字,然后就可以用了,不过要注意跟前面的别名部分对应,否则无法访问
在Navigator栏的项目名称上右击,new一个php file,然后保存,Eclipse就自动打开web browser显示结果了。相当不错。主要是看中它集成开发的方便性,代码块伸缩,自动完成等众多特性。

关于在Eclipse中加入PHP插件的更详细内容可以参考这篇文章(英文):
http://www.phpbuilder.com/columns/c...921.php3?page=1
PHPeclipse插件的主页在 http://phpeclipse.de/ ,安装中如果有问题或者需要更详细的文档可以到上面去找寻。

posted @ 2007-10-22 12:51 菠萝 阅读(280) | 评论 (0)编辑 收藏

Total Commander双击*.lnk弹出“在执行程序时出错”的问题

 注册项HKEY_CLASSES_ROOT\lnkfile ,新建名为IsShortcut的字符串值,内容为空。
    重启TC后问题解决。

posted @ 2007-10-20 16:53 菠萝 阅读(1030) | 评论 (2)编辑 收藏

我的链接

EXT:
    Eclipse插件:http://www.spket.com/ 
    http://extjs.com/blog/2007/06/29/building-a-desktop-application-with-ext-air-aptana-and-red-bull/

posted @ 2007-10-17 21:51 菠萝 阅读(131) | 评论 (0)编辑 收藏

解决WinXP网络不能互相访问

     摘要: 由WIN XP构成的网络所有设置和由WIN 2000构成的完全一样,但还是出现了根本不能访问的情况,笔者认为这主要是因为XP的安全设置和2000不一样所导致。针对这个问题笔者在网上查了一些资料,并将各种网上提供的常见解决方法做了相应测试,现在整理介绍给大家,希望能对遇到此问题的网友有所帮助,并请高手继续指点。部分内容摘自网络,请原谅不一一注明出处。   首先,这里不考虑物理联接和其它问题,只谈及策略问题。此外,请安装相应的协议并正确的设置IP地址,同时尽量把计算机设置在一个工作组内且具有相同网段的IP地址。
  阅读全文

posted @ 2007-10-09 20:34 菠萝 阅读(257) | 评论 (0)编辑 收藏

局域网中无法访问的解决方法

     摘要: 笔者刚刚安装完一台员工计算机,该计算机操作系统是windows XP,领导决定以后这台计算机就担任公司数据存放工作,所以日后需要对其进行远程管理操作。所以笔者也像往常一样,开启了该系统的远程桌面连接功能。谁知道在网络中的其他计算机通过远程桌面连接程序访问时却出现了“中断远程桌面连接,远程计算机已结束连接”的提示,也就是说能够连接上但是马上中断,根本没有给予输入管理员用户名和密码的时间。(  阅读全文

posted @ 2007-10-07 19:45 菠萝 阅读(428) | 评论 (0)编辑 收藏

由于帐户限制,您无法登陆 -- 远程桌面无法登录问题解决方法

在WINDOWS XP下,不管是从网络上访问其他机器,还是使用远程桌面功能登录系统,常常遇到类似“由于帐户限制你无法登录”的提示,这是由于你所使用的登录帐号的密码为空,并且所要登录的远程计算机中的“组策略”禁止空密码用户通过网络登录引起的。只要修改该配置即可,方法是:在远程计算机上启动“组策略编辑器”(开始-运行-GPEDIT.MSC),在“WINDOWS设置-安全设置-本地策略-安全选项”中找到“使用空白密码的本地帐户只允许进行控制台登录”,将其设置为“已停用”就可以了,另一种方法则是把你所使用的登录账号设置为非空密码。

posted @ 2007-10-07 19:43 菠萝 阅读(9127) | 评论 (1)编辑 收藏

PropEdit的安装,Eclipse下properties的转码问题

在此想和大家分享一个不错的编写properties文件的Eclipse插件(plugin),有了它我们在编辑一些简体中文、繁体中文等Unicode文本时,就不必再使用native2ascii编码了。您可以通过Eclipse中的软件升级(Software Update)安装此插件,步骤如下:
1、展开Eclipse的Help菜单,将鼠标移到Software Update子项,在出现的子菜单中点击Find and Install;
2、在Install/Update对话框中选择Search for new features to install,点击Next;
3、在Install对话框中点击New Remote Site;
4、在New Update Site对话框的Name填入“PropEdit”或其它任意非空字符串,在URL中填入http://propedit.sourceforge.jp/eclipse/updates/;
5、在Site to include to search列表中,除上一步加入的site外的其它选项去掉,点击Finsih;
6、在弹出的Updates对话框中的Select the features to install列表中将所有结尾为“3.1.x”的选项去掉(适用于Eclipse 3.2版本的朋友);
7、点击Finish关闭对话框;
8、在下载后,同意安装,再按提示重启Eclipse,在工具条看到形似vi的按钮表示安装成功,插件可用。此时,Eclpise中所有properties文件的文件名前有绿色的P的图标作为标识。

posted @ 2007-09-10 09:24 菠萝 阅读(929) | 评论 (0)编辑 收藏

jstl fmt 标签学习笔记

<fmt:bundle>:资源绑定。除了以前提到过的在web.xml中声明以外,还可以利用此标签。例<fmt:bundle basename="message"></fmt:bundle>

<fmt:setLocale>:设置locale,主要是用于这种情况,一个中国人在国外,locale是en_US,但想用中文显示。例:<fmt:setLocal value="zh_CN"/>

<fmt:message>:输出properties文件中的指定内容。例<fmt:message key="user"/>

<fmt:formatNumber type="number">格式化普通数字
<fmt:formatNumber type="percent">格式化百分比

三种数字类型参数:currency,number,percent

<fmt:parseNumber var="i" type="number" value="45678.2345" />
 <c:out value="${i}"  escapeXml="false" />  分析出数字

<fmt:requestEncoding value="GB18030"/> 格式化文本编码

<fmt:formatDate value="${date}" type="both" timeStyle="long" dateStyle="long" />
type="both" 输入日期也同时输出具体时间
timeStyle="long" 时间以“长”格式输出  差别:下午02时06分59秒 与 14:06:59
dateStyle="long" 日期以“长”格式输出  差别:2006年9月7日 与 2006-9-7

四种长短参数:long,short,medium,full

<fmt:timeZone value="${timezone}"/>  时区偏移,与上面可配合使用:
<fmt:formatDate value="${d}" timeZone="${zn}" type="both" />

<fmt:parseDate var="i" type="date" value="2006-12-11" />
 <c:out value="${i}"  escapeXml="false" /> 分析出时间

 

posted @ 2007-09-09 16:13 菠萝 阅读(2246) | 评论 (0)编辑 收藏

仅列出标题
共4页: 上一页 1 2 3 4 下一页