felipe rayo

Greenhorn
+ Follow
since Mar 08, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by felipe rayo

I'm new in Maven and Struts, and I don't know to debug a Maven project, with breakpoints like I normally do in a Java Project without Maven.
Has anybody knows how to debug a web maven project with breakpoints in Eclipse?

Thanks to all
9 years ago
Hi everybodyl.
Firstly sorry about my English.
I've a problem with validation in Struts2 and Maven.
I don't know why Strus2 don't validate the field fom.
It was ok when I haven't Maven in the project.
I have an structure like this:


src/main/java/actions/<action-name>.java
src/main/resources/actions/<action-name>.properties
src/main/resources/actions/<action-name>.validation.xml

Part of struts.xml:
<action name="doLogin" class="com.atosorigin.nuba.actions.login">
<result name="input">loginNuba.jsp</result>
<result name="success">/vistas/saludo.jsp</result>
<result name="error">/vistas/error.jsp</result>
</action>
login.properties has:
email.required= Email obligatorio y con formato correcto.
password.required=Falta la contrasenya

login-validation.xml has:
?xml version="1.0" encoding="UTF-8"?>

<!-- En Struts2 pondremos el nombre de la clase Java y NO EL NOMBRE DE LA ACCION -->

<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0.2//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">;

<validators>

<field name="userEmail">
<field-validator type="email">
<message key="email.required"/>
</field-validator>
</field>

<field name="userPassword">
<field-validator type="requiredstring">
<param name="trim">true</param>
<message key="password.required"/>
</field-validator>
</field>

</validators>


Has anybody knows the solution to solve this problem?

Best regards.
9 years ago
Hi everybodyl.
Firstly sorry about my English.
I've a problem with validation in Struts2 and Maven.
I don't know why Strus2 don't validate the field fom.
It was ok when I haven't Maven in the project.
I have an structure like this:

src/main/java/actions/<action-name>.java
src/main/resources/actions/<action-name>.properties
src/main/resources/actions/<action-name>.validation.xml


Part of struts.xml:
<action name="doLogin" class="com.atosorigin.nuba.actions.login">
<result name="input">loginNuba.jsp</result>
<result name="success">/vistas/saludo.jsp</result>
<result name="error">/vistas/error.jsp</result>
</action>
login.properties has:
email.required= Email obligatorio y con formato correcto.
password.required=Falta la contrasenya

login-validation.xml has:
?xml version="1.0" encoding="UTF-8"?>

<!-- En Struts2 pondremos el nombre de la clase Java y NO EL NOMBRE DE LA ACCION -->

<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0.2//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">;

<validators>

<field name="userEmail">
<field-validator type="email">
<message key="email.required"/>
</field-validator>
</field>

<field name="userPassword">
<field-validator type="requiredstring">
<param name="trim">true</param>
<message key="password.required"/>
</field-validator>
</field>

</validators>


Has anybody knows the solution to solve this problem?

Best regards.
9 years ago