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

Handling Exception In Spring Standalone Application

i have created Standalone application in spring. for exception handling i am using custom exception handler which extends SimpleMappingExceptionResolver class. whenever exception occurs in program i want to delegate it to specific java method. how…
1
vote
1 answer

Many-to-many NHibernate mapping to a legacy app view

My many-to-many relationship does not involve the standard "joining-table" approach, in which a table stores the "FK1-to-FK2" relationships. Instead, I'm "loosely" joining to a legacy read-only view as follows: Appointment class (based on the…
Merenzo
  • 5,326
  • 4
  • 31
  • 46
1
vote
1 answer

Not able to hit a Servlet in Struts 2

In my Struts2 application, I am trying to include a Servlet that would handle Ajax requests. I have included the excludePattern in struts.xml and mapped the servlet in web.xml. I'm still not able to hit the Servlet. Here are my XML…
Ankur Chachra
  • 131
  • 5
  • 17
1
vote
2 answers

Populating a Struts 2 select menu and redirecting action

I have a JSP file with form. That form contains a select drop-down menu Now, to populate the select menu I created a java file to do that. I…
Shamwow
  • 71
  • 7
1
vote
1 answer

Apache Commons XMLConfiguration- How to Get an Object by Attribute Name?

I am using org.apache.commons.configuration.XMLConfiguration to read the an XML configuration file in my Java code. My XML has the following format: red
Afshin Moazami
  • 2,092
  • 5
  • 33
  • 55
1
vote
1 answer

html tag not defined in XML or no any JAR file error message

Apache Struts tag html cannot be resolved in either XML or the JAR files deployed with the application even if I have place Struts html jar in lib (using Struts 1.3 and Tomcat 7).
sam
  • 11
  • 1
1
vote
1 answer

Missing message for key "registration.jsp.title"

I was creating a simple registration app and I got stuck at a point. The following is my index.jsp file index.jsp: <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib…
1
vote
2 answers

Dispatcher initialization failed. java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject.InjectedObjectContainer

I'm using Struts 2.3.14.2 jars, but when I created the simple application, I'm getting the following error/exception. I almost did everything perfectly. I added almost all jars in the class path. But still getting this exception. Am I missing…
user2445052
  • 11
  • 1
  • 2
1
vote
1 answer

How to pass exceptions globally to a single action from other actions in Struts 2

I want to pass exceptions globally to a single action file called ErrorAction, say from Index action. Here's my struts.xml file:
1
vote
2 answers

How to configure @SkipValidation by XML configuration in Struts 2

In Struts 2, I am trying to skip validation on method base on XML configuration. As per my application I can not use annotation. So I cannot use @SkipValidation annotation. Is there any alternative for this? I have one action class which has five…
Punit Patel
  • 901
  • 1
  • 12
  • 25
1
vote
1 answer

Struts 2: ui.theme changes in struts.properties are not getting reflected

I am creating a project using maven as below mvn archetype:generate -B -DgroupId=com.myApplication -DartifactId=MyApplication - DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId=struts2-archetype-starter - DarchetypeVersion=2.3.7 After that…
jaychapani
  • 1,501
  • 1
  • 13
  • 31
1
vote
1 answer

date format configuration in dozer.xml

I am using Dozer mapper to map Service objects to Value objects. I am mapping the date by means of the following: MySo MyVO dateStr dateObj
user1463676
  • 55
  • 2
  • 7
1
vote
3 answers

spring social xml config

i have already read the spring social document but the part of configuration is Java based, but my project's configuration is xml based. so please tell me how config spring social in spring xml config file. thank you and sorry for my poor english
Seongju
  • 11
  • 2
1
vote
3 answers

Configuration not being reloaded

I'm having an issue with my configuration management class, it is not getting reloaded. Let me show you part of my code: public class ConfigurationManager extends XMLConfiguration { private static final Logger log =…
Fernando Moyano
  • 1,097
  • 4
  • 15
  • 29
1
vote
2 answers

Does XMLConfiguration in Apache common support CDATA?

I'am using Configuration 1.6. I hava a xml file, like sql I wish to get "select a, b from c" as a whole string, but i get "select a" and "b from c" as List…
qiuxiafei
  • 5,827
  • 5
  • 30
  • 43