createActionForm nullpointerException

2004-05-12 Thread koen boutsen
Hi

I'm really stuck on this one.
I get the following error when submitting a form.

 E SRVE0026E: [Servlet Error]-[action]: java.lang.NullPointerException
at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:784)

In my actionmapping in the struts-config, I v' put the used form and I set validate = 
false, but I still get the error.  The used form is a DynaValidatorForm and is 
declared in my struts-config.

Can anybody help ?

Koen 



Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



html:form problem

2005-01-17 Thread koen boutsen
hi

Untill now I used  in my jsp's.

Now I installed the last version of struts, and I discovered that I'm not able 
to use the name and type property anymore.

In my application I use multiple forms on one page and via one javascript 
function per form, I set a hidden field in the selected form and submit the 
form. The value of the hidden field is later used in an action.
e.g. 
function setCampaign(target){
document.campaignForm.dispatch.value=target;
document.campaignForm.submit(); 
}

function setAct(target){
document.activityForm.dispatch.value=target;
document.activityForm.submit(); 
}

But I can't use the 'document.activityForm' anymore, because the name property 
is forbidden.

Is there another way of knowing what form has to be submit and set the hidden 
field, or do I have to do it in the following way ?   

function set(target){
document.forms[0].dispatch.value=target;
document.forms[0].submit(); 
} 
function setForm2(target){
document.forms[1].dispatch.value=target;
document.forms[1].submit(); 
} 


any help is appreciated.

Koen Boutsen
-- 
___
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]