Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can Jbuilder8 run Struts1.1

 
Sam Wang
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I config a new lib for struts1.1 include the new
struts.jar and the new tlds.But the gui for struts
-config doesn't change.There are some errors at validating the struts-config.xml.I guess the jbuilder doesn't find the new struts-
config_1.1.dtd.
Can anybody tell me how-to update to struts1.1 in JBuilder8 step by step?
 
Burk Hufnagel
Ranch Hand
Posts: 814
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In chapter 28 of Borland's "Developing Enterprise Applications" manual, is says "JBuilder8 officially supports Struts 1.0. Although JBuilder8 does not officially syupport the beta release of Struts 1.1. However, if you enable your struts-config.xml file for Struts 1.1 and download the Struts 1.1 JAR files to the <jbuilder>/extras folder, you will see support for Struts 1.1. The Struts Config Editor will display elements and attributes specific to 1.1. Additionally, if your Struts web aplication uses a tileDefinitions.xml file for presentation, a visual editor for the Tiles configuration is available."
I'm not sure what they mean by enabling the struts-config file for 1.1, and I have not tried this yet (we're on a Very Tight deadline and the powers-that-be put the Struts jar files in the project lib directory) but I'll be trying it out later this week. In the meantime, I hope this helps.
Burk
 
Sam Wang
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I modify the doctype of the struts-config.xml
(http://jakarta.apache.org/struts/dtds/struts-
config_1_0.dtd - > http://jakarta.apache.org/struts/dtds/struts-
config_1_1.dtd)
If anybody has some better way?
 
joshua van-breukelen
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Stub, Burk,
I am currenlty using JBuilder8 w/Struts1.1. You are both right, the JBuildeer Doc is somewhat vague and incomplete.
It has been over 2 months since I configured my IDE. Nevertheless, here is more or less the steps I took to get the features working properly.
1) The JBuilder doc talks about pointing to the struts-config_1_1.dtd - Stub has done this.
2) In the JBuilder8/extra dir I dropped not just the struts.jar, but all commons jars as well.
3) In the ProjectPropetis-->Paths-->Required Libraries I set up the following
 
joshua van-breukelen
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cont'd from last post....
3) In the ProjectProperties-->Paths-->Required Libs, I set up some proprietary Jbuilder "libs".
You can configure these libraries to your needs via the Tools-->Configure Libs tag. In addition you can configure them using the add/edit tabs in ProjectProperties-->Paths-->Required Libs.
a) First Jbuilder Lib in "userHome" points to Tomcat4.1
b) Second Jbuilder "User Home" Lib that I created I called "struts1.1". It points to JBuilder8/extras/*

This should do the trick, let me know how it goes.
Regards,
Joshua
 
Sam Wang
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I create a new struts lib and remove the old one(
if there are two struts frameworks,the web appli-
cation will add two struts-config.xml files,is it
a bug?).Then I modify the dtd of struts-config
.xml.It's ok.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic