Topic: jbuilder9完美集成struts1.1(原创)

  Print this page

1.jbuilder9完美集成struts1.1(原创) Copy to clipboard
Posted by: Johnny
Posted on: 2003-08-21 15:25

1。下载struts1.1完整的source包放到jbuilder/extra下
2。在jbuilder中添加struts1.1的lib,这一步和添加普通的lib没有区别,选择菜单Tools|Configure Libraries新建一个lib取名Struts 1.1,将Struts 1.1的lib下面的所有jar加到classes页, 注意这时不要关闭对话框,选择framework页,选择framework为struts,然后点确定关闭对话框。这样你会看到struts 1.1的lib的图标和其它framework(struts1.0,cocoon等)的图标一样了,而不再是普通的lib图标。完成后就能在jbuilder其它地方选择framework时看到struts 1.1
如果需要把现有的struts1.0项目转成1.1的,首先把webapp属性里的framework选为struts1.1,然后修改struts-config.xml如下:
把第二行的<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration
1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
改为
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration
1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
就可以了,这时就能看到jbuilder可视化配置struts exception和message resource等1.1才有的东西了

2.Re:jbuilder9完美集成struts1.1(原创) [Re: Johnny] Copy to clipboard
Posted by: nothing
Posted on: 2003-08-21 18:35

真是不错,谢谢楼主.

3.Re:jbuilder9完美集成struts1.1(原创) [Re: Johnny] Copy to clipboard
Posted by: DennisChuang
Posted on: 2003-08-22 08:30

感謝前輩分享~~~
小弟正在研究Struts
謝謝~

4.Re:jbuilder9完美集成struts1.1(原创) [Re: Johnny] Copy to clipboard
Posted by: collins
Posted on: 2003-08-26 20:48

还是不能在jbulder生成ActionBean的时候使用execute()方法啊

5.Re:jbuilder9完美集成struts1.1(原创) [Re: collins] Copy to clipboard
Posted by: 主管
Posted on: 2003-08-26 21:12

听说JB10.0测试版就直接支持struts1.1了,省了很多麻烦
等待JB10.0正式版的发布Tounge

6.Re:jbuilder9完美集成struts1.1(原创) [Re: Johnny] Copy to clipboard
Posted by: chenyajun5
Posted on: 2003-08-26 21:50

你如何知道的呢??SmileSmile

7.Re:jbuilder9完美集成struts1.1(原创) [Re: Johnny] Copy to clipboard
Posted by: richart
Posted on: 2003-08-27 10:50

这个配置方法在Jbuiler9 自带的帮助中就已经有了!

8.Re:jbuilder9完美集成struts1.1(原创) [Re: richart] Copy to clipboard
Posted by: nothing
Posted on: 2003-08-27 11:01

不是吧,我昨天看的jb9帮助中,不是这么写的啊.

9.Re:jbuilder9完美集成struts1.1(原创) [Re: Johnny] Copy to clipboard
Posted by: bbbaby
Posted on: 2003-09-08 09:06

啊??反正是个办法,用了再说~~^_^


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923