For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 13 replies, 5 voices, and was last updated 21 years, 1 month ago by
wilkerd1.
-
AuthorPosts
-
fermataintlMemberIs there a way to manually upgrade struts in myeclipse to version 1.2.4? I am attempting to migrate an application that I developed using just vi and ant into the ide, and I am dependent on the latest version. The download includes a number of jars (e.g., struts.jar) and some dtds and tlds.
Thanks.
DeanJanuary 19, 2005 at 5:42 pm #223157
Riyad KallaMemberIf you just want to update that App, then just drop the JARs in. If you want to update the JARs MyEclipse is using then navigate to Window > Prefs > MyEclipse > Project Capabilities > Struts, flip to the Struts 1.2 tab, and adjust them to whatever resources you want them to be. These will now be used when you “Add Struts Capabilties” to projects.
January 19, 2005 at 5:51 pm #223158
fermataintlMemberCool, thanks for your help!
January 19, 2005 at 5:54 pm #223159
Riyad KallaMemberNo problem, that’s what we do 😛
January 20, 2005 at 10:32 am #223210
fermataintlMemberThe method you suggested whereby I change the jars and tlds that get copied when I choose add struts 1.2 capabilities does not appear to work. I set up the files on my file system and removed and added each one in the interface. I added the capabilites to a toy project but on inspection the files that ended up in the project were not the ones I expected. The only way I could see to do it was to use your other approach and manually drop the files into the project.
Dean
January 20, 2005 at 10:39 am #223211
Riyad KallaMemberDean,
Can you navigate back to the project capabilities > struts pages, tell me which Struts tab you changed, what the files are (libs and resources) and then eactly what you filled out when adding struts caps to the toy project? I want to try and reproduce this *exactly* as you tried it here locally.January 20, 2005 at 11:12 am #223215
fermataintlMemberMy first attempt was to find the directory where myeclipse stores the struts 1.2 jars and tlds. I found that and renamed it and created my own clone of it with jars and tlds I downloaded from the struts site (1.2.4). I then created a new project and added the struts 1.2 capabilities. Upon inspection, it failed. I inspected it like this: in [my]eclipse, open the struts.jar => org.apache.struts.action => Action.class. Look for the saveErrors method. The signature should be saveErrors(HttpServletRequest, ActionMessages), but instead it shows up as saveErrors(HttpServletRequest, ActionErrors).
My second attempt was to go through the interface, as you suggested. I stored the 1.2.4 files on my C: drive and then removed each jar and tld for 1.2 (in the interface) and added those entries from what I stored on disk. I then went through the same steps as listed above and noticed that the saveErrors signature was still incorrect.
So then I just took the files and dropped them directly into the project and then went through the “Add Jar” process to get the jars to be properly recognized. I then inspected as before and the signature was as expected. I hope that helps.
On a side note and with nothing against you guys, I think the struts development team should put version numbers on the jar file names themselves. Its a pain to try to determine what you have at any given point in time.
Thanks again.
DeanJanuary 20, 2005 at 12:22 pm #223222
fermataintlMemberOn a related note, since I manually added struts capabilities to my project, myeclipse does not want to use the struts editor on struts-config.xml. How can I tell myeclipse that this is a struts project, after the fact?
Thanks.
DeanJanuary 20, 2005 at 12:53 pm #223226
Riyad KallaMemberDean thank you for the steps, I’ll look into it ASAP. Also you need to add Struts capabilities to your project to use the Struts tooling.
January 20, 2005 at 1:24 pm #223231
fermataintlMemberIs there a way to add the struts capabilities without actually adding the jars and tlds?
January 20, 2005 at 2:13 pm #223234
Riyad KallaMemberIs there a way to add the struts capabilities without actually adding the jars and tlds?
When the “add struts caps” dialog comes up, just uncheck the two checkboxes at the bottom.
January 30, 2005 at 1:46 pm #224018
RonaldvdhMemberThis sounds like the same problem i have. The jar files added are 1.1. jars and not the 1.2.x jars you expect. see: http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-5753.html for my problems. Thats why you see the actionErrors reference and not the ActionMessages
February 9, 2005 at 4:04 am #224754
sefkan3MemberI found the same problem as Ronaldvdh.
myeclipse 3.8.3 version on eclipse 3.01 was using struts 1.1 files instead of 1.2 (even when you asked to use 1.2) when adding struts capabilities. When you try to use struts automatic validation in your project, it will not work and you will get an error message about some method not found (due to ActionErrors vs ActionMessages parameter mismatch)
When I upgraded to 3.8.4 the problem went away. The new version adds the 1.2.4 struts files correctly.
Just an FYI for other users since I wasted quite a lot of time trying to debug this problem myself. If you run into the same problem, just upgrade to the latest patch. 3.8.4+Q2 🙂
Saif Kantrikar
May 24, 2005 at 10:42 am #230091
wilkerd1MemberI am having the same exact problem as everyone else. I tried upgrading to 3.8.4 Q2 and it did not solve the problem. Any other suggested workarounds? Is a fix available for this?
Thanks!
Daniel -
AuthorPosts
