struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicholas L Mohler" <Nicholas_L_Moh...@raytheon.com>
Subject Re: Strange Validation Behavior (SOLVED)
Date Tue, 04 May 2004 19:51:50 GMT





Hubert,

Thanks for getting back to me.  We ended up finding the problem about an
hour ago.

It turns out that a developer had mistakenly added [inputForward="true"] to
the <controller/> section of the struts-config file.

The effect of that change is that the value for input tags are assumed to
be forwards.  When we removed the code the problem went away, so life is
good  :-)

Nick




|---------+---------------------------->
|         |           Hubert Rabago    |
|         |           <jakartauser@yaho|
|         |           o.com>           |
|         |                            |
|         |           05/04/2004 12:48 |
|         |           PM               |
|         |           Please respond to|
|         |           "Struts Users    |
|         |           Mailing List"    |
|         |                            |
|---------+---------------------------->
  >------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                      
                                       |
  |       To:       Struts Users Mailing List <user@struts.apache.org>             
                                             |
  |       cc:                                                                            
                                       |
  |       Subject:  Re: Strange Validation Behavior                                      
                                       |
  >------------------------------------------------------------------------------------------------------------------------------|




Send your mappings so that others can "trace" the path along with you, and
maybe spot a problem.

--- Nicholas L Mohler <Nicholas_L_Mohler@raytheon.com> wrote:
>
>
>
>
> Hi,
>
> We are having a problem that occurs when a property fails a server-side
> validation.  The problem is that the value that we specify for the
"input"
> tag is not correctly resolved and we end up with a blank page being
> returned, as opposed to the page that originated the error with the
> appropriate errors highlighted.
>
> For our input tag, we specify another mapping that handles the things
that
> need to happen before we can return to an editting page.  Please don't
ask
> why we do it that way :-)  When I follow the code, we end up in the
> RequestProcessor.processValidate method.  When there are properties that
> fail validation and an input tag is specified, the input value is used to
> find a forward.  Because the input value points to another mapping, a
> forward is not found, and at that point, struts really has no where to
go,
> so we get the blank page.
>
> I have tested that I can create a "failed" forward, and then set the path
> to the same value as I had previously specified in the input tag, but
this
> does not seem right.  I have seen examples where the input points to a
.jsp
> file.  I think that is similar to what we are doing....so I am at a loss.
>
> Does anybody have any thoughts?
> Nick
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>





__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message