Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links



How to upgrade one of struts in JDEV 10.1.3

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 14-11-2009
Member
 
Join Date: Mar 2009
Posts: 1,364
How to upgrade one of struts in JDEV 10.1.3

The problem is as follows:

I am developing a Struts J2EE application with JDeveloper 10.1.3.2 (no choice of the ide). This version of Struts 1.1 JDEV loads, therefore the application is developed with this version of struts. Now there is in this version an XSS.

As stated in the previous link, this flaw is corrected from 1.2.8 to the struts. Unable to pass JDEV 11g and Struts 2, which requires a large migration of the application, I'd like to "install" the latest version of struts 1 (the 1.3.10) in my JDEV, and then I block a bit much ...

I could just turn the jar struts 1.1 of my lib and replace them with those of 1.3.10. But they pretty much changed. For example, there is the good old struts.jar. He has apparently been reorganized into sub-jar (struts-core, struts-el, etc.).

In addition, the struts 1.1 on the "integrated" to FDI (and the server application that comes with it), I think it may be more related than that for various projects JDEV and the elements deployment. The library "Struts Runtime" is pre-configured, there is more to add to projects. Besides you can not edit this library.

The concern is that I can not find a tutorial or an example (even in oracle) that explains the procedure to follow to be sure not to forget that the path and classpath and source-path lack nothing . There must be something over there because the upgrade to a version of struts is not something so exceptional that it ...

So if anyone has any info over there, or was confronted with the problem and knows a workaround to upgrade the IDE, it would helpful to me. How to upgrade one of struts in JDEV 10.1.3?
Reply With Quote
  #2  
Old 14-11-2009
MindSpace's Avatar
Member
 
Join Date: Feb 2008
Posts: 1,832
Re: How to upgrade one of struts in JDEV 10.1.3

JDEV but you can not put the lib you want?

Then you try to use plugins (wizards) to configure Struts directly, right?

If you spend 1.1 to 1.3, the conf is not the same, so you can no longer use. Integrates Struts 1.3 to your project like any other lib, and presto!

No?
Reply With Quote
  #3  
Old 14-11-2009
Member
 
Join Date: Mar 2009
Posts: 1,364
Re: How to upgrade one of struts in JDEV 10.1.3

Ultimately that's what it will do.

The trick is that JDEV manages dependence's in Library that which is given classpath and sourcepath (paths to different jar) and they are following added to the project. And this set the lib-related projects.

Now the Library of Struts, which is called "Struts Runtime" is not changed since pre-existing in this version JDEV. That is why in the oracle tutorial given in my previous post they propose to replace the jars directly into the folder where the point Library "Struts Runtime".

Except in the 1.3.10 jars names have changed (see my first post). And since the Library tip jar directly and not just the folder where they are, well it works in.

Another solution is to fart the Library can not be changed (you can remove it) and create another, which amounts to the remark of MindSpace.

But I think I'll lose every dev pattern, too bad.
Reply With Quote
  #4  
Old 14-11-2009
opaper's Avatar
Member
 
Join Date: May 2008
Posts: 2,362
Re: How to upgrade one of struts in JDEV 10.1.3

To install Struts 1.2.1 in JDeveloper 10g:
  • Close JDeveloper if it is running.
  • In the file system, rename the %JDEVELOPER_HOME%/jakarta-struts directory to %JDEVELOPER_HOME%/jakarta-struts_1_1. This will enable you to simply switch back to the production version of Struts when ever you need to.
  • Download the jakarta-struts-1.2.1.zip / tar and unpack it into the %JDEVELOPER_HOME% directory, preserving the internal directory structure in the process. This should create a new directory %JDEVELOPER_HOME%/jakarta-struts-1.2.1, containing contrib, lib and webapps sub directories.
  • Rename (or copy) this directory to %JDEVELOPER_HOME%/jakarta-struts.
  • Restart JDeveloper.

Source: oracle
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to upgrade one of struts in JDEV 10.1.3"
Thread Thread Starter Forum Replies Last Post
Struts 1 VS Struts 2 PsychoVillan Software Development 6 29-03-2011 01:23 AM
Beginning with the Struts 2 Ronchi Software Development 4 19-03-2011 07:32 AM
JSF versus Struts Daksha Software Development 3 21-07-2010 07:20 AM
How to mix Eclipse, WTP, Struts, and Hibernate Efigenio Software Development 5 21-02-2010 05:34 AM
Setting a cookie via Struts Cadallic Software Development 3 25-10-2008 04:08 PM


All times are GMT +5.5. The time now is 04:15 AM.