DO NOT REPLY [Bug 23255] - FormFile.getFileName() problem in multibyte character file name

2004-01-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23255

FormFile.getFileName() problem in multibyte character file name





--- Additional Comments From [EMAIL PROTECTED]  2004-01-08 07:10 ---
I had a similar problem, but I do not think, it is a Struts bug. 

Investigation: Internet Explorer sometimes does not send the encoding of the 
form data. If there is no encoding in the request, Tomcat uses the default 
encoding of the Java Virtual Machine. In my case (Linux, Sun JVM 1.4.2_02), 
this was ascii. Since many characters are not representable in ascii, they get 
lost.

Solution for me: A Filter that sets the Encoding to the encoding used by my 
pages:

public class EncodingFilter implements Filter
{
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException
{
if (request.getCharacterEncoding() == null)
request.setCharacterEncoding("ISO-8859-1");

chain.doFilter(request, response);
}

...

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



Re: @author tags in Struts code

2004-01-08 Thread David Graham

--- Paul Sundling <[EMAIL PROTECTED]> wrote:
> I can see a lot of valid points in the article.  I also don't buy the 
> positive side regarding author tags helping point out who to go to for 
> help on a particular file.   Whatever the final decision, the philosophy
> 
> should be documented on the web site in the section where it talks about
> 
> how to help.  There are however two reasons why I think such artifacts 
> as author tags are good (although I think CVS comments are better if 
> consistent).
> 
> 1.  For non-committers, it gives us warm fuzzies.  It's like a little 
> flag that says I actually made my contribution to open source, like more
> 
> of us out there should.  You can't go in CVS and see that people like me
> 
> added a patch, unless a committer actually takes time to actually 
> mention it without an author tag.  If there were some template text, 
> like "Based on a patch contributed to ASF by [EMAIL PROTECTED] related 
> to bugzilla # ." in the CVS log I think that would be good enough. 

Most of the time when patches are applied the contributor is mentioned in
the cvs commit message.  All commits dealing with bugzilla are tagged with
something like "Fixes PR 1234" so you can go to the bugzilla page for more
info.  We also maintain a list of contributors on the website for everyone
to see, not just those browsing the javadocs.

> 
> Even though I've had a VERY VERY minor contribution, it was quite a rush
> 
> to have an author tag on a minor support file.  It made me feel like a 
> part of the project and it made me want to get more involved.  [I'm 
> getting into unit testing, so I figure I might make contributions there 
> first down the line.]  I would never want to cause any resentment 
> against those doing the brunt of the work or claim that I'm on the same 
> level.  At the same time, it's nice to have a little reminder somewhere 
> that I'm making a contribution, however small.
> 
> 2. There should be some tracking for the origins of code in case we ever
> 
> get attacked by a company like SCO.  Maybe there's already some cross 
> referencing system that I'm not aware of between bugzilla and CVS that 
> already takes care of this.  I guess this is counter to legal protection
> 
> under the ASF umbrella.  Let's say I work at Top Secret Corp or Run By 
> Lawyers Inc.  and I submit a patch that my employer would see as 
> infringing code.  It's good code and one of committers (David Graham for
> 
> instance, since I'm replying to his message) commits it into CVS.  It 
> now looks like David was the source for the code and when Top Secret 
> Corp lawyers started sniffing around it'd be harder to find out the true
> 
> source.  I would guess this might end up being a major issue depending 
> on how the SCO law suit ends.

This is another good reason to not accept patches through struts-dev and
only through bugzilla.  When the committer commits the code they will tag
it with a bugzilla ticket number.  Bugzilla keeps track of who the patch
came from so questions like the above never come up.

David

> 
> Paul Sundling
> 
> 
> David Graham wrote:
> 
> >The @author javadoc tag topic has been discussed on commons-dev
> recently
> >and Ted brought it up in a recent struts-dev thread so I thought it
> might
> >be nice to get the Struts community's opinion on it.  Some arguments
> >against @author tags by Greg Stein can be found here:
> >http://tinyurl.com/yrlhu
> >
> >I'm not too concerned about the legal issues because I don't think
> there
> >are any.  I think it's a good idea to remove all of the tags rather
> than
> >each person removing their own so that the remaining tags don't
> >misrepresent who did most of the work (kind of an all or nothing deal).
> >
> >Comments?
> >
> >David
> >
> >__
> >Do you Yahoo!?
> >Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
> >http://hotjobs.sweepstakes.yahoo.com/signingbonus
> >
> >-
> >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]
> 


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



cvs commit: jakarta-struts/src/examples - New directory

2004-01-08 Thread husted
husted  2004/01/08 08:11:55

  jakarta-struts/src/examples - New directory

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



cvs commit: jakarta-struts/src/examples/org - New directory

2004-01-08 Thread husted
husted  2004/01/08 08:12:02

  jakarta-struts/src/examples/org - New directory

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



cvs commit: jakarta-struts/src/examples/org/apache - New directory

2004-01-08 Thread husted
husted  2004/01/08 08:12:07

  jakarta-struts/src/examples/org/apache - New directory

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



cvs commit: jakarta-struts/src/examples/org/apache/struts - New directory

2004-01-08 Thread husted
husted  2004/01/08 08:12:13

  jakarta-struts/src/examples/org/apache/struts - New directory

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



cvs commit: jakarta-struts/src/examples/org/apache/struts/webapp - New directory

2004-01-08 Thread husted
husted  2004/01/08 08:12:33

  jakarta-struts/src/examples/org/apache/struts/webapp - New directory

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



cvs commit: jakarta-struts/src/examples/org/apache/struts/webapp/examples - New directory

2004-01-08 Thread husted
husted  2004/01/08 08:12:49

  jakarta-struts/src/examples/org/apache/struts/webapp/examples - New directory

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



cvs commit: jakarta-struts/src/examples/org/apache/struts/webapp/exercise - New directory

2004-01-08 Thread husted
husted  2004/01/08 08:14:52

  jakarta-struts/src/examples/org/apache/struts/webapp/exercise - New directory

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



cvs commit: jakarta-struts/src/examples/org/apache/struts/webapp/upload - New directory

2004-01-08 Thread husted
husted  2004/01/08 08:14:57

  jakarta-struts/src/examples/org/apache/struts/webapp/upload - New directory

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



cvs commit: jakarta-struts/src/examples/org/apache/struts/webapp/validator - New directory

2004-01-08 Thread husted
husted  2004/01/08 08:15:03

  jakarta-struts/src/examples/org/apache/struts/webapp/validator - New directory

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



cvs commit: jakarta-struts/src/examples/org/apache/struts/webapp/examples MessageResource.properties

2004-01-08 Thread husted
husted  2004/01/08 08:16:00

  Added:   src/examples/org/apache/struts/webapp/examples
MessageResource.properties
  Log:
  Add package for default "examples" module.
  
  Revision  ChangesPath
  1.1  
jakarta-struts/src/examples/org/apache/struts/webapp/examples/MessageResource.properties
  
  Index: MessageResource.properties
  ===
  # -- standard errors --
  errors.header=
  errors.prefix=
  errors.suffix=
  errors.footer=
  # -- validator --
  errors.invalid={0} is invalid.
  errors.maxlength={0} can not be greater than {1} characters.
  errors.minlength={0} can not be less than {1} characters.
  errors.range={0} is not in the range {1} through {2}.
  errors.required={0} is required.
  errors.byte={0} must be an byte.
  errors.date={0} is not a date.
  errors.double={0} must be an double.
  errors.float={0} must be an float.
  errors.integer={0} must be an integer.
  errors.long={0} must be an long.
  errors.short={0} must be an short.
  errors.creditcard={0} is not a valid credit card number.
  errors.email={0} is an invalid e-mail address.
  # -- other --
  errors.cancel=Operation cancelled.
  errors.detail={0}
  errors.general=The process did not complete. Details should follow.
  errors.token=Request could not be completed. Operation is not in sequence.
  
  
  

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



cvs commit: jakarta-struts/src/examples/org/apache/struts/webapp/exercise TestBean.java MessageResources_fr.properties MessageResources_de.properties MessageResources.properties HtmlSettersAction.java ApplicationResources_ja.properties

2004-01-08 Thread husted
husted  2004/01/08 08:17:33

  Added:   src/examples/org/apache/struts/webapp/exercise TestBean.java
MessageResources_fr.properties
MessageResources_de.properties
MessageResources.properties HtmlSettersAction.java
ApplicationResources_ja.properties
  Log:
  Place source code for exercise module under examples.
  
  Revision  ChangesPath
  1.1  
jakarta-struts/src/examples/org/apache/struts/webapp/exercise/TestBean.java
  
  Index: TestBean.java
  ===
  /*
   * $Header: 
/home/cvs/jakarta-struts/src/examples/org/apache/struts/webapp/exercise/TestBean.java,v
 1.1 2004/01/08 16:17:33 husted Exp $
   * $Revision: 1.1 $
   * $Date: 2004/01/08 16:17:33 $
   *
   * 
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999-2001 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *notice, this list of conditions and the following disclaimer in
   *the documentation and/or other materials provided with the
   *distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *any, must include the following acknowlegement:
   *   "This product includes software developed by the
   *Apache Software Foundation (http://www.apache.org/)."
   *Alternately, this acknowlegement may appear in the software itself,
   *if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Struts", and "Apache Software
   *Foundation" must not be used to endorse or promote products derived
   *from this software without prior written permission. For written
   *permission, please contact [EMAIL PROTECTED]
   *
   * 5. Products derived from this software may not be called "Apache"
   *nor may "Apache" appear in their names without prior written
   *permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * 
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * .
   *
   */
  
  
  package org.apache.struts.webapp.exercise;
  
  
  import java.util.ArrayList;
  import java.util.Collection;
  import java.util.HashMap;
  import java.util.List;
  import java.util.Map;
  import java.util.Vector;
  import javax.servlet.http.HttpServletRequest;
  import org.apache.struts.action.ActionForm;
  import org.apache.struts.action.ActionMapping;
  import org.apache.struts.util.LabelValueBean;
  
  
  /**
   * General purpose test bean for Struts custom tag tests.
   *
   * @author Craig R. McClanahan
   * @author Martin F N Cooper
   * @version $Revision: 1.1 $ $Date: 2004/01/08 16:17:33 $
   */
  
  public class TestBean extends ActionForm {
  
  
  // - Properties
  
  
  /**
   * A collection property where the elements of the collection are
   * of type LabelValueBean.
   */
  private Collection beanCollection = null;
  
  public Collection getBeanCollection() {
  if (beanCollection == null) {
  Vector entries = new Vector(10);
  
  entries.add(new LabelValueBean("Label 0", "Value 0"));
  entries.add(new LabelValueBean("Label 1", "Value 1"));
  entries.add(new LabelValueBean("Label 2", "Value 2"));
  entries.add(new LabelValueBean("Label 3", "Value 3"));
  entries.add(new LabelVa

cvs commit: jakarta-struts/src/examples/org/apache/struts/webapp/upload UploadResources_ja.properties UploadResources.properties UploadForm.java UploadAction.java

2004-01-08 Thread husted
husted  2004/01/08 08:17:57

  Added:   src/examples/org/apache/struts/webapp/upload
UploadResources_ja.properties
UploadResources.properties UploadForm.java
UploadAction.java
  Log:
  Place source code for upload module under examples.
  
  Revision  ChangesPath
  1.1  
jakarta-struts/src/examples/org/apache/struts/webapp/upload/UploadResources_ja.properties
  
  Index: UploadResources_ja.properties
  ===
  
maxLengthExceeded=\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u308b\u6700\u5927\u5024\u3092\u8d85\u3048\u307e\u3057\u305f
  
  
  
  1.1  
jakarta-struts/src/examples/org/apache/struts/webapp/upload/UploadResources.properties
  
  Index: UploadResources.properties
  ===
  maxLengthExceeded=The maximum upload length has been exceeded by the client.
  
  
  1.1  
jakarta-struts/src/examples/org/apache/struts/webapp/upload/UploadForm.java
  
  Index: UploadForm.java
  ===
  /*
  * $Header: 
/home/cvs/jakarta-struts/src/examples/org/apache/struts/webapp/upload/UploadForm.java,v
 1.1 2004/01/08 16:17:57 husted Exp $
  * $Revision: 1.1 $
  * $Date: 2004/01/08 16:17:57 $
  *
  * 
  *
  * The Apache Software License, Version 1.1
  *
  * Copyright (c) 1999-2003 The Apache Software Foundation.  All rights
  * reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
  *
  * 1. Redistributions of source code must retain the above copyright
  *notice, this list of conditions and the following disclaimer.
  *
  * 2. Redistributions in binary form must reproduce the above copyright
  *notice, this list of conditions and the following disclaimer in
  *the documentation and/or other materials provided with the
  *distribution.
  *
  * 3. The end-user documentation included with the redistribution, if
  *any, must include the following acknowlegement:
  *   "This product includes software developed by the
  *Apache Software Foundation (http://www.apache.org/)."
  *Alternately, this acknowlegement may appear in the software itself,
  *if and wherever such third-party acknowlegements normally appear.
  *
  * 4. The names "The Jakarta Project", "Struts", and "Apache Software
  *Foundation" must not be used to endorse or promote products derived
  *from this software without prior written permission. For written
  *permission, please contact [EMAIL PROTECTED]
  *
  * 5. Products derived from this software may not be called "Apache"
  *nor may "Apache" appear in their names without prior written
  *permission of the Apache Group.
  *
  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  * 
  *
  * This software consists of voluntary contributions made by many
  * individuals on behalf of the Apache Software Foundation.  For more
  * information on the Apache Software Foundation, please see
  * .
  *
  */
  
  package org.apache.struts.webapp.upload;
  
  import javax.servlet.http.HttpServletRequest;
  
  import org.apache.struts.action.ActionErrors;
  import org.apache.struts.action.ActionForm;
  import org.apache.struts.action.ActionMapping;
  import org.apache.struts.action.ActionMessage;
  import org.apache.struts.upload.FormFile;
  import org.apache.struts.upload.MultipartRequestHandler;
  
  /**
   * This class is a placeholder for form values.  In a multipart request, files are 
represented by
   * set and get methods that use the class org.apache.struts.upload.FormFile, an 
interface with
   * basic methods to retrieve file information.  The actual structure of the FormFile 
is dependant
   * on the underlying impelementation of multipart request handling.  The default 
implementation
   * that struts uses is org.apache.struts.upload.CommonsMultipartRequ

cvs commit: jakarta-struts/web/examples - New directory

2004-01-08 Thread husted
husted  2004/01/08 08:19:17

  jakarta-struts/web/examples - New directory

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



cvs commit: jakarta-struts/web/examples/exercise - New directory

2004-01-08 Thread husted
husted  2004/01/08 08:19:25

  jakarta-struts/web/examples/exercise - New directory

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



cvs commit: jakarta-struts/web/examples/upload - New directory

2004-01-08 Thread husted
husted  2004/01/08 08:20:27

  jakarta-struts/web/examples/upload - New directory

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



cvs commit: jakarta-struts/web/examples/upload upload.jsp upload-utf8.jsp display.jsp

2004-01-08 Thread husted
husted  2004/01/08 08:20:45

  Added:   web/examples/upload upload.jsp upload-utf8.jsp display.jsp
  Log:
  Place web assets for upload module under examples.
  
  Revision  ChangesPath
  1.1  jakarta-struts/web/examples/upload/upload.jsp
  
  Index: upload.jsp
  ===
  <%@ page import="org.apache.struts.action.*,
   java.util.Iterator,
   org.apache.struts.webapp.upload.UploadForm, 
   org.apache.struts.Globals" %><%@ taglib uri="/tags/struts-bean" 
prefix="bean" %><%@ taglib uri="/tags/struts-html" prefix="html" %><%@ taglib 
uri="/tags/struts-logic" prefix="logic" %>
  

  File Upload Example


  
  
<%
ActionErrors errors = (ActionErrors) 
request.getAttribute(Globals.ERROR_KEY);
//note that this error is created in the validate() method of 
UploadForm
Iterator iterator = 
errors.get(UploadForm.ERROR_PROPERTY_MAX_LENGTH_EXCEEDED);
//there's only one possible error in this
ActionError error = (ActionError) iterator.next();
pageContext.setAttribute("maxlength.error", error, 
PageContext.REQUEST_SCOPE);
%>
  
  
  

  

  
  Note that the maximum 
allowed size of an uploaded file for this application is two megabytes. See the 
/WEB-INF/struts-config.xml file for this application to change it.
  
  
  
  Please enter some text, just to demonstrate the handling 
of text elements as opposed to file elements:
  
  
  
  Please select the file that you would like to upload:
  
  
  
  If you would rather write this file to another file, please check here: 
  
  
  If you checked the box to write to a file, please specify the file path 
here:
  
  
  
  
  

  
  
  
  
  1.1  jakarta-struts/web/examples/upload/upload-utf8.jsp
  
  Index: upload-utf8.jsp
  ===
  <%@ page contentType="text/html; charset=utf-8" %><%@ taglib uri="/tags/struts-html" 
prefix="html" %>
  

  utf-8 upload page
  


  
  Please enter 
some text, just to demonstrate the handling of text elements as opposed to file 
elements:
  
  
  
  Please select the file that you would like to upload:
  
  
  
  If you would rather write this file to another file, please check here: 
  
  
  If you checked the box to write to a file, please specify the file path 
here:
  
  
  
  
  

  
  
  
  
  1.1  jakarta-struts/web/examples/upload/display.jsp
  
  Index: display.jsp
  ===
  The Text<%= request.getAttribute("text") %>
  
  The Query Parameter<%= request.getAttribute("queryValue") %>
  
  The File name<%= request.getAttribute("fileName") %>
  
  The File content type<%= request.getAttribute("contentType") %>
  
  The File size<%= request.getAttribute("size") %>
  
  The File data
  
  
  
  <%= request.getAttribute("data") %>
  
  
  
  
  

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



cvs commit: jakarta-struts/web/examples/validator - New directory

2004-01-08 Thread husted
husted  2004/01/08 08:20:52

  jakarta-struts/web/examples/validator - New directory

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



cvs commit: jakarta-struts/web/examples/validator type.jsp registration.jsp multiRegistration2.jsp multiRegistration1.jsp jsType.jsp jsRegistration.jsp index.jsp

2004-01-08 Thread husted
husted  2004/01/08 08:21:13

  Added:   web/examples/validator type.jsp registration.jsp
multiRegistration2.jsp multiRegistration1.jsp
jsType.jsp jsRegistration.jsp index.jsp
  Log:
  Place web assets for validator module under examples.
  
  Revision  ChangesPath
  1.1  jakarta-struts/web/examples/validator/type.jsp
  
  Index: type.jsp
  ===
  <%@ page contentType="text/html;charset=UTF-8" language="java" %><%@ taglib 
uri="/tags/struts-bean" prefix="bean" %><%@ taglib uri="/tags/struts-html" 
prefix="html" %><%@ taglib uri="/tags/struts-logic" prefix="logic" %><%@ taglib 
uri="/tags/struts-nested" prefix="nested" %>
  

  

  
  


  


  

  

  
  

  

  
  

  

  
  

  

  
  

  

  
  

  

  
  

  

  
  

  

  
  

  

  


  
  


  

  


  

  
  

  


  

  
  

  


  

  
  

  


  

  
  

  


  

  
  

  


  

  
  

  


  

  
  

  


  

  
  

  


(e.g. 
4111, 5504)
  
  

  

 
  
  

   
  

  
  

  

  

  


  

  
  


  
  

  
  

  

  

  

  
  
  
  
  1.1  jakarta-struts/web/examples/validator/registration.jsp
  
  Index: registration.jsp
  ===
  <%@ page contentType="text/html;charset=UTF-8" %>
  <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
  <%@ taglib uri="/tags/struts-html" prefix="html" %>
  <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
  
  
  
  
  
  
  
  
  
 
 
 

 
 
  
  
  
  

  
  

  

  
  

  


  

  
  

  


  

  
  

  


  

  
  

  


  

  
  

  


  

  
  

  


  

  
  

  


  

  
  

  


  

   

 

   

 

   

  

  
  
  
  
  
  
  
  
  
  1.1  jakarta-struts/web/examples/validator/multiRegistration2.jsp
  
  Index: multiRegistration2.jsp
  ===
  <%@ page contentType="text/html;charset=UTF-8" %>
  <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
  <%@ taglib uri="/tags/struts-html" prefix="html" %>
  <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
  
  
  
  
  
  
  
  
  
 
 
 

 
 
  
  
  
  








  
  

  

  
  

  


  

  
  

  


  

  
  

  


  

  
  

  


  

   

 

   

 

   

  

  
  

cvs commit: jakarta-struts/web/examples/WEB-INF - New directory

2004-01-08 Thread husted
husted  2004/01/08 08:21:23

  jakarta-struts/web/examples/WEB-INF - New directory

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



cvs commit: jakarta-struts/web/examples/WEB-INF web.xml struts-config.xml

2004-01-08 Thread husted
husted  2004/01/08 08:22:11

  Added:   web/examples/WEB-INF web.xml struts-config.xml
  Log:
  Web infrastructure for default examples module.
  
  Revision  ChangesPath
  1.1  jakarta-struts/web/examples/WEB-INF/web.xml
  
  Index: web.xml
  ===
  
  http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
  
Struts Examples Application


  action
  org.apache.struts.action.ActionServlet
  
config
/WEB-INF/struts-config.xml
  
  
  
config/exercise
/WEB-INF/exercise/struts-config.xml
  
  
config/upload
/WEB-INF/upload/struts-config.xml
  
  
config/validator
/WEB-INF/validator/struts-config.xml
  
  
debug
2
  
  
detail
2
  
  2



  action
  *.do



  index.jsp
  index.html
  upload.jsp



  /tags/struts-bean
  /WEB-INF/struts-bean.tld


  /tags/struts-html
  /WEB-INF/struts-html.tld


  /tags/struts-logic
  /WEB-INF/struts-logic.tld


  /tags/struts-nested
  /WEB-INF/struts-nested.tld


  
  
  
  
  1.1  jakarta-struts/web/examples/WEB-INF/struts-config.xml
  
  Index: struts-config.xml
  ===
  
  http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
  
  




  


  



  
  
  
  

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



cvs commit: jakarta-struts/web/examples/WEB-INF/exercise - New directory

2004-01-08 Thread husted
husted  2004/01/08 08:22:17

  jakarta-struts/web/examples/WEB-INF/exercise - New directory

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



cvs commit: jakarta-struts/web/examples/WEB-INF/exercise struts-config.xml

2004-01-08 Thread husted
husted  2004/01/08 08:22:42

  Added:   web/examples/WEB-INF/exercise struts-config.xml
  Log:
  Struts configuration for exercise module.
  
  Revision  ChangesPath
  1.1  jakarta-struts/web/examples/WEB-INF/exercise/struts-config.xml
  
  Index: struts-config.xml
  ===
  
  http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";>
  

  
  
  



  


  http://jakarta.apache.org/struts"; />
  
  


  
  
  

  
  
  

  
  
  

  
  
  

  
  
  
  

  


  
  
  
  

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



cvs commit: jakarta-struts/web/examples/WEB-INF/upload - New directory

2004-01-08 Thread husted
husted  2004/01/08 08:22:47

  jakarta-struts/web/examples/WEB-INF/upload - New directory

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



cvs commit: jakarta-struts/web/examples/WEB-INF/upload struts-config.xml

2004-01-08 Thread husted
husted  2004/01/08 08:23:04

  Added:   web/examples/WEB-INF/upload struts-config.xml
  Log:
  Struts configuration for upload module.
  
  Revision  ChangesPath
  1.1  jakarta-struts/web/examples/WEB-INF/upload/struts-config.xml
  
  Index: struts-config.xml
  ===
  
  http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";>
  

  


  
  
  

  



  
  
  
  

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



cvs commit: jakarta-struts/web/examples/WEB-INF/validator - New directory

2004-01-08 Thread husted
husted  2004/01/08 08:23:15

  jakarta-struts/web/examples/WEB-INF/validator - New directory

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



cvs commit: jakarta-struts/web/examples/WEB-INF/validator validation.xml struts-config.xml

2004-01-08 Thread husted
husted  2004/01/08 08:23:45

  Added:   web/examples/WEB-INF/validator validation.xml
struts-config.xml
  Log:
  Struts and Validator configuration for validator module.
  
  Revision  ChangesPath
  1.1  jakarta-struts/web/examples/WEB-INF/validator/validation.xml
  
  Index: validation.xml
  ===
  
  http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>
  

  
phone
^\(?(\d{3})\)?[-| ]?(\d{3})[-| ]?(\d{4})$
  
  
zip
^\d{5}\d*$
  


  
zip
^\d{5}(-\d{4})?$
  
  

  
  
  
mask
^\w+$
  
  
minlength
5
  


  
  
  
  
mask
^[a-zA-Z]*$
  
  
maxlength
10
  


  


  
  
mask
^[a-zA-Z]*$
  


  
  
mask
^[a-zA-Z]*$
  


  
  
mask
${zip}
  


  
  
mask
${phone}
  


  

  
  

  
  
mask
^\w+$
  


  
  
  
mask
^[a-zA-Z]*$
  


  


  
  
mask
^[a-zA-Z]*$
  


  
  
mask
^[a-zA-Z]*$
  


  
  
mask
${zip}
  


  
  
mask
${phone}
  


  

  
  

  


  


  
  
  
  
min
10
  
  
max
20
  


  


  


  
  
  
  
min
-2.17
  
  
max
3.14
  


  


  
  
datePatternStrict
MM/dd/
  


  


  

  
  

  


  


  
  
  
  
min
10
  
  
max
20
  


  


  
  
  
  
min
-2.17
  
  
max
3.14
  


  
  
datePatternStrict
MM/dd/
  


  


  


  


  


  


  

  


  

  
  
  
mask
^\w+$
  


  


  

  
  

  
  
mask
^\w+$
  


  
  
  
mask
^\w+$
  


  


  
  
mask
^[a-zA-Z]*$
  


  


  
  
mask
${zip}
  


  


  

  
  

  
  
  
  
min
50
  
  
max
60
  


  
  
datePatternStrict
dd.MM.
  

  
  

  
  
  
  
min
100
  
  
max
200
  


  
  
datePatternStrict
dd.MM.
  

  


  
zip
^\d{3}-\d{4}$
  
  
phone

^[0][1-9]((\d{2,3}-?)|(-\d{2,3})|(\d-\d{1,2})|(\d{2}-\d))\d-\d{4}$
  
  

  
  
  
mask
^\w+$
  
  
minlength
5
  


  
  
  
  
 

cvs commit: jakarta-struts build-webapps.xml

2004-01-08 Thread husted
husted  2004/01/08 08:24:47

  Modified:.build-webapps.xml
  Log:
  Changes to build examples and omit applications it replaced.
  
  Revision  ChangesPath
  1.25  +11 -37jakarta-struts/build-webapps.xml
  
  Index: build-webapps.xml
  ===
  RCS file: /home/cvs/jakarta-struts/build-webapps.xml,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- build-webapps.xml 28 Nov 2003 01:29:50 -  1.24
  +++ build-webapps.xml 8 Jan 2004 16:24:47 -   1.25
  @@ -92,7 +92,7 @@
   
 
 
  -
  +
 
 
   
  -
  -
  -
  -
   
   
   
   
  +
  +
  +
  +
   
   
   
  @@ -152,7 +146,7 @@
   
 
 
  -
  +
 
 
 
   
  -  
  -  
  -
  -  
  -  
  -
 
   
   
  
  
  

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



cvs commit: jakarta-struts/web/blank/WEB-INF/classes/resources MessageResources.properties

2004-01-08 Thread husted
husted  2004/01/08 08:28:48

  Modified:web/blank/WEB-INF struts-config.xml
  Added:   web/blank/WEB-INF/classes/resources
MessageResources.properties
  Log:
  Update DTD for 1.2. and so forth.
  
  Revision  ChangesPath
  1.11  +67 -67jakarta-struts/web/blank/WEB-INF/struts-config.xml
  
  Index: struts-config.xml
  ===
  RCS file: /home/cvs/jakarta-struts/web/blank/WEB-INF/struts-config.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- struts-config.xml 14 Oct 2003 17:02:53 -  1.10
  +++ struts-config.xml 8 Jan 2004 16:28:47 -   1.11
  @@ -2,7 +2,7 @@
   
   http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
  +  "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";>
   
   
  +
   
   
  -
  +
   
   
  -
   
  -
  -
   
   
   
  -
  +
   
   
   
  +
   
   
   
  @@ -102,10 +102,9 @@
   
   
   
  -
  +
   
   
  -
   
   
   
   
  -end samples -->
  +
   
  +end samples -->
   
   
   
  -
  +
   
   
   
   
  -
  +
   
  -
  +
   
   
  -
  +
   
  -  
  -  
  +  
 
  -  
  -  
  -
  -
  -
  -  
   
  -  
  +  
   
 
   
  errors.prefix=
  errors.suffix=
  errors.footer=
  # -- validator --
  errors.invalid={0} is invalid.
  errors.maxlength={0} can not be greater than {1} characters.
  errors.minlength={0} can not be less than {1} characters.
  errors.range={0} is not in the range {1} through {2}.
  errors.required={0} is required.
  errors.byte={0} must be an byte.
  errors.date={0} is not a date.
  errors.double={0} must be an double.
  errors.float={0} must be an float.
  errors.integer={0} must be an integer.
  errors.long={0} must be an long.
  errors.short={0} must be an short.
  errors.creditcard={0} is not a valid credit card number.
  errors.email={0} is an invalid e-mail address.
  # -- other --
  errors.cancel=Operation cancelled.
  errors.detail={0}
  errors.general=The process did not complete. Details should follow.
  errors.token=Request could not be completed. Operation is not in sequence.
  # -- welcome --
  welcome.title=Struts Blank Application
  welcome.heading=Welcome!
  welcome.message=To get started on your own application, copy the struts-blank.war to 
a new WAR file using the name for your application. Place it in your container's 
"webapp" folder (or equivalent), and let your container auto-deploy the application. 
Edit the skeleton configuration files as needed, restart your container, and you are 
on your way! (You can find the application.properties file with this message in the 
/WEB-INF/src/java/resources folder.)
  
  
  

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



cvs commit: jakarta-struts/web/blank/WEB-INF/classes/resources application.properties

2004-01-08 Thread husted
husted  2004/01/08 08:29:24

  Removed: web/blank/WEB-INF/classes/resources application.properties
  Log:
  Remove obsolete file  (replaced by MessageResources.properties)

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



Re: Maven Reports

2004-01-08 Thread Robert Leland
Paul Sundling wrote:

I was looking at the maven reports and they're pretty interesting.  
One thing I found interesting was the report that shows duplications.  
There is a large number of classes that only differ in which class 
they extend.  One large grouping of that is in the nested taglib 
classes.  In the example below you'll see that the only differences 
are the import line and extends clause.  It seems there should be some 
design pattern to where all the duplicate code could be refactored 
into one location.  Of course, I couldn't think of one right away 
myself.  Would the IoC stuff that's been mentioned help here for 
instance?
Yes, I noticed the same thing. I believe AOP might address this. I 
believe Struts could benefit from using AspectJ.
and collecting solid use cases would be a good starting point.



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


cvs commit: jakarta-struts STATUS.txt STATUS

2004-01-08 Thread husted
husted  2004/01/08 08:55:56

  Added:   .STATUS.txt
  Removed: .STATUS
  Log:
  Add STATUS LOG for 30-Dec-2003, per discussion on Struts DEV list.
  
  Revision  ChangesPath
  1.1  jakarta-struts/STATUS.txt
  
  Index: STATUS.txt
  ===
  -[STATUS LOG] 30-Dec-2003 Jakarta Struts-
  
  * Releases
  * Showstappers
  * Recent Changes
  * Roadmap
  * Bugzilla
  * Subscriptions
  * Threads
  * CVS Activity
  * Committers
  
  
  
  -Releases-
  
  * Stable release: 1.1 (29 June 2003).
  
  * Next anticipated release: 1.2.0
  
  * Anticipated time-frame (if any): Next thirty days, if pending issues can be 
resolved.
  
  
  -Showstoppers-
  
  * The 1.2.0 candidate should resolve Bugzilla [#233255, #23292, #25134, #28524, 
#25855, #25861] before release.
  
  
  -Recent Changes-
  
  * 2003-12-30 - struts-nested: Added write attribute, and styleClass for completeness.
  
  * 2003-12-29 - struts-faces: Various updates regarding the JSF Final Draft and to 
prepare for Tiles support.
  
  * 2003-12-22 - DispatchAction: Add detection of recursive calls.
  
  * 2003-12-21 - Change to use typical welcome.do - welcome.jsp approach; Use "name" 
rather than "attribute" in configuration, per documented and common practice; Use 
action form of html:link
  
  * 2003-12-21 - Add rest of form to fr.CA formset to correct operation.
  
  * 2003-12-17 - struts-jericho: Whiteboard directory for Struts-Jericho, a working 
proposal for Struts 2.x.
  
  * See also: http://jakarta.apache.org/struts/userGuide/release-notes.html
  
  
  -Roadmap-
  
  * Struts 1.x will remain based on Servlet 1.2/JSP 1.1 (evolution).
  
  * Struts 2.x will be based on Servlet / JSP 2.0 (revolution).
  
  * For more see .
  
  
  -Bugzilla-
  
  * Open "problem" reports:       6 [#23255 .. #25861]
  * Open "enhancement" reports: 210 [#  866 .. #25860]
  * Open "LATER" reports:        17 [#17977 .. #25759]
  
  
  -Mailing list subscriptions-
  
  * User 1955
  
  * user digest: 923
  
  * Dev: 719
  
  
  -Significant threads-
  
  * Dev list discussions of whether and when to apply to the ASF for top-level project 
status .
  
  * Several threads regarding Struts 2.0 feature set. A preliminary whiteboard has 
been posted .
  
  
  -CVS Activity-
  
  * Total Commits: 89 Total Number of Files Changed: 401
  
  
  -Active Committers-
  
      * Craig R. McClanahan (craigmcc at apache.org)
      * Ted Husted (husted at apache.org)
      * Rob Leland (rleland at apache.org)
      * Cedric Dumoulin (cedric.dumoulin at lifl.fr)
      * Martin Cooper (martinc at apache.org)
      * Arron Bates (arron at apache.org)
      * James Holmes (jholmes at apache.org)
      * David M. Karr (dmkarr at apache.org)
      * David Graham (dgraham at apache.org)
      * James Mitchell (jmitchell at apache.org)
      * James Turner (turner at blackbear.com)
      * Steve Raeburn (sraeburn at apache.org)
      * Don Brown (mrdon at apache.org)
      * Joe Germuska (germuska at apache.org)
  
  
  $Id: STATUS.txt,v 1.1 2004/01/08 16:55:56 husted Exp $
  ###
  
  
  

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



cvs commit: jakarta-struts/web/tiles-documentation/examples/tiles footer.jsp

2004-01-08 Thread rleland
rleland 2004/01/08 09:11:52

  Modified:web/tiles-documentation/common footer.jsp
   web/tiles-documentation/examples/tiles footer.jsp
  Log:
  restore Cedcrics copyright.
  
  Revision  ChangesPath
  1.4   +3 -1  jakarta-struts/web/tiles-documentation/common/footer.jsp
  
  Index: footer.jsp
  ===
  RCS file: /home/cvs/jakarta-struts/web/tiles-documentation/common/footer.jsp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- footer.jsp7 Jan 2004 21:14:40 -   1.3
  +++ footer.jsp8 Jan 2004 17:11:52 -   1.4
  @@ -2,7 +2,9 @@
   
   
 
  - Copyright © 2000-2004, Apache Software Foundation 

  + Copyright © 2000-2003, Apache Software Foundation 

  + 
  +and Cedric Dumoulin
 
   
   
  
  
  
  1.3   +2 -0  jakarta-struts/web/tiles-documentation/examples/tiles/footer.jsp
  
  Index: footer.jsp
  ===
  RCS file: 
/home/cvs/jakarta-struts/web/tiles-documentation/examples/tiles/footer.jsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- footer.jsp7 Jan 2004 21:14:40 -   1.2
  +++ footer.jsp8 Jan 2004 17:11:52 -   1.3
  @@ -2,6 +2,8 @@
   
 
Copyright © 2001, Apache Software Foundation 
  + 
  +and Cedric Dumoulin
 
   
   
  
  
  

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



cvs commit: jakarta-struts/xdocs/proposals release-plan-1.0b1.xml

2004-01-08 Thread rleland
rleland 2004/01/08 09:13:01

  Modified:xdocs/proposals release-plan-1.0b1.xml
  Log:
  Remove references to nagoya
  and use issues and mail-archive instead.
  Also sync doc & xdocs content
  
  Revision  ChangesPath
  1.2   +2 -2  jakarta-struts/xdocs/proposals/release-plan-1.0b1.xml
  
  Index: release-plan-1.0b1.xml
  ===
  RCS file: /home/cvs/jakarta-struts/xdocs/proposals/release-plan-1.0b1.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- release-plan-1.0b1.xml29 Nov 2003 07:27:33 -  1.1
  +++ release-plan-1.0b1.xml8 Jan 2004 17:13:01 -   1.2
  @@ -56,7 +56,7 @@
 Prior to the release of Struts 1.0-beta-1, the following action items
 must be completed:
 
  -  All http://nagoya.apache.org/bugzilla/";>Bugzilla bug reports
  +  All http://issues.apache.org/bugzilla/";>Bugzilla bug reports
 against Struts 1.0 nightly builds MUST be marked as "Resolved", with any
 of the legal Bugzilla resolutions (FIXED, INVALID, WONTFIX, LATER,
 REMIND, WORKSFORME).
  
  
  

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



Re: cvs commit: jakarta-struts/web/tiles-documentation/examples/tiles footer.jsp

2004-01-08 Thread Robert Leland
I'll restore the copyright, I misunderstood the CLA. However, its 
removal was based on a precedent of when Ted
had copyright Ted Husted in his code, and had to remove that copyright.

Martin Cooper wrote:

Is there a reason for removing Cedric's copyright? As I understand it,
based on the language in the CLA, Cedric is entitled to keep his own
copyright there, if he so desires.
--
Martin Cooper
On Wed, 7 Jan 2004 [EMAIL PROTECTED] wrote:

 

rleland 2004/01/07 13:14:40

 Modified:web/tiles-documentation/common footer.jsp
  web/tiles-documentation/examples/tiles footer.jsp
 Log:
 remove Cerdics personal Copyright and leave
 only Apache Copyright
 Revision  ChangesPath
 1.3   +1 -3  jakarta-struts/web/tiles-documentation/common/footer.jsp
 Index: footer.jsp
 ===
 RCS file: /home/cvs/jakarta-struts/web/tiles-documentation/common/footer.jsp,v
 retrieving revision 1.2
 retrieving revision 1.3
 diff -u -r1.2 -r1.3
 --- footer.jsp 29 Dec 2002 21:20:52 -  1.2
 +++ footer.jsp 7 Jan 2004 21:14:40 -   1.3
 @@ -2,9 +2,7 @@
  

 - Copyright © 2000-2003, Apache Software Foundation 
 -  
 -and Cedric Dumoulin
 + Copyright © 2000-2004, Apache Software Foundation 

  
  


 1.2   +0 -2  jakarta-struts/web/tiles-documentation/examples/tiles/footer.jsp

 Index: footer.jsp
 ===
 RCS file: /home/cvs/jakarta-struts/web/tiles-documentation/examples/tiles/footer.jsp,v
 retrieving revision 1.1
 retrieving revision 1.2
 diff -u -r1.1 -r1.2
 --- footer.jsp 6 Jul 2002 01:13:50 -   1.1
 +++ footer.jsp 7 Jan 2004 21:14:40 -   1.2
 @@ -2,8 +2,6 @@
  

   Copyright © 2001, Apache Software Foundation 
 -  
 -and Cedric Dumoulin

  
  


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


 



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


Re: DigestingPlugIn

2004-01-08 Thread Joe Germuska
I know I've asked this before, and forget how it turned out, so 
please forgive me for asking again :)

Would it be possible to do an example usage of the DigestingPlugin 
that sets up static servlet context attributes, as is done by the 
MemoryPlugIn in the MailReader Example?

Of course, if you're still out of town, don't worry about responding 
right away. This can wait.
I had done something like it a little before DigestingPlugin was 
committed, but it faced the challenge that LabelValueBean didn't have 
a no-arg constructor, and so was hard to use with Digester.

In case the commits weren't announcement enough, I changed the 
example application so that instead of creating the "serverTypes" 
list of LVBs in the MemoryDatabasePlugIn, that list is now created by 
the DigestingPlugIn.

When I have some more time, I'll look for a place in the walking tour 
to add some information, although work is about to get real busy 
again.

How would people feel about putting the XML digester rules for the 
label value beans into the Struts JAR?  I can see the argument that 
it's not really core, and I wouldn't fight about it, but I can see 
where it would be convenient.  For now, I just put it in WEB-INF, 
which makes the struts-config a little cleaner (because I changed 
DigestingPlugIn to default to looking in the servlet context if the 
"source" of either the data XML or digester XML is not specified).

Joe

--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
 "We want beef in dessert if we can get it there."
  -- Betty Hogan, Director of New Product Development, National 
Cattlemen's Beef Association

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


Uploading in Struts !!!

2004-01-08 Thread Karikalan Kumaresan
Hi,

I am trying to implement a multiple file uploader.. even thought I have a
solution using FilePart of O'reilly.. I want to implement it using struts...
I am looking at the following...

MultipartRequestHandler
CommonsMultipartRequestHandler
FormFile
DiskFile 

Not sure how we can make use of this in Struts framework, if you have any
sample code to achieve this, please do send it, any help would be greatly
appreciated.

Thanks in advance,
Cheers,
Kari...

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]
Sent: 05 January 2004 12:51
To: Struts Developers List
Subject: RE: Please add this Tiles tutorial to the tutorial list


We don't maintain the Resource Pages anymore, but there's a Struts site at
SourceForge that has picked up where we left off. 

 

So, you'd want to post these links to the list or tracking are there. 

-Ted.

On Mon, 05 Jan 2004 00:34:07 -0700, Richard Hightower wrote:
> Specifically...
>
>
> http://jakarta.apache.org/struts/resources/tutorials.html
>
>
> Rick Hightower
> Developer
>
>
> Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm
>
>
> Struts/J2EE consulting --
> http://www.arc-mind.com/consulting.htm#StrutsMentoring
>
>
> -Original Message-
> From: Richard Hightower [mailto:[EMAIL PROTECTED] Sent:
> Monday, January 05, 2004 12:25 AM To: Struts Developers List
> Subject: RE: Please add this Tiles tutorial to the tutorial list
>
>
> It has only been out since Dec. 2003 so it is new.
>
>
> Rick Hightower
> Developer
>
>
> Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm
>
>
> Struts/J2EE consulting --
> http://www.arc-mind.com/consulting.htm#StrutsMentoring
>
>
> -Original Message-
> From: Richard Hightower [mailto:[EMAIL PROTECTED] Sent:
> Monday, January 05, 2004 12:23 AM To: [EMAIL PROTECTED]
> Subject: Please add this Tiles tutorial to the tutorial list
>
>
> Please add this Tiles tutorial to the tutorial list
> http://www.arc-mind.com/downloads.htm
>
>
> The Tiles framework makes creating reusable pages and visual
> components easier. Developers can build Web applications by
> assembling reusable tiles. You can use tiles as templates or as
> visual components.
>
> In some respects, the tile layout is like a display function. First
> you pass tile layout parameters to use. The parameters can be
> simple strings, beans, or tiles. The parameters become attributes
> to the tile and get stored in the tile's tile scope. For its part,
> the tile scope resembles page scope, and is less general than
> request scope. The tile scope lets the tile's user pass arguments
> (called attributes) to the tile.
>
> Definitions let you define default parameters for tiles.
> Definitions can be defined in JSP or XML. Definitions can extend
> other definitions similarly to how a class can extend another
> class. Moreover, definitions can override parts of the definition
> it is extending.
>
> The Tiles framework includes its own RequestProcessor to handle
> tile layouts as ActionForwards. Thus you can forward to a tile
> definition instead of a JSP if you install the Tiles plug-in.
>
> If you are using Struts but not Tiles, then you are not fully
> benefiting from Struts and likely repeat yourself unnecessarily.
> The Tiles framework makes creating reusable site layouts and visual
> components feasible.
>
>
> In this tutorial you will cover the following:
>
>
> The Tiles framework and architecture
> How to build and use a tile layout as a site template
> How to use tile definitions both in XML and JSP
> How to move objects in and out of tile scope
> How to work with attributes lists
> How to nest tiles
> How to build and use tile layouts as small visual components How to
> subclass a definition How to create a controller for a tile How to
> use a tile as an ActionForward
>
>
> 
> - 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]
>
>
> 
> - 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]

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



Re: cvs commit: jakarta-struts/web/tiles-documentation/examples/tiles footer.jsp

2004-01-08 Thread Robert Leland
Martin Cooper wrote:

Is there a reason for removing Cedric's copyright? As I understand it,
based on the language in the CLA, Cedric is entitled to keep his own
copyright there, if he so desires.
Changes have been reverted. You probably won't see an update since I did 
a cvs join.

-Rob

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


Re: DigestingPlugIn

2004-01-08 Thread David Graham

--- Joe Germuska <[EMAIL PROTECTED]> wrote:
> >I know I've asked this before, and forget how it turned out, so 
> >please forgive me for asking again :)
> >
> >Would it be possible to do an example usage of the DigestingPlugin 
> >that sets up static servlet context attributes, as is done by the 
> >MemoryPlugIn in the MailReader Example?
> >
> >Of course, if you're still out of town, don't worry about responding 
> >right away. This can wait.
> 
> I had done something like it a little before DigestingPlugin was 
> committed, but it faced the challenge that LabelValueBean didn't have 
> a no-arg constructor, and so was hard to use with Digester.

I believe I committed a fix for that issue some time ago.

> 
> In case the commits weren't announcement enough, I changed the 
> example application so that instead of creating the "serverTypes" 
> list of LVBs in the MemoryDatabasePlugIn, that list is now created by 
> the DigestingPlugIn.
> 
> When I have some more time, I'll look for a place in the walking tour 
> to add some information, although work is about to get real busy 
> again.
> 
> How would people feel about putting the XML digester rules for the 
> label value beans into the Struts JAR?  I can see the argument that 
> it's not really core, and I wouldn't fight about it, but I can see 
> where it would be convenient.  

Not only is it not core functionality but it forces you to use a certain
XML structure for loading LVB objects.  I'd rather let users decide how
their XML looks when using Digester to load objects.

David

> For now, I just put it in WEB-INF, 
> which makes the struts-config a little cleaner (because I changed 
> DigestingPlugIn to default to looking in the servlet context if the 
> "source" of either the data XML or digester XML is not specified).
> 
> Joe
> 
> -- 
> Joe Germuska
> [EMAIL PROTECTED]  
> http://blog.germuska.com
>   "We want beef in dessert if we can get it there."
>-- Betty Hogan, Director of New Product Development, National 
> Cattlemen's Beef Association
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



Re: DigestingPlugIn

2004-01-08 Thread Joe Germuska
 > I had done something like it a little before DigestingPlugin was
 committed, but it faced the challenge that LabelValueBean didn't have
 a no-arg constructor, and so was hard to use with Digester.
I believe I committed a fix for that issue some time ago.
You did; that's why I was able to do the example now!

Not only is it not core functionality but it forces you to use a certain
XML structure for loading LVB objects.  I'd rather let users decide how
their XML looks when using Digester to load objects.
Fair enough.  There are plenty of other files that people habitually 
copy into WEB-INF when beginning a Struts project; one more won't 
hurt for those that want it.

Joe

--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
 "We want beef in dessert if we can get it there."
  -- Betty Hogan, Director of New Product Development, National 
Cattlemen's Beef Association

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


DO NOT REPLY [Bug 23792] - Add disabled attribute

2004-01-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23792

Add  disabled attribute





--- Additional Comments From [EMAIL PROTECTED]  2004-01-08 22:54 ---
Created an attachment (id=9870)
patch to add disabled attribute to html:hidden tag

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



DO NOT REPLY [Bug 23792] - Add disabled attribute

2004-01-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23792

Add  disabled attribute





--- Additional Comments From [EMAIL PROTECTED]  2004-01-08 22:59 ---
The patch I just added only changes the TLD.  BaseHandlerTag (a superclass of
HiddenTag) already takes care of the getter/setting and rendering of the
disabled attribute.

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



cvs commit: jakarta-struts project.xml

2004-01-08 Thread husted
husted  2004/01/08 19:38:02

  Modified:.project.xml
  Log:
  Tidy formatting
  
  Revision  ChangesPath
  1.21  +146 -242  jakarta-struts/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-struts/project.xml,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- project.xml   6 Jan 2004 17:48:20 -   1.20
  +++ project.xml   9 Jan 2004 03:38:02 -   1.21
  @@ -12,53 +12,21 @@
 
 http://jakarta.apache.org/struts/images/struts.gif
 2000
  -
 org.apache.struts
  -
 MVC Web Application Framework
  -
 
 jakarta
  -
  -  
  -The core of the Struts framework is a flexible control layer based on standard
  -technologies like Java Servlets, JavaBeans, ResourceBundles, 
  -and Extensible Markup Language (XML), as well as various Jakarta Commons 
packages.
  -Struts encourages application architectures based on the Model 2 approach, a 
variation
  -of the classic  Model-View-Controller (MVC) design paradigm.
  -
  -Struts provides its own Controller component and integrates with other 
technologies
  -to provide the Model and the View. For the Model, Struts can interact with any 
standard
  -data access technology, including Enterprise Java Beans, JDBC, and Object 
Relational Bridge.
  -For the View, Struts works well with JavaServer Pages, including JSTL and JSF, 
  -as well as Velocity Templates, XSLT, and other presentation systems.
  -
  -The Struts framework provides the invisible underpinnings every professional 
  -web application needs to survive. Struts helps you create an extensible 
  -development environment for your application, based on published standards
  -and proven design patterns.
  -  
  -
  +  The core of the Struts framework is a flexible control layer based 
on standard technologies like Java Servlets, JavaBeans, ResourceBundles, and 
Extensible Markup Language (XML), as well as various Jakarta Commons packages. Struts 
encourages application architectures based on the Model 2 approach, a variation of the 
classic Model-View-Controller (MVC) design paradigm. Struts provides its own 
Controller component and integrates with other technologies to provide the Model and 
the View. For the Model, Struts can interact with any standard data access technology, 
including Enterprise Java Beans, JDBC, and Object Relational Bridge. For the View, 
Struts works well with JavaServer Pages, including JSTL and JSF, as well as Velocity 
Templates, XSLT, and other presentation systems. The Struts framework provides the 
invisible underpinnings every professional web application needs to survive. Struts 
helps you create an extensible development environment for your application, based on 
published standards and proven design patterns.
 http://jakarta.apache.org/
  -  
  -http://issues.apache.org/bugzilla/
  -  
  +  http://issues.apache.org/bugzilla/
 jakarta.apache.org/struts
  -  
  -/www/jakarta.apache.org/struts
  -  
  -  
  -/www/apache.mirrors.pair.com/jakarta/struts/
  -  
  -
  +  /www/jakarta.apache.org/struts
  +  
/www/apache.mirrors.pair.com/jakarta/struts/
 
  - scm:cvs:pserver:[EMAIL 
PROTECTED]:/home/cvspublic:jakarta-struts
  - scm:cvs:pserver:[EMAIL 
PROTECTED]:/home/cvs:jakarta-struts
  -
  -  http://cvs.apache.org/viewcvs/jakarta-struts/
  -
  +scm:cvs:pserver:[EMAIL 
PROTECTED]:/home/cvspublic:jakarta-struts
  +scm:cvs:pserver:[EMAIL 
PROTECTED]:/home/cvs:jakarta-struts
  +http://cvs.apache.org/viewcvs/jakarta-struts/
 
  -
 
   
 1.0.2
  @@ -71,141 +39,111 @@
 STRUTS_1_1
   
 
  -
 
   
 Struts User List
  -  
  -[EMAIL PROTECTED]
  -  
  -  
  -[EMAIL PROTECTED]
  -  
  -  
  -http://mail-archives.apache.org/eyebrowse/SummarizeList?listId=42
  -  
  +  [EMAIL PROTECTED]
  +  [EMAIL PROTECTED]
  +  
http://mail-archives.apache.org/eyebrowse/SummarizeList?listId=42
   
   
 Struts Developer List
  -  
  -[EMAIL PROTECTED]
  -  
  -  
  -[EMAIL PROTECTED]
  -  
  -  
  -http://mail-archives.apache.org/eyebrowse/SummarizeList?listId=41
  -  
  +  [EMAIL PROTECTED]
  +  [EMAIL PROTECTED]
  +  
http://mail-archives.apache.org/eyebrowse/SummarizeList?listId=41
   
 
  -
 
  -
  -
  -craigmcc
  -Craig R. McClanahan
  - craigmcc at apache.org
  - 
  -
  -
  -
  -husted
  -Ted Husted
  - husted at apache.org
  - 
  -
  -
  -
  -rleland
  -Rob Leland
  - rleland at apache.org
  - 
  -
  -
  -
  - 

cvs commit: jakarta-struts project.xml

2004-01-08 Thread husted
husted  2004/01/08 19:44:25

  Modified:.project.xml
  Log:
  Migrate deprecated id elements to groupId and artifactId combos.
  
  Revision  ChangesPath
  1.22  +48 -37jakarta-struts/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-struts/project.xml,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- project.xml   9 Jan 2004 03:38:02 -   1.21
  +++ project.xml   9 Jan 2004 03:44:25 -   1.22
  @@ -158,7 +158,8 @@
 
 
   
  -  commons-beanutils
  +  commons-beanutils
  +  commons-beanutils
 1.6.1
 http://jakarta.apache.org/commons/beanutils.html
 
  @@ -167,7 +168,8 @@
 
   
   
  -  commons-collections
  +  commons-collections
  +  commons-collections
 2.1
 http://jakarta.apache.org/commons/collections.html
 
  @@ -176,7 +178,8 @@
 
   
   
  -  commons-digester
  +  commons-digester
  +  commons-digester
 1.5
 http://jakarta.apache.org/commons/digester.html
 
  @@ -185,7 +188,8 @@
 
   
   
  -  commons-fileupload
  +  commons-fileupload
  +  commons-fileupload
 1.0
 http://jakarta.apache.org/commons/fileupload/
 
  @@ -194,7 +198,8 @@
 
   
   
  -  commons-logging
  +  commons-logging
  +  commons-logging
 1.0.3
 http://jakarta.apache.org/commons/logging.html
 
  @@ -203,24 +208,25 @@
 
   
   
  -  
  -  commons-validator
  +  
  +  commons-validator
  +  commons-validator
 1.1.1
 http://jakarta.apache.org/commons/validator/
 
  @@ -229,7 +235,8 @@
 
   
   
  -  oro
  +  oro
  +  oro
 2.0.7
 http://jakarta.apache.org/oro/
 
  @@ -238,7 +245,8 @@
 
   
   
  -  xml-apis
  +  xml-apis
  +  xml-apis
 2.0.2
 http://xml.apache.org/commons/
 
  @@ -254,17 +262,20 @@
 
   
   
  -  servletapi
  +  servletapi
  +  servletapi
 2.2
   
   
   
  -  junit
  +  junit
  +  junit
 3.8.1
 http://www.junit.org
   
   
  -  commons-lang
  +  commons-lang
  +  commons-lang
 2.0
 http://jakarta.apache.org/commons/lang.html
   
  @@ -336,15 +347,15 @@
 
 
   
  + |
  + | These should all be completely self contained. You should be able
  + | to generate each of them individually without needing the final
  + | xdoc transformation.
  + |
  + | Each report plugin with it's POM and plugin.jelly logic should
  + | contain everything needed to produced the report.
  + |
  +-->
   maven-jdepend-plugin
   maven-checkstyle-plugin
   maven-changes-plugin
  
  
  

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