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
4
votes
1 answer

Redirection without losing request attributes in Struts 2

I would like to perform a redirection for my JSP page, which the URL will be changed to /folder/mypage.jsp, without losing my request attributes. Is there any way I can perform this kind of redirection in Struts 2?
ilovetolearn
  • 2,006
  • 5
  • 33
  • 64
4
votes
0 answers

Using placeholder in XML file to placing the value from a properties file

I would like to have palceholder in my xml file which places the value from a properties file. The SystemProperty.xml file is just a global system configuration file, not any kind of spring configuration, which looks like that
Bruce
  • 647
  • 2
  • 12
  • 30
4
votes
2 answers

Elasticsearch HTTP authentication in Spring

I want to access a remote elasticsearch which is protected by a username and password. https://[username]:[password]@aws-eu-west-1-portal1.dblayer.com:11109/ In Spring using the XML config I was able to access my localhost elastic as shown…
4
votes
2 answers

iBatis - select environment using XML

I have this configuration in ibatis-config.xml
Bostone
  • 36,858
  • 39
  • 167
  • 227
3
votes
1 answer

Spring OAuth2 ClientId passed in as username for password grant type

I am attempting a very basic implementation of the Spring OAuth2 library; however, when I send a request off to the server I receive the following error: { "error": "invalid_client", "error_description": "Bad client credentials" } When doing…
3
votes
1 answer

How do I specify a contract's namespace in the XML configuration of a WCF endpoint?

I've got this WCF service contract (heavily simplified, but pay attention to the namespace it's in): namespace Foo.Services.BarService { [ServiceContract] interface BarContract {... } } In my app.config (client side), I configure an…
3
votes
3 answers

Spring @Async annotation

I have a question about Spring @Async annotation. I have a controller autowired a service(GnInsuranceDetailsService) @RequestMapping(value="/agn/AP0W01A_010/insertDetail.do") public ResponseEntity
3
votes
4 answers

What's .NET XML configuration file for?

I find some of the .NET execution files have accompanying .config file. For example, I have LINQPad.exe and LINQPad.exe.config. What's this LINQPad.exe.config for?
prosseek
  • 182,215
  • 215
  • 566
  • 871
3
votes
1 answer

Specific wildcard pattern doesn't work in my struts.xml

I have an application in struts 2.3 and handled all requests by '/*' pattern to go to my struts application in web.xml it's ok and requests are comes in struts application. but problem is here in my struts.xml
Mohammadreza Khatami
  • 1,444
  • 2
  • 13
  • 27
3
votes
2 answers

Why I can't inject a Spring Environment object into my bean?

I have the following problem in a Java application that use Spring framework. So I have the following situation, into the root-context.xml configuration file I have this bean configuration:
AndreaNobili
  • 40,955
  • 107
  • 324
  • 596
3
votes
1 answer

Conditional Bean Loading based on environment variable

I am using spring xml configuration and want to load either bean if system environment property is set For example :: if(system.property is set as "A") else
3
votes
2 answers

What would be the flow order if I include multiple struts config file in the project

I am using Struts2. Below is my Action Class (TutorialAction). public class TutorialAction { public String execute() { System.out.println("Hello from Execute!"); return "failure"; } } I am returning "failure" in execute…
Tushar Khanna
  • 428
  • 6
  • 22
3
votes
1 answer

How to define interceptors using annotations in Struts 2

I'm trying to use the struts2-convention-plugin which provides Java annotations to define Struts2 components. With Actions so far so good but how can I use annotations to define interceptors ? (I'm talking of @InterceptorRefs or @InterceptorRef). Is…
Medioman92
  • 581
  • 4
  • 10
  • 21
3
votes
2 answers

Can I change the struts.xml file to anything else?

When I'm going though struts2, I came through a typical question. The question is that can I change the name of struts.xml file to some other thing and make it work?
Shiva Mothkuri
  • 307
  • 3
  • 12
2
votes
1 answer

No EntityManager with actual transaction available for current thread : Multiple config xml files

Hello I face the following problem: I Have a spring mvc app with the following configuration files. there are two separate spring config files one for jpa and one for spring mvc The problem is when I try to persist something in Database I get the…
1
2
3
12 13