This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<artifactId>maven-war-plugin</artifactId> | |
<configuration> | |
<packagingIncludes>*/**,.ebextensions/**</packagingIncludes> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form accept-charset="UTF-8" role="form" class="form-signin" action="loginProcess" method="post"> | |
<fieldset> | |
<input class="form-control" placeholder="Username" id="username" | |
type="text"> | |
<input class="form-control" | |
placeholder="Password" id="password" type="password"> | |
<input class="btn btn-lg btn-success btn-block" type="submit" | |
id="login" value="Login ª"> | |
</fieldset> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean class="org.springframework.web.servlet.view.tiles3.TilesViewResolver"/> | |
<bean id="tilesConfigurer" | |
class="org.springframework.web.servlet.view.tiles3.TilesConfigurer"> | |
<property name="definitions"> | |
<value>/WEB-INF/tiles-def.xml</value> | |
</property> | |
</bean> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<groups xmlns="http://www.isdc.ro/wro" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.isdc.ro/wro wro.xsd"> | |
<group name="all"> | |
<js>/js/app.js</js> | |
<js>/js/app1.js</js> | |
<css>/css/main.css</css> | |
<css>/css/main1.css</css> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<filter> | |
<filter-name>WebResourceOptimizer</filter-name> | |
<filter-class>ro.isdc.wro.http.WroFilter</filter-class> | |
</filter> | |
<filter-mapping> | |
<filter-name>WebResourceOptimizer</filter-name> | |
<url-pattern>/resources/*</url-pattern> | |
</filter-mapping> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>ro.isdc.wro4j</groupId> | |
<artifactId>wro4j-core</artifactId> | |
<version>1.5.0</version> | |
<type>jar</type> | |
<scope>compile</scope> | |
</dependency> | |
<dependency> | |
<groupId>ro.isdc.wro4j</groupId> | |
<artifactId>wro4j-extensions</artifactId> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RequestMapping(value = "/enter", method = RequestMethod.POST) | |
public String enter(HttpServletRequest request, ModelMap map, HttpSession session, | |
@ModelAttribute @Valid User user, BindingResult result) { | |
if (result.hasErrors()) { | |
logger.debug("validation error"); | |
map.addAttribute("error", result.getFieldError().getDefaultMessage()); | |
return "enter.again"; | |
} | |
try { | |
userService.create(user); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RequestMapping(value = "/enter", method = RequestMethod.POST) | |
public String enter(@ModelAttribute @Valid User user, HttpServletRequest request, ModelMap map, HttpSession session, | |
BindingResult result) { | |
if (result.hasErrors()) { | |
logger.debug("validation error"); | |
map.addAttribute("error", result.getFieldError().getDefaultMessage()); | |
return "enter.again"; | |
} | |
try { | |
userService.create(user); |