Re: problems using httpunit / rhino with struts validator

2006-11-22 Thread Nathan Coast
Thanks Niall, perfect, you were right, it was an issue with the jcv_retrieveFormName. I'll post again when I've figured out whether it's caused by rhino, validator, httpunit or a combination of all three :) As a workaround I can override the jcv_retrieveFormName(form) in each jsp to return

Re: problems using httpunit / rhino with struts validator

2006-11-21 Thread Niall Pemberton
On 11/22/06, Nathan Coast [EMAIL PROTECTED] wrote: snip Unfortunately I can't find any rhino mailing lists or docs. Any validator or rhino experts who can point me in the right direction? /snip http://www.mozilla.org/rhino/doc.html cheers Nathan

Re: problems using httpunit / rhino with struts validator

2006-11-21 Thread Niall Pemberton
On 11/22/06, Nathan Coast [EMAIL PROTECTED] wrote: Hi Niall, thanks for the response. Httpunit handles the http/html side of things and delegates to mozilla's rhino jar for a 'standards compliant' java implementation of js (not sure how compliant or what version). I'm thinking either there's

problems using httpunit / rhino with struts validator

2006-11-21 Thread Nathan Coast
Hi, First off, thanks for the validator - saved me countless hours of writing js. I've started trying to introduce httpunit integration tests to my applications and unfortunately with both js and validator enabled, it barfs in fine style. httpunit 1.6.2, validator 1.3.0, rhino

Re: problems using httpunit / rhino with struts validator

2006-11-21 Thread Niall Pemberton
The tags generate functions based on the form's name - looks like it isn't finding the form's name resulting in your undefined_required. I've not used httpunit, but I guess you need to get http unit to generate the html as a jsp would do and have it parse the form and set up the dom as the

Re: problems using httpunit / rhino with struts validator

2006-11-21 Thread Nathan Coast
Hi Niall, thanks for the response. Httpunit handles the http/html side of things and delegates to mozilla's rhino jar for a 'standards compliant' java implementation of js (not sure how compliant or what version). I'm thinking either there's a bug in rhino, alternatively commons-validator