Jbuilder8开发J2ee学习笔记(8) (转)

Jbuilder8开发J2ee学习笔记(8) (转)[@more@]

Jbuilder8开发J2EE学习笔记(8)XML:namespace prefix = o ns = "urn:schemas-microsoft-com:Office:office" />

    作者:缪青

现在加入我们的资源文件ApplicationResources.properties

这个文件为纯文本文件,内容为

login.title=struts Demo

login.heading=

Welcome to the StrutsDemo !

login.message=Welcome to the StrutsDemo !

input.xiwbz=Please input xiwbz :

input.shancbz=Please input shancbz :

loginOK.title= User Login Successfull

inputOK.message=

Login Successfull !

error.shancbz.required=

shancbz is Required !

error.xiwbz.required=

xiwbz is Required !

error.Shancbz.wrong=

Shancbz is Wrong !

error.Xiwbz.wrong=

Xiwbz is Wrong !

errors.footer=


errors.header=

Validation Error

You must correct the following error(s) before proceeding:

开发好后放到srcstrutsdemo下,加入项目后,选这个文件的属性如下:

ASPectratio="t">

.NET/develop/article/imagesclip_image001_19272.png" align=baseline border=0> 

 

 

双击struts-config.xml,做如下修改:

一左一右的Path,Name很清楚的映射关系了吧。

双击web.xml,双击servlets->action,

做如下增加application->strutsdemo.ApplicationResources:

1.如何发布

现在struts-config.xml和web.xml都修改好了,编译我们的StrutsDemo一切成

功后,拷贝WEB-INF目录,和input.JSP,inputError.jsp,inputOK.jsp到C:beawlserver6.1configmydomainapplicationsDefaultWebApp下就好了,当然这时候WEBLOGIC6.1应该运行着

2.测试

Ie中地址栏书写http://127.0.0.1:7001/input.jsp,这里的127.0.0.1你可以按具

体环境改。第一页是输入部分,程序要求用户输入2个大于等于2位的字符,或是数字,通过后会有成功页面。如果有错误,会进入相应的错误页面。

 

备注

  Jbuilder8开发JSP要安装补丁,请在网络上寻找。也可以在CSDN上寻找。

Mailto:topgun1@21cn.com" rel="nofollow">有什么看法可以发邮件topgun1@21cn.com给我,大家探讨。

  可以转帖,但是没经过授权希望不要修改本文档。

  本文档参考了,CSDN上的一些文章,在次对这些文章的作者表示感谢。


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10752043/viewspace-997887/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10752043/viewspace-997887/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值