怎样在jb9中配置struts1.1

zhoukai1980 2003-08-20 05:11:09
最好详细点,谢谢大家
...全文
38 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
梦幻圣者 2003-08-21
  • 打赏
  • 举报
回复
配置很简单的,基本上和jb8一样的
zhoukai1980 2003-08-21
  • 打赏
  • 举报
回复
好像很简单的样子阿

是不是按照jb8 那么配置阿
tcby2000 2003-08-21
  • 打赏
  • 举报
回复
它自带是1.0。要1.1,自己去官方网站下,建立一个STRUTS1.1的文件夹把相应的包放进去就可以。再在JB9里的TOOLS-》CONFIG LIBRARIES下NEW 一个STRUTS1.1的USERHOME,把相干的包加到CLASSES里就可以
zeros 2003-08-21
  • 打赏
  • 举报
回复
不需要配置,因为JB9集成了Struts框架,你只需要新建一个工程后,然后在建一个ActionForm,之后在建一个Action就行了,在建立ActionForm之前要把你的JSP页面作好,最后配置一下struts-config.xml就可以了!
梦幻圣者 2003-08-21
  • 打赏
  • 举报
回复
帮你up
zhoukai1980 2003-08-21
  • 打赏
  • 举报
回复
分不够可以再加吗

顶也有分

再说这个问题很多人都想知道
willmas 2003-08-21
  • 打赏
  • 举报
回复
第四步工作只是在需要把现有的1.0的项目转成1.1时才需要,如果时新建struts项目,
则不需要,自动生成的struts-config.xml用的就是1.1的dtd
willmas 2003-08-21
  • 打赏
  • 举报
回复
注意在第二步最后先不要关闭lib对话框,在framework页选择struts,然后点确定完成。
这样你会看到struts 1.1的lib的图标和其它framework(struts1.0,cocoon等)的图标
一样了,而不再是普通的lib图标。完成后就能在jbuilder其它地方选择framework时看到
struts 1.1而且不会覆盖原来的struts1.0
willmas 2003-08-21
  • 打赏
  • 举报
回复
To set up Struts 1.1 for use in JBuilder, follow these steps:

1. Download Struts 1.1 into a folder in the <jbuilder>/extras folder.

2. Use the Configure Libraries dialog box (Tools|Configure Libraries) to create a new library called Struts 1.1. For information on creating new libraries and frameworks, see "Working with JSP tag libraries and frameworks in JBuilder." Add all the Struts 1.1 libraries in the Struts 1.1 lib folder to your new library.

3. Create your web application, as you normally would, with the Web Application wizard. However, select the Struts 1.1 framework instead of the Struts 1.0 framework.

4. Open the struts-config.xml file in the source editor. Change the DTD definition to point to Struts 1.1 instead of Struts 1.0. Change the following line in the file from:

<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration
1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">

to

<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration
1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

5. Save the file.
zhoukai1980 2003-08-21
  • 打赏
  • 举报
回复
我已经配置完了

但当我建立action类时,执行方法怎么还是perfrom()
1.1不是execute()吗


疑问
ukyer 2003-08-20
  • 打赏
  • 举报
回复
gz

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧