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

Spring & Restlet : 100% XML configuration?

I'm working on a project where all configurations are kept in XML files. I'm about to begin on a smaller part of this project, and I'll be using Restlet for that. Basically, what I'd like to do is to create a few subclasses of ServerResource. I…
sbrattla
  • 5,274
  • 3
  • 39
  • 63
0
votes
1 answer

Display data from database with the property tag in Struts 2

When I want to display data from database using Struts 2 tags: I have a problem in my JSP, it doesn't show anything. Although in Console I have the result My Action class: public class ObjectifAction extends ActionSupport implements…
0
votes
2 answers

Migrating Infinispan xml configuration from 6.x to 7.x

I've been using Infinispan 6.x and I have a couple of XML configuration files. Now I want to migrate to 7.x, but I'm having exceptions when the new version tries to parse the old configuration files. Here is my configuration file:
bachr
  • 5,780
  • 12
  • 57
  • 92
0
votes
1 answer

XML configuration for log4j in order to show line No. in HTMLLayout

I have a question on the log4j XML configuration. I want to have a HTMLLayout. But in the generated HTML file, there is no Line No. category. But I want to see it. I searched and it seems like to set LocationInfo to be true. But I don't know how to…
Hongwei
  • 17
  • 5
0
votes
1 answer

Multiple URL extensions, individual action/controller mapping in Struts 2

Is it possible in Struts2 to map URL/actions to different extensions? e.g. if my app is hosted as http://stack.com/myapp Can I have 2 URLs http://stack.com/myapp/act.action and http://stack.com/myapp/donoact.do with no mapping for /act.do…
SVashisth
  • 131
  • 10
0
votes
1 answer

Apache Commons CompositeConfiguration XPath exception on getProperty(".propertyName")

I have a CompositeConfiguration object which has some property configurations and some XMLConfigurations.For the XMLConfiguration, the DefaultExpressionEngine is set as XPathExpressionEngine One of the .properties file has properties starting with…
0
votes
1 answer

Java Configuration equivalent of in Spring Security

When we use xml based configuration for Spring Security we are able to use tag with attributes authorities-by-username-query and users-by-username-query to get username, password and role from database for a specific username…
0
votes
1 answer

Unable to load bean: type:org.apache.struts2.views.gxp.inject.InjectedObjectContainer

I am running the Struts2 application in eclipse but it is displaying the error while running in the Apache Tomcat server the error I am getting is SEVERE: Dispatcher initialization failed Unable to load configuration. - bean -…
duke
  • 103
  • 6
  • 15
0
votes
1 answer

Optional Resources in Spring.Net

How to include Spring configuration files optionally? I think about something simular to this:
Beachwalker
  • 7,685
  • 6
  • 52
  • 94
0
votes
0 answers

Convert annotation based configuration to XML

How to write this part of annotation based configuration in XML? @Bean public EventRepository eventRepository() throws Exception { return new SolrRepositoryFactory(eventTemplate()) .getRepository(EventRepository.class, new…
Ilya Zharkov
  • 319
  • 1
  • 4
  • 11
0
votes
1 answer

How to write a pretty URL in Struts 2?

I want to rewrite my URL in Struts2. How can I customize URL which shouldn't show my parameter that I am passing and also show action with different name. I don't know how to do it. I have to use plugins for that or configure my code in…
0
votes
2 answers

Unable to schedule an ssis package WHICH RETRIEVES data from MYSQL

I've created an SSIS PACKAGE on machine X to retrieve data from MYSQL DB Query from machine Y and write to an SQLSERVER Destination Table which is on machine Z(compulsions since I am unable to connect to mysql from Z and X is the only machine which…
VJAI
  • 111
  • 1
  • 14
0
votes
1 answer

Java Log4J 2 - Configurate own appender in xml

I tried to configurate Log4J2 per xml-file. I want to register an own appender (which shows an speciale panel if errors happend). With logback it was no problem - till I wanted to use it in my webStart-Project. So I hope it works with log4j2. With…
PCQ
  • 1
  • 1
0
votes
1 answer

Struts 2 action not working if the action name is "apply"

Problem so simple, if the action name is apply this action doesn't work at all, and it gave the HTTP Status 404 - No result defined for action com.control.actions.ClassName and result success Example of the struts.xml:
0
votes
4 answers

How to dynamically set the value to a static parameter in Struts 2

I was wondering, is it possible to dynamically set value to static parameter Dynamic value here
Storm Rider
  • 1
  • 1
  • 6
1 2 3
12
13