<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems,
Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd">
sábado, 15 de mayo de 2010
ejb2 ejb-jar.xml header
domingo, 2 de mayo de 2010
struts normal action can't be a mapping dispatch action
A Mapping dispatch action uses the execute method to call the apropiate method, so you can't use normal action and as MappingDispatchAction, is one or the other but not both!
sábado, 1 de mayo de 2010
Action Errors and ActionError(deprecated)
The title says it all. Action Error is a class used only for struts 1.1, further versions replace ActionError for ActionMessage
order for tags in a struts-config.xml file
In Struts 1.1 it's important to declare all tags in the next order:
- data-sources
- form-beans
- global-exceptions
- global-forwards
- action-mappings
- controller
- message-resources
- plug-in
headers for struts-config.xml
You need always to define a DTD for your struts-config, for 1.1 version next lines are needed:
<?xml version="1.0" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
And for 1.3:
<?xml version="1.0" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
And for 1.3:
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
viernes, 30 de abril de 2010
Servlet Headers
When you want to use the 2.3 servlet specification add the next lines(dtd) to get down to work:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
If you want to use the 2.4 servlet specification, you need to add the next lines(schema):
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xsi="http://www.w3.org/2001/XMLSchema-instance" schemalocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
If you want to use the 2.4 servlet specification, you need to add the next lines(schema):
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xsi="http://www.w3.org/2001/XMLSchema-instance" schemalocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
Suscribirse a:
Entradas (Atom)