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 best solutions below
Related Questions in STRUTS2
- Struts2 jqGrid DatePicker in Column Filter
- Struts exclude pattern with spring
- Hiding param of struts.xml values in Struts 2
- Struts2 - passing data from jsp form fields with same name to action class
- Using a dash in Struts 2 action name
- window.open vs form.submit
- Struts 2: How to add dynamically inputs in jsp from the action?
- How to perform XML Validation when using ModelDriven?
- Restriction on number of opened tabs
- Struts2 properties in JS
- Node.js with struts Possible?
- Scope attribute migration from Struts1 to Struts2
- Onchange in Struts2 textfield
- Iterate over hashmap of string and list in Struts2 itreator
- struts dialog box not taking jsp scriplet
Related Questions in XML-CONFIGURATION
- Override @Autowired property annotation with XML configuration
- Spring Security 4 xml configuration UserDetailsService authentication not working
- XML configuration for log4j in order to show line No. in HTMLLayout
- Many-to-many NHibernate mapping to a legacy app view
- Castle Windsor Service Override in XML configuration
- Spring Security - caching credentials from SSO
- Spring.NET XML Configuration Woes
- Cleanest Jetty Configuration for Development?
- Can spring framework override Annotation-based configuration with XML-based configuration?
- Pros and Cons of Fluent and XML Configuration
- Do we need to extend struts-default package always?
- The requested resource (/StrutsHelloWorld/) is not available. Jboss AS7 Server
- How to display a list of database records (retrieved via Hibernate) to a JSP page in Struts 2?
- Embedded databases in Jetty
- Unable to schedule an ssis package WHICH RETRIEVES data from MYSQL
Related Questions in STRUTS2-CONVENTION-PLUGIN
- Multi action in struts form
- Struts2 Annotaion Based Action configuration
- Is there an equivalent for default-action-ref in Struts2 Conventions Plugin
- Unable to Submit form In struts 2 when using validations
- Struts 2 post back default
- How to invoke a method on submit button in Struts 2 using convention plugin?
- How to specify multiple acceptParamNames in Struts2 using annotations (convention plugin)?
- Struts 2 Convention Plugin and JSP files under WEB-INF
- How to validate Boolean fields in Struts2 using annotations?
- Why the Exception raised from my Interceptor is not caught by <global-exception-mappings>?
- How to redirect to a different namespace using Result annotation in an action class in Struts 2
- Cannot load web page when running Struts2 v6.3.0.2 - ran java.lang.NoClassDefFoundError
- Short-circuit in Struts2 validation
- can both code-behind and convention plugins co-exist in struts2 application?
- Redirect index.jsp to a Struts 2 Action
Related Questions in DEPLOYMENT-DESCRIPTOR
- Precedence of EJB Deployment Descriptors
- Was there an app that actually used <icon> , <description> elements of web.xml java ee?
- web.xml - <http-method> absent
- No web.xml in Eclipse + Glassfish v3?
- Dart web app environmental variables
- How to match URL pattern like /abc?path=xyz in web.xml
- Can we change the location of springBeanConfiguration file in spring mvc?
- Deployment discriptor or web.xml
- How to exclude the specific jar from global module in jboss?
- Is it possible to configure OpenSessionInViewFilter in Spring application context so that context:property-placeholder is useable?
- How do I change the deployment web page in Google App Engine?
- Glassfish doctype description files missing
- Inject a String into a Message Driven Bean
- how http method works in servlet?
- How to remove .action from URL without using a constant in struts.xml
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)
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?
There isn't such annotation. You can use
struts.propertiesor define a constant inweb.xmllike