Validation & Anchoring

2005-06-22 Thread Dylan Stamat
I'm using a simple DynaValidationForm, and have the "input" in the struts-config mapping pointing to the same page the form resides on. When validation finds that there are errors, and returns to the form page with displayed errors... I want to anchor to the lower part of the large form page...

Re: Validation & Anchoring

2005-06-22 Thread Dylan Stamat
errors on the JSP page itself (like the struts tag "html:errors" does)... and then apply the necessary logic. Any ideas ? Thanks ! == Dylan On 6/22/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > > From: "Dylan Stamat" <[EMAIL PROTECTED]> > > When valida

Re: Validation & Anchoring

2005-06-22 Thread Dylan Stamat
Yeah, I could... however this would defeat the purpose (convenience) of using a DynaValidatorForm. On 6/22/05, Dave Newton <[EMAIL PROTECTED]> wrote: > > Dylan Stamat wrote: > > >The problem I'm running into is that since I'm using a > DynaValidationForm,

Re: Validation & Anchoring

2005-06-22 Thread Dylan Stamat
in > struts-config.xml for your action, you'd include > > input="/path/to/page.jsp#anchor" > > That way, if validation fails, it'll forward to the 'input' path which > includes the anchor you need to target. > > HTH, > > L. > > Dyl

Re: Validation & Anchoring

2005-06-22 Thread Dylan Stamat
Oh, and Laurie, just so you know, putting an anchor on a mappings input JSP page won't work. That was tried in one of my 1000 attempts :) On 6/22/05, Dylan Stamat <[EMAIL PROTECTED]> wrote: > > Thanks for your comments everybody I fiinally found the answer :) > &

Keeping Session small using Validation

2005-09-14 Thread Dylan Stamat
I have an Action which sets a populated List in a DynaValidatorForm Bean. The "input" of the ActionMapping in the struts-config simply points back to the .jsp page (actually a tile def) and uses to print out the error messages. If no validation problems occur, there aren't any problems. However

LabelValueBean in a Form

2005-09-14 Thread Dylan Stamat
I'm using a LabelValueBean, as I need to have a "name" be diplayed, and a "value" be reported back to the form. I have no problems creating a List of LabelValueBean's, setting them into the request like so: request.setAttribute("myLVBList", myLVBList); ... and outputting them on the .jsp like s