1. Jonghyouk Yun
  2. mybatis-with-guice

Commits

Jonghyouk Yun  committed c1560df

public/jsp files + jersey.

  • Participants
  • Parent commits 39990bd
  • Branches master

Comments (0)

Files changed (4)

File TODO.txt

View file
  • Ignore whitespace
 
 DONE * jsp-el? jstl?
 
-* /public?
+DONE * /public?
 
-* /public config-ize.
+DONE * /public config-ize.
 
-* no serve-urls?
+DONE * no serve-urls?
 
 
 * javadocs!

File src/main/java/jhyun/mybatis_with_guice/injections/JerseyServletModule.java

View file
  • Ignore whitespace
 		Configuration config = AppConfig.load();
 		final Map<String, String> jerseyProperties = loadJerseyProperties(config);
 		logger.debug(String.format("jersey-properties = %s", jerseyProperties));
-		// FIXME:
-		serveRegex(config.getString("default-serve-url-regex", "/public/.*"))
-				.with(DefaultWrapperServlet.class);
 		//
 		final String jerseyServeUrlPattern = config.getString(
 				"jersey-serve-url-pattern", "/*");

File src/main/resources/app-config.xml

View file
  • Ignore whitespace
 			jhyun.mybatis_with_guice.controllers.HelloController
 		</jersey-modules>
 		<jersey-properties-file>jersey.properties</jersey-properties-file>
-		<default-serve-url-regex>/public/.*</default-serve-url-regex>
 		<jersey-serve-url-pattern>/*</jersey-serve-url-pattern>
 	</app>
 	<test>

File src/main/resources/jersey.properties

View file
  • Ignore whitespace
 com.sun.jersey.api.json.POJOMappingFeature=true
 		
 com.sun.jersey.config.property.JSPTemplatesBasePath=/WEB-INF/jsp
-		
+
+
+### ...for static, JSP files. (non-Jersey-handleds.)
+### NOTE: http://stackoverflow.com/a/10948241
+com.sun.jersey.config.feature.FilterForwardOn404=true
+
+
+### NOTE: NOT APPLIED.		
 com.sun.jersey.config.property.WebPageContentRegex___="(/(public)/.*)");//|(/.*\\.jsp)|(/WEB-INF/.*\\.jsp)|(/WEB-INF/.*\\.jspf)|(/.*\\.html)|(/favicon\\.ico)|(/robots\\.txt)");
 
 
+
 ### EOF