Duncan Mills wrote:
It might be worth enabling logging on the digester classes to see
what's happening on the XML.
I run validator using apps with Struts 1.1 in OC4J with no problem so
there's not a fundamental issue here. Are you using OC4J inside
JDeveloper or deploying to it from an external IDE? / Manually
Regards
Duncan Mills
Vinicius Caldeira Carvalho wrote:
Bill Siggelkow wrote:
Make sure you are using the latest release of Struts
(http://struts.apache.org/acquiring.html).
In Struts 1.2.2 (IIRC) there was an inconsistency with the Validator
that caused this problem.
-Bill Siggelkow
Vinicius Caldeira Carvalho wrote:
Hi there! I'm trying to make my validator projetct work on oc4j
(oracle 10g) and so far I got no success at all.
First thing that is really strange is that at deploy time the
application runs it complains about some attributes being used but
not declared: " XML-0149: (Error) Element 'arg0' used but not
declared."
well this doesn't seem to be affecting the application though.
But when I submit a form that uses validation nothin happens, I'm
submitted to a null page with this error on the stack:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionErrors,
javax.servlet.http.HttpServletRequest)
org.apache.commons.validator.ValidatorException:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionErrors,
javax.servlet.http.HttpServletRequest)
at
org.apache.commons.validator.ValidatorAction.loadValidationMethod(ValidatorAction.java:627)
at
org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:557)
at
org.apache.commons.validator.Field.validateForRule(Field.java:811)
at org.apache.commons.validator.Field.validate(Field.java:890)
at org.apache.commons.validator.Form.validate(Form.java:174)
at
org.apache.commons.validator.Validator.validate(Validator.java:367)
at
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:112)
at
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:921)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:206)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
at
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
No matter if I entered a value or not on the field:
here's my validation.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<form-validation>
<formset>
<form name="validarEntradaForm">
<field property="nome" depends="required">
<msg name="requerido" key="erro.requerido"/>
<arg0 key="login.nome"></arg0>
</field>
</form>
</formset>
</form-validation>
Any ideas?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
well, problem is... I'm using struts 1.1 is this inconsitence present
in this release as well?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi there Duncan, I'm using the second option. We use eclipse + ant to
deploy our app. I'll try to log the errors to see what's going wrong.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]