ITPub博客

首页 > 应用开发 > IT综合 > Jbuilder8开发J2ee学习笔记(8) (转)

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

原创 IT综合 作者:gugu99 时间:2007-08-15 13:38:05 0 删除 编辑
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:eawlserver6.1configmydomainapplicationsDefaultWebApp下就好了,当然这时候WEBLOGIC6.1应该运行着

    2.测试

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

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

     

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

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

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

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


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

请登录后发表评论 登录
全部评论
  • 博文量
    3121
  • 访问量
    2643809