I am using Struts 2 convention plugin. I don't want to use any XML based configurations in my application. So, in this case, how how to remove .action extension from URL without using <constant name="struts.action.extension" value="" /> in struts.xml? I am currently using struts.xml file only to remove .action extension. Is there any annotation to remove .actionextension?
How to remove .action from URL without using a constant in struts.xml
1.6k views Asked by user995656 At
1
There are 1 answers
Related Questions in STRUTS2
- Struts2 (version 2.5.33) restricts the limit of query string parameters
- version compatibility issue between spring boot, struts2-core and tomcat-embed-jasper in web application
- Struts 6.x migration issues with sitemesh
- Why am I getting error: No result defined for action [] and result input?
- Error uplifting OGNL from 3.3.4 to 3.4.2 with struts2(6.3.0.2)
- How to call an action method from JSP and pass a parameter in Struts 2
- Upgrading from Struts 2.5 to Struts 6 issue
- HTTP Status 404 in Struts 2 web application and result JSP
- Radio button selection is not being saved on the front end in Struts2 upgrade to Struts 6.3.0.2
- How to set base-uri for the Struts 2 CSP Interceptor?
- Struts 2 to Struts 6 Migration
- Struts response raw string
- Struts2 - Iteration by 2 list , but show data of second list after click popup
- Why escape in Struts tags doesn't work after upgrade to Struts 6.3.0.2
- Struts2 JQuery Grid: Missing tooltips on header
Related Questions in XML-CONFIGURATION
- Spring XML Bean Configuration - Specify nullable constructor arguments
- Spring Unsatisfied Dependency Exception, Error creating bean with name "Controller" when using Quartz Job Scheduler
- Unable to open exe file using Adobe Animate and XML configuration
- Spring AOP LTW doesn't work, weaving doesn't happening
- Cannot use @Aspect annotation in Spring 5
- XML Configuration files and .Net 6 migration : configuration not available
- Spring MVC - HTTP Status 404 – Not Found
- Spring 5.3.9 MVC XML Configuration: ViewResolver Not Mapping To Controller
- Select spring boot xml configuration at runtime
- Is this correct way of adding contexts in jetty 9 and 10?
- @Gateway(payloadExpression="..") vs @Payload("...")
- @ConfigurationProperties with XML-based configuration
- Generate Spring Configuration
- How do I resolve the problem "xmlns" must be declared for element type "beans"?
- Spring EL cannot be resolved in Integer attribute of xml configuration files
Related Questions in STRUTS2-CONVENTION-PLUGIN
- Cannot load web page when running Struts2 v6.3.0.2 - ran java.lang.NoClassDefFoundError
- How to redirect to a different namespace using Result annotation in an action class in Struts 2
- Struts2 no Action mapped for namespace [/] and action name [index] associated with context path
- Struts 2 post back default
- Getting java.lang.ClassNotFoundException: org.apache.struts2.tiles.StrutsTilesListener at Server startup - Struts 2.3.28 & Tile-core-2.2.2
- Struts2 can't find my actions when they are in a jar file within a war file and Struts2 is deployed as a Wildfly module
- Struts2 Convention Plugin @Actions not mapping with Spring Boot
- Struts 2 convention plugin not working !.How to get it running?
- Param attribute usage in @Result Annotation
- When is the Struts Convention Plug-in Applied?
- Is there an equivalent for default-action-ref in Struts2 Conventions Plugin
- Startup Error: java.lang.IncompatibleClassChangeError: org/apache/struts2/convention/DefaultClassFinder$InfoBuildingVisitor
- struts2 annotation there is no action mapped for namespace / and action name
- Struts 2.5 + convention plugin and slashes in action
- My action class is being mapped without Struts.xml mappins or java annotations
Related Questions in DEPLOYMENT-DESCRIPTOR
- What is the difference between "" and "/" as to the url-patterns value in the servlet mapping
- Why isn't my maven project appearing in Eclipse's 'Add and Remove' option for my application server?
- How to exclude the specific jar from global module in jboss?
- How do I change the deployment web page in Google App Engine?
- Deployment discriptor or web.xml
- EMF2DOMAdapterImpl_ERROR_0 Websphere Application Server WAS (V8.5) DeploymentDescriptorLoadException: WEB-INF/web.xml
- how http method works in servlet?
- Tomcat : using double-quote character in a context parameter name
- Wildfly 14 - explicit dependencies
- Can we change the location of springBeanConfiguration file in spring mvc?
- Lookup for EJB subclass by superclass EJB name
- Tomcat infinte loop on requestDispatcher#forward(). StackOverflowError
- How to deploy web application to the specific glassfish virtual server?
- How to inject EJB by parent interface?
- Glassfish doctype description files missing
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
There isn't such annotation. You can use
struts.propertiesor define a constant inweb.xmllike