top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Confused about upgrading Apache Struts

0 votes
606 views

I have been tasked with upgrading Apache Struts, running on CentOS 7, to the latest version. I have no idea where to begin. I am not a web developer, I am only a system administrator, so I have no idea where I should even look to figure out how to upgrade this thing. Any and all help will be greatly appreciated!

posted Apr 11, 2018 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Struts is a MVC framework for a web application. That application needs to be modified to use different version of the Struts2 library and depending on what version you're currently running, you may have many changes to make on the application's end.

If that application is owned by your company, hire a Java dev to do this work for you. Save yourself the headache.

If that application is owned by another company and your company bought/contracted/etc that application, contact the vendor and ask them about when they'll patch their software appropriately.

Documents may help:
https://cwiki.apache.org/confluence/display/WW/Migration+Guide

answer Apr 11, 2018 by Ahmed Patel
Similar Questions
+1 vote

I would like to dynamically insert an interceptor to a specific place in existing stack.

Of course I also like the stacks referencing the one where I insert the interceptor also take advantage of this configuration change.

I started to look on the side of PackageProvider, but I can not find sufficiently complete documentation allowing me to do this.

+1 vote

I'm working on doing some upgrade testing to mitigate the Heartbleed issue and some other vulnerabilities. Part of that is updating OpenSSL, but I'm a bit confused about something and am hoping that someone can help me. I've done at least a dozen internet searches and can't find the answer. It's probably simple, but I'd like to find out anyway.

What do I need to do in order to update the version of OpenSSL that is included in the Apache HTTP server release? I've installed OpenSSL 1.0.1g on the server, but the older version is still in the apache /bin directory. Do I simply replace the openssl executable or is there some kind of change that needs to be made in the httpd.conf file to point to the newer installation?

+2 votes

I can't see what's going on behind the scenes in this example so I'm asking for help in order to understand the Strtus process.

I run the example, leave empty "First Name" to make validation fail, and submit. Then go back to index:

http://localhost:8084/form_xml_validation

and click on edit. But "First name" is reset with the original value. It should be empty because Person instance is managed statically. In fact, other examples (preparable, exclude params) behave as expected, and return an empty String for the filed left empty.

The thing here is than I'm not understanding how Struts works here. I would appreciate if you help me with this.

Example is here:
http://struts.apache.org/release/2.3.x/docs/form-validation-using-xml.html

Code for checkout here:
http://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2examples/

Examples doing as expected:
http://struts.apache.org/release/2.3.x/docs/exclude-parameters.html
http://struts.apache.org/release/2.3.x/docs/preparable-interface.html

0 votes

I have a very minimal struts app I wrote some years ago. I want to upgrade it from 2.3 to 2.5. I'm wondering what requirements would allow the use of the essential dependencies jar. I am using only jstl tags, no struts tags. And my app is pretty simple.

...