craigmcc    2002/10/12 18:08:25

  Modified:    src/share/org/apache/struts/util RequestUtils.java
  Log:
  Make it possible to retrieve the ActionErrors instance from any scope,
  not just request scope.
  
  PR: Bugzilla #12344
  Submitted by: Andre Beskrowni <beskrowni at alumni.cmu.edu>
  
  Revision  Changes    Path
  1.57      +5 -5      
jakarta-struts/src/share/org/apache/struts/util/RequestUtils.java
  
  Index: RequestUtils.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/util/RequestUtils.java,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -r1.56 -r1.57
  --- RequestUtils.java 12 Oct 2002 19:42:22 -0000      1.56
  +++ RequestUtils.java 13 Oct 2002 01:08:25 -0000      1.57
  @@ -1551,7 +1551,7 @@
   
           ActionErrors errors = new ActionErrors();
   
  -        Object value = pageContext.getAttribute(paramName, 
PageContext.REQUEST_SCOPE);
  +        Object value = pageContext.findAttribute(paramName);
   
           try {
           if (value == null) {
  
  
  

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

Reply via email to