Annoying Validation issue

2003-12-25 Thread Joe Hertz
I am passing in an object my JSP page needs in with request scope. Works fine.

I'm also using the Validator, which also, individually, works fine.

They however, fight with eachother. Here's how:

When you use the validator and put a depends=required on a form's select box, 
the check isn't caught by the generated javascript. It's caught in the 
validator's back end logic.

This would be fine except that said back end logic has no way to know my JSP 
page needs some things passed in on the request. I'd like to keep it out of 
the httpSession if at all possible.

Is there a place to tell the validator what it needs to do to generate data 
the page needs before it tries to send the user back there??

TIA

-Joe

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



RE: Annoying Validation issue

2003-12-25 Thread Andrew Hill
I think most people get round this by having a seperate action to do the
setup. The input would point at that action rather then directly at the JSP.

(Personally I much prefer to use the same action for both page setup and
processing submissions (with a wee bit of branching logic as Ive rather gone
off dispatch actions these days). I also however spurn the ActionForms
validation method (and the Struts Validator) preferring to do this in the
action itself, so I dont usually encounter the problem your having.)

-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Friday, 26 December 2003 14:15
To: [EMAIL PROTECTED]
Subject: Annoying Validation issue


I am passing in an object my JSP page needs in with request scope. Works
fine.

I'm also using the Validator, which also, individually, works fine.

They however, fight with eachother. Here's how:

When you use the validator and put a depends=required on a form's select
box,
the check isn't caught by the generated javascript. It's caught in the
validator's back end logic.

This would be fine except that said back end logic has no way to know my JSP
page needs some things passed in on the request. I'd like to keep it out of
the httpSession if at all possible.

Is there a place to tell the validator what it needs to do to generate data
the page needs before it tries to send the user back there??

TIA

-Joe

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