Open nsethblanchard opened 11 months ago
Do you get any JS errors? Also do you need all these?
<dependency>
<groupId>com.jgeppert.struts2.jquery</groupId>
<artifactId>struts2-jqueFn</artifactId>
<version>${struts.jquery.version}</version>
</dependency>
<dependency>
<groupId>com.jgeppert.struts2.jquery</groupId>
<artifactId>struts2-jquery-chart-plugin</artifactId>
<version>${struts.jquery.version}</version>
</dependency>
<dependency>
<groupId>com.jgeppert.struts2.jquery</groupId>
<artifactId>struts2-jquery-grid-plugin</artifactId>
<version>${struts.jquery.version}</version>
</dependency>
<dependency>
<groupId>com.jgeppert.struts2.jquery</groupId>
<artifactId>struts2-jquery-richtext-plugin</artifactId>
<version>${struts.jquery.version}</version>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>jquery-ui</artifactId>
<version>${struts.jquery-ui.version}</version>
</dependency>
if not I would remove them
Wildcard Action Mapping no longer works after updating to Struts 2.5. It is Strict Method Invocation and since Struts 2.5 it is enabled by default. From the docs about SMI and wildcard mappings:
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.:
So, one of the solutions that worked is to disabled it per package
like this:
`
` ``
@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
you have option to disable it per package - there is no global switch to disable SMI for the whole application.
https://struts.apache.org/core-developers/action-configuration#strict-method-invocation
@nsethblanchard is it necessary to add
<dependency>
<groupId>org.webjars</groupId>
<artifactId>jquery-ui</artifactId>
<version>${struts.jquery-ui.version}</version>
</dependency>
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?