This file contains hidden or 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"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>javagurus.curso.frameworks</groupId> | |
<artifactId>ejemplo.struts2.h2</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<packaging>war</packaging> | |
<name>ejemplo.struts2.h2</name> |
This file contains hidden or 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"?> | |
<web-app id="struts_blank" version="2.4" | |
xmlns="http://java.sun.com/xml/ns/j2ee" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> | |
<display-name>Struts Blank</display-name> | |
<listener> | |
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> | |
</listener> | |
This file contains hidden or 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
package javagurus.curso.frameworks.controllers; | |
import java.math.BigDecimal; | |
import java.util.List; | |
import javagurus.curso.frameworks.model.Cliente; | |
import javagurus.curso.frameworks.services.ClienteDao; | |
import org.hibernate.Criteria; | |
import org.hibernate.criterion.DetachedCriteria; |
This file contains hidden or 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
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" | |
pageEncoding="ISO-8859-1"%> | |
<%@ taglib prefix="s" uri="/struts-tags" %> | |
<%@ taglib prefix="sj" uri="/struts-jquery-tags" %> | |
<%@ taglib prefix="sjg" uri="/struts-jquery-grid-tags" %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
This file contains hidden or 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
Here is some basic documentation for compiz-fusion on EL6 that wasn't immediately obvious; | |
A. To install compiz fusion; | |
1. install epel-release (rpm -i epel-release-6-5.noarch.rpm) | |
2. yum install compiz-fusion-extras compiz-plugins-main compiz-manager compiz-fusion-extras libcompizconfig compiz-plugins-main-gconf ccsm compiz-gnome compiz-gtk compiz-fusion-extras-gnome fusion-icon | |
(rpm -i ccsm-0.8.2-5.el6.noarch.rpm compizconfig-python-0.8.2-3.el6.x86_64.rpm compiz-fusion-0.8.2-8.el6.x86_64.rpm compiz-fusion-extras-0.8.2-6.el6.x86_64.rpm compiz-fusion-extras-gnome-0.8.2-6.el6.x86_64.rpm compiz-manager-0.6.0-11.el6.noarch.rpm fusion-icon-0.1.0-0.9.5e2dc9git.el6.noarch.rpm fusion-icon-qt-0.1.0-0.9.5e2dc9git.el6.noarch.rpm libcompizconfig-0.8.2-9.el6.x86_64.rpm | |
[Dependencies may include; libsexy-0.1.11-13.el6.x86_64.rpm protobuf-2.3.0-7.el6.x86_64.rpm PyQt4-4.6.2-8.el6.x86_64.rpm python-sexy-0.1.9-9.1.el6.x86_64.rpm sip-4.9.3-1.el6.x86_64.rpm etc]) | |
B. To enable compiz-fusion; |
This file contains hidden or 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
# Appender para la consola | |
log4j.appender.stdout=org.apache.log4j.ConsoleAppender | |
log4j.appender.stdout.Target=System.out | |
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout | |
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n | |
# Appender para mandar a un archivo | |
log4j.appender.file=org.apache.log4j.RollingFileAppender | |
log4j.appender.file.File=bitacora-sesion3.log | |
log4j.appender.file.MaxFileSize=1MB |
This file contains hidden or 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
// Es mejor usar ActionContext | |
Map session = ActionContext.getContext().getSession(); | |
session.put("logined","true"); | |
session.put("context", new Date()); | |
return SUCCESS; | |
Map session = ActionContext.getContext().getSession(); |
This file contains hidden or 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
[diff] | |
tool = p4merge | |
[merge] | |
tool = p4merge | |
[difftool "bc3"] | |
path = C:\\Program Files (x86)\\Beyond Compare 3\\bcomp.exe | |
[mergetool "bc3"] | |
path = C:\\Program Files (x86)\\Beyond Compare 3\\bcomp.exe | |
[difftool "p4merge"] | |
path = C:\\Program Files\\Perforce\\p4merge.exe |
This file contains hidden or 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
localhost:8080/ejemplo.struts2.h2/config-browser/actionNames.action | |
localhost:8080/ejemplo.struts2.h2/dbconsole/ |
This file contains hidden or 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
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.3.2</version> | |
<configuration> | |
<source>1.6</source> | |
<target>1.6</target> | |
</configuration> | |
</plugin> |