Re: Validation & Anchoring

2005-06-22 Thread Laurie Harper
Oh, right, no... The browser doesn't see the new URL (and hence the anchor) with a forward. It'd work if you configured struts to redirect to the input view instead of forwarding, but then you have the same caveats about preserving state across the redirect... L. Dylan Stamat wrote: Oh, and

Re: Validation & Anchoring

2005-06-22 Thread Dave Newton
Dylan Stamat wrote: Thanks for your comments everybody I fiinally found the answer :) I'm still using the DynaValidatorForm, and basically just had to do what Laurie recommended in her 2nd point. I just need to check for messages on the JSP page using the messagesPresent logic tag...

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 :) > > I'm still using the D

Re: Validation & Anchoring

2005-06-22 Thread Dylan Stamat
Thanks for your comments everybody I fiinally found the answer :) I'm still using the DynaValidatorForm, and basically just had to do what Laurie recommended in her 2nd point. I just need to check for messages on the JSP page using the messagesPresent logic tag... ie: setTimeout('sel

Re: Validation & Anchoring

2005-06-22 Thread Laurie Harper
I'm not sure if you can tell the browser to scroll to an anchor from within the page (rather than in the URL). It would have to be done using Javascript, HTML doesn't provide this. Other than Javascript, I can think of two possibilities: 1) in your JSP, check for errors and, if they exist, ren

Re: Validation & Anchoring

2005-06-22 Thread Michael Jouravlev
On 6/22/05, Mark Galbreath <[EMAIL PROTECTED]> wrote: > Validator is crap...and always has been. If you look in the archive, you > will see more complaints about Validator working over the past 3 years and > any other 2 subjects combined. Risking to start offtopic here, I would say that the wh

RE: Validation & Anchoring

2005-06-22 Thread Mark Galbreath
day, June 22, 2005 3:10 PM To: Struts Users Mailing List Subject: Re: Validation & Anchoring Dylan Stamat wrote: >Yeah, I could... however this would defeat the purpose (convenience) of >using a DynaValidatorForm. > > Apparently it isn't all that convenient for you as it is, e

Re: Validation & Anchoring

2005-06-22 Thread Dave Newton
Dylan Stamat wrote: Yeah, I could... however this would defeat the purpose (convenience) of using a DynaValidatorForm. Apparently it isn't all that convenient for you as it is, either. The main purpose of using a dyna form, at least for me, is that I don't have to write a class and the get

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, > >and errors are found, I'm never ev

Re: Validation & Anchoring

2005-06-22 Thread Dave Newton
Dylan Stamat wrote: The problem I'm running into is that since I'm using a DynaValidationForm, and errors are found, I'm never even reaching my Action... so, the setting of the anchor in the request wouldn't work. I would somehow need to determine if there "were" errors on the JSP page itsel

Re: Validation & Anchoring

2005-06-22 Thread Dylan Stamat
Thanks Wendy ! The problem I'm running into is that since I'm using a DynaValidationForm, and errors are found, I'm never even reaching my Action... so, the setting of the anchor in the request wouldn't work. I would somehow need to determine if there "were" errors on the JSP page itself (like

Re: Validation & Anchoring

2005-06-22 Thread Wendy Smoak
From: "Dylan Stamat" <[EMAIL PROTECTED]> > 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... so, only the errors and the form shows... not the text above. > Anybody have any ideas on ho