-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading Struts to 2.5.31 from 2.3 and jquery from 3.7.1 to 4.0.3 - Mapping no longer working #348
Comments
Do you get any JS errors? Also do you need all these?
if not I would remove them |
Wildcard Action Mapping no longer works after updating to Struts 2.5. When using wildcard mapping in actions' definitions SMI works in two ways: SMI is disabled - any wildcard will be substituted with the default RegEx, ie.: will be translated into allowedMethod = "regex:perform([A-Za-z0-9_$]*)". So, one of the solutions that worked is to disabled it per package |
@lukaszlenart, I will check if I absolutely need all of those dependencies because you are right, there are a lot of seemingly associated ones. Trying not to damage any of this old code :-). I wasn't getting any JS errors, I don't believe. @iamcessssy, I had seen wildcard wasn't able to be used by default and am pretty sure that I tried to set the strict method invocation to false across the board, but maybe adding to each individual one would help. Thanks for the idea! |
@nsethblanchard SMI is enabled by default and you can only disable it per package
https://struts.apache.org/core-developers/action-configuration#strict-method-invocation |
@nsethblanchard is it necessary to add
with struts2-jquery-plugin and struts2-jquery-tree-plugin? because I am facing issue with classic theme, and custom jstree images/icons are not populating in UI. though if I add background-size =80%; manually in the browser then the images will show but when I try with JS function its not working. will you be able to guide me on this? |
Hey all! I am struggling to find the issue for why my page isn't loading correctly during the process of upgrading my dependencies. I feel like I have tried everything so am going to include more code than is probably necessary. I added jquery-ui based on some other discussions I read but that didn't seem to help.
From my parent pom.xml file.
From my index.jsp
...and then within the body (and this all worked before attempting to upgrade)
None of the top struts url pages have changed at all.
Not sure if this adds anything because it also wasn't changed but I read that wildcard action mapping may have changed but this is in my struts.xml file.
This all works if I revert my version updates but gives me a 404 now. Any ideas or follow up questions so I can clarify?
The text was updated successfully, but these errors were encountered: