You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by daniele rizzi <da...@largesys.it> on 2002/06/03 09:15:02 UTC
R: validator NullPointer- please help
hi,
have you enclosed the jakarta regexp library?
(it's required by validator only, so everything else works
as usual)
bye, d.rizzi
-----Messaggio originale-----
Da: Peter Onthrops [mailto:ponthrops@yahoo.com]
Inviato: venerdi 31 maggio 2002 18.47
A: struts-user@jakarta.apache.org
Oggetto: validator NullPointer- please help
I am having problems installing the validator. I am getting a
NullPointerException (see below) in the validate method of
...commons.validator.Validator. I followed the install instructions and just
can't figure out what it causing the exception.
-------------------------------------------
java.lang.NullPointerException
at org.apache.commons.validator.Validator.validate(Unknown Source)
at org.apache.struts.validator.action.ValidatorForm.validate(Unknown
Sou
rce)
at
org.apache.struts.action.ActionServlet.processValidate(ActionServlet.
java:2038)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:149
7)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:504)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind[Orion/1.5.4 (build 10585)]._deb._lnc(.:514)
at com.evermind[Orion/1.5.4 (build 10585)]._deb._wmb(.:170)
at com.evermind[Orion/1.5.4 (build 10585)]._co._wbb(.:581)
at com.evermind[Orion/1.5.4 (build 10585)]._co._fs(.:189)
at com.evermind[Orion/1.5.4 (build 10585)]._bt.run(.:62)
-----------------------------------------
My configuration is as follows.
1) /WEB-INF/struts-config.xml
<form-bean name="myForm" type="com.ponthrops.web.MyForm" /> (MyForm extends
ValidatorForm)
2) /WEB-INF/validation.xml
<form-validation>
<global>
</global>
<formset>
<form name="myForm">
<field property="firstName"
indexedProperty="member"
indexedListProperty="members"
depends="required">
<arg0 key="error.firstname.displayname"/>
</field>
</form>
</formset>
</form-validation>
3) validator-rules.xml includes the validator "required"
4) /WEB-INF/lib includes commons-validator.jar, struts-validator.jar, and
jakarta-regexp-1.2.jar
5) web.xml includes the example servet config given in the install
directions
My guess is I missed a configuration step, however I can't seem to figure
out where.
Any help is greatly appreciated.
Thanks so much,
Petra
---------------------------------
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
iterate > arraylist of arrays[] to show html:select and html:options.
Posted by cr...@razorsports.se.
Hi, how do i iterate on an arrayList of arrays with beans, containg a bean
wich turn contains another bean wich has the attribute i want to show...
the html:select does'nt seem to be able to reach the attributes of the
elements from the outer iterate.
<logic:iterate id="elements"
name="<%=StrutsConstants.ALL_PRODUCT_VARIATION_LIST%>"
type="VariationBean[]">
<html:select size="5" multiple="yes" property="Vvb.id.id" name="elements"
styleClass="formText">
<html:options collection="elements" property="Vvb.id"
labelProperty="valueid"/>
</html:select>
</logic:iterate>
any one know how its done?
hate to do it manually with just jsp.
/cv
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>