Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
Main
TextFormattingRules
WhatIsWiki




JSPWiki v2.2.33

[RSS]


Hide Menu

SandBox


Difference between version 49 and version 48:

At line 30 changed 14 lines.
protected ConfigurableApplicationContext createContext() throws Exception {
ConfigurableWebApplicationContext root = new XmlWebApplicationContext();
MockServletContext sc = new MockServletContext("");
root.setServletContext(sc);
root.setConfigLocations(new String[] {"web/WEB-INF/applicationContext.xml"});
root.refresh();
ConfigurableWebApplicationContext wac = new XmlWebApplicationContext();
wac.setParent(root);
wac.setServletContext(sc);
wac.setNamespace("action-servlet");
wac.setConfigLocations(new String[] {"web/WEB-INF/action-servlet.xml"});
wac.refresh();
return wac;
}
private ApplicationContext ctx;
At line 46 changed 1 line.
ctx = createContext();
String[] paths = {"/applicationContext.xml", "/action-servlet.xml"};
ctx = new ClassPathXmlApplicationContext(paths);

Back to SandBox, or to the Page History.