Re: Initializing of DynaValidatorForm.

2003-06-06 Thread Gemes Tibor
Kazda Juraj rta:

 action path=/listRec type=sk.jerryk.ListRecsAction
   forward name=listRec path=list.recs /
 /action
   
 action path=/showRec type=sk.jerryk.ShowRecAction
scope=request
   forward name=showRec path=edit.rec /
 /action

 action path=/editRec type=sk.jerryk.EditRecAction
name=editRecForm validate=true input=edit.rec
   forward name=editRec path=edit.rec /
 /action
 

The forms are not in the same context.

Tib



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


RE: Initializing of DynaValidatorForm.

2003-06-06 Thread Kazda Juraj
Hi Tibor,

You mean, that I need to add scope=request to showRec action too? When I add it, I 
have to add also name=editRecForm and then, after I click on the link targeting the 
showRec action, it will throw an exception:

  com.ibm.ws.webcontainer.webapp.WebAppErrorReport: No input attribute for mapping 
path /showRole

(I'm using WebSphere Studio 5 and it's Test Environment)

Ok, I add input attribute, and then it ignore all the action, goes directly to the 
defined input, so nothing is filled in...

I don't understand what's going on...

Have you any idea?

-jerryk.



-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 06, 2003 3:56 PM
To: Struts Users Mailing List
Subject: Re: Initializing of DynaValidatorForm.

Kazda Juraj rta:

  action path=/listRec type=sk.jerryk.ListRecsAction
forward name=listRec path=list.recs /
  /action

  action path=/showRec type=sk.jerryk.ShowRecAction
scope=request
forward name=showRec path=edit.rec /
  /action

  action path=/editRec type=sk.jerryk.EditRecAction
name=editRecForm validate=true input=edit.rec
forward name=editRec path=edit.rec /
  /action
  

The forms are not in the same context.

Tib




-
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]



Re: Initializing of DynaValidatorForm.

2003-06-06 Thread Gemes Tibor
Kazda Juraj rta:

Hi Tibor,

You mean, that I need to add scope=request to showRec action too? When I add it, I have to add also name=editRecForm and then, after I click on the link targeting the showRec action, it will throw an exception:
 

If it goes to input it means that validation error occures.
You migth want to turn off validation in showRec.
You might want to throw away that low level code in which you
create your form, leave it to the struts framework. You just
initialize in the action by setting some attributes.
Hth,

Tib



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