Questions tagged [xml-configuration]

A configuration that could be parsed from the XML file.

A configuration that could be parsed from the XML file. Many frameworks and applications use XML files to keep their configuration persistent and loadable. Beside them the Apache Commons Configuration XMLConfiguration class that is able to parse XML documents.

For example, the Struts 2 framework has a configuration file struts.xml that could be used with any web application that uses this framework.

185 questions
1
vote
2 answers

Excluding fields in Dozer mapping

Is there a way to exclude multiple fields in Dozer, when source and target classes are the same? I am using it like this: com.abc com.abc
Prateek Singh
  • 1,106
  • 10
  • 18
1
vote
2 answers

Override @Autowired property annotation with XML configuration

I've a class EntityLoader that's used to fetch some data from a MySQL database using Hibernate. But now the need is to fetch data from two different databases (MySQL and Oracle in this case). So I want to have two beans of EntityLoader but injecting…
Tobías
  • 6,142
  • 4
  • 36
  • 62
1
vote
0 answers

allowing caching in spring security

I want to allow caching for certain url. I added filter into web.xml and mapped it to url I am making requests to. My responses started to contain etag so I assumed it worked fine. But default my responses from the server contains this headers.…
lapots
  • 12,553
  • 32
  • 121
  • 242
1
vote
1 answer

What is xml-configuration representation of @component in spring

I have googled one of my problem and found the soulution via @component annotation. But in my application I'm using xml configuration, because of annotationes are nasty and not configurable, and you need to recompile all of the code co change…
TEXHIK
  • 1,369
  • 1
  • 11
  • 34
1
vote
1 answer

Spring 3.2 - how to inject FlatFileItemWriter configured in XML to parameterized property in java class

We have a current application that uses a FlatFileItemWriter configured in XML to produce a fixed length record file ("FileItemWriter"). We want to add second ItemWriter as a Java class that will process the same chunks to update a hstory table in…
1
vote
0 answers

How do I load up configuration params defined in a XML file?

I have a project A that I want to use from a project B, and I would like to pass some configuration parameters into the project A using a XML configuration file. In other words, suppose I am implementing something like my own spring-data-mongo (for…
1
vote
2 answers

Struts2 action accessed by exactly one machine/browser combination

I have a web application for taking audits. Everything works fine except for one action. The JSP form for entering the users and location for each audit assigned is not submitted It works without a flaw when executed from the Firefox browser in my…
1
vote
1 answer

Facing issue in adding mutiple Struts actions

I am facing issue in displaying a struts action for result of json type. In the similar there is LoginJson.action which works fine. I do not understand where is the mistake. The error I could see is Error 404 There is no Action mapped for namespace…
Meher
  • 2,545
  • 3
  • 26
  • 53
1
vote
2 answers

URL pattern issue with Struts 1.x and Struts 2.x

One of my project is running on Struts 1.x and We are trying to integrate few of URL's pattern on struts 2.x. Few URL also end with Abc.do . Currently web.xml looks like: action
1
vote
1 answer

Enabling convention plugin breaks xml mapping

I have an old project which uses xml configured struts2 mappings. I wanted to make it a bit fresher and use annotations mapping, as would do that in spring mvc. So I found, that struts2 allows that. But after I added
1
vote
1 answer

How to remove .action from URL without using a constant in struts.xml

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 in…
1
vote
1 answer

Unable to get Struts2 Hello World to work using Eclipse and Maven

This site doesn't allow user to ask technical questions to their tutorial which I believe is broken: http://www.mkyong.com/misc/how-to-use-mkyong-tutorial/ I'm using: maven: 3.2.1 tomcat 7 java 1.7 Eclipse: Luna Release (4.4.0) I'm getting this…
user3769040
  • 235
  • 4
  • 14
1
vote
1 answer

Action not invoked

The action reg1 is not called when I click submit button. My simple struts application is as follows: web.xml:
hem
  • 11
  • 1
1
vote
1 answer

Struts 2 Eclipse Class Not Found error

Configuring Struts 2 with Eclipse. I am having a hard time getting this to work properly. To my understanding, it can find the file, but it can't load the configuration file out of it. What am I doing wrong? I've cleaned the program, all the…
vosbek
  • 37
  • 1
  • 8
1
vote
1 answer

Use CommonsMultipartResolver in Spring and config in test

I have an integration test that make a request (uploading a file) on my controller. The test works without setup any CommonsMultipartResolver. But in the moment where I have to setup the production environment I have to add the…