Re: [VOTE] Struts 1.1 Release Candidate 1 Release Plan

2003-02-16 Thread Ted Husted
Martin Cooper wrote:

--
Vote:  Struts 1.1-rc1 Release Plan
[x] +1 I am in favor of the release, and will help support it
[ ] +0 I am in favor of the release, but am unable to help support it
[ ] -0 I am not in favor of the release
[ ] -1 I am against this proposal (must include a reason).
--





--
Ted Husted,
Struts in Action 


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




DO NOT REPLY [Bug 17109] New: - Newbie FAQ - Can I have multiple submit buttons on the same form?

2003-02-16 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=17109

Newbie FAQ - Can I have multiple submit buttons on the same form? 

   Summary: Newbie FAQ - Can I have multiple submit buttons on the
same form?
   Product: Struts
   Version: Unknown
  Platform: Other
OS/Version: Other
Status: NEW
  Severity: Enhancement
  Priority: Other
 Component: Documentation
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Yes.  The issue is that only one action class can be 
associated with a single form.

So the real issue is how do I decode multiple submit types to a single 
Action class.
There is more than one way to achieve this functionality.

The way that is suggested by struts is right out of the javadoc for http://jakarta.apache.org/struts/api/org/apache/struts/actions/LookupDispa
tchAction.html">LookupDispatchAction.
Basically, LookupDispatchAction is using the keys from 
ApplicationProperties.resources as keys to a map of actions 
available
to your Action class.  It uses http://java.sun.com/j2se/1.3/docs/guide/reflection/";>reflection to 
decode the request and invoke the proper action.  It also takes advantage of 
the struts http://jakarta.apache.org/struts/userGuide/struts-
html.html#submit"> tags and
is straight forward to implement.

You can roll your own with javascript events and javascript:void
(document.forms["myform"].submit) on any html element.  This gives you 
control of how you want your page to look.  Again you
will have to decode the expected action in the execute method of 
your action form if you choose this route.

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




Re: [VOTE] Struts 1.1 Release Candidate 1 Release Plan

2003-02-16 Thread James Holmes
+1

-james

--- Martin Cooper <[EMAIL PROTECTED]> wrote:
> All outstanding bugs against Struts 1.1 have either
> been fixed or been
> categorized for fixing in a release subsequent to
> Struts 1.1 Final.
> Therefore, I propose that we release the tip of the
> main trunk in CVS as
> Release Candidate 1 for a Struts 1.1 release. I have
> checked in a proposed
> release plan, which is available for review on the
> Struts web site:
> 
>
>
http://jakarta.apache.org/struts/proposals/release-plan-1.1rc1.html
> 
> Release plans must pass by a majority vote of
> committers on the project,
> but all other interested parties are welcome to cast
> their votes (and/or
> make comments or suggestions on the plan) as well.
> 
>
--
> Vote:  Struts 1.1-rc1 Release Plan
> [ ] +1 I am in favor of the release, and will help
> support it
> [ ] +0 I am in favor of the release, but am unable
> to help support it
> [ ] -0 I am not in favor of the release
> [ ] -1 I am against this proposal (must include a
> reason).
>
--
> 
> I am +1 on the Struts 1.1-rc1 release plan.
> 
> --
> Martin Cooper
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

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




DO NOT REPLY [Bug 17110] New: - [PATCH] Added two books to the "Books with Struts coverage" section in books.xml

2003-02-16 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=17110

[PATCH] Added two books to the "Books with Struts coverage" section in books.xml

   Summary: [PATCH] Added two books to the "Books with Struts
coverage" section in books.xml
   Product: Struts
   Version: Nightly Build
  Platform: Other
OS/Version: Other
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Documentation
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


These are the additions:

--- books.xml.bak   Sun Feb 16 11:43:15 2003
+++ books.xml   Sun Feb 16 11:43:15 2003
@@ -108,6 +108,9 @@
 http://www.amazon.com/exec/obidos/ISBN=0130648841/hitchhikeguidetoA/";>C
ore J2EE Patterns -
 Many of these patterns are deployed in Struts.
 
 
+http://www.amazon.com/exec/obidos/ASIN/1861002092/";>Beginning JSP 
Web Development 2001 Wro
x book by Falkner, Galbraith, Irani, Kochmer, Kunnumpurath, Panduranga, 
Perrumal, Timney - 1 chapter focuses on
 an introduction to Struts 1.0 and 2 chapters on creating an application that 
uses Struts.
+
+
 http://www.amazon.com/exec/obidos/ISBN=1861004958/hitchhikeguidetoA/";>P
rofessional JSP 2nd Edition
 - Wrox book - long chapter on Struts.
 
 
@@ -115,6 +118,9 @@
 
 
 http://www.amazon.com/exec/obidos/ISBN=0672323095/hitchhikeguidetoA/";>M
ySQL and JSP Web Applicatio
ns: Data-Driven Programming Using Tomcat and MySQL by James Turner - 
Includes a chapter on Tomcat and S
truts.
+
+
+http://www.amazon.com/exec/obidos/ASIN/0764547879/";>JSP, Servlets, 
and MySQL by David Harm
s, 2001 - Features 1 chapter on Struts 1.0.
 
 


And here is the file itself:





Mike Schachter
Ted Husted
James Holmes
Resources - Books - Jakarta Struts


http://husted.com/struts/resources";>






http://www.amazon.com/exec/obidos/ISBN=0672324725/hitchhikeguidetoA/";>




http://www.amazon.com/exec/obidos/ISBN=0672324725/hitchhikeguidetoA/";>S
truts Kick Start 
by James Turner and Kevin Bedell - December 2002. [http://www.strutskickstart.com/";>Sample chapter available]





http://www.amazon.com/exec/obidos/ISBN=0596003285/hitchhikeguidetoA/";>




http://www.amazon.com/exec/obidos/ISBN=0596003285/hitchhikeguidetoA/";>P
rogramming Jakarta Struts 
by Chuck Cavaness. November 2002. [http://www.oreilly.com/catalog/jakarta/";>beta chapter available]





http://www.amazon.com/exec/obidos/ISBN=1558608621/hitchhikeguidetoA/";>




http://www.amazon.com/exec/obidos/ISBN=1558608621/hitchhikeguidetoA/";>
The Struts Framework: Practical Guide for Programmers 
by Sue Spielman. November 2002.





http://www.amazon.com/exec/obidos/ISBN=1930110502/hitchhikeguidetoA/";>




http://www.amazon.com/exec/obidos/ISBN=1930110502/hitchhikeguidetoA/";>
Struts in Action 
by Ted Husted, Cedric Dumoulin, George Franciscus, and David Winterfeldt; 
Foreword by Craig R. McClanahan. November 2002. [http://www.manning.com/husted/";>sample chapters available] (formerly 
known as "Java Web Development with Struts")





http://www.amazon.com/exec/obidos/ISBN=0471213020/hitchhikeguidetoA/";>




http://www.amazon.com/exec/obidos/ISBN=0471213020/hitchhikeguidetoA/";>
Mastering Jakarta Struts 
by James Goodwill. August 2002. [http://wiley.com/cda/product/0,,0471213020,00.html";>excerpt available]





http://www.amazon.com/exec/obidos/ISBN=0971661901/hitchhikeguidetoA/";>




http://www.amazon.com/exec/obidos/ISBN=0971661901/hitchhikeguidetoA/";>
Struts Fast Track: J2EE / JSP Framework 
by Victor Cekvenich - Practical Application with Database Access and Struts 
Extensions. November 2001.








http://www.amazon.com/exec/obidos/ISBN=0735710953/hitchhikeguidetoA/";>J
SP and Tag Libraries for Web Development - by Wellington L. S. Da 
Silva. January 2002. Several chapters regarding Struts.


http://www.amazon.com/exec/obidos/ISBN=1861005512/hitchhikeguidetoA/";>P
rofessional JSP Site Design - Wrox book by Husted, Kunnumpurath, 
Lavandowska, Panduranga, et al. November 2001. Features Struts in chapters 2 
(The Struts Framework), 6 (Navigation), 8 (Data Access Patterns), 12 (Content 
Management), 13 (Searching), and 14 (Portals).


http://www.redbooks.ibm.com/redpieces/pdfs/sg246134.pdf";>Websphere 
Version 4 Application Development Handbook (PDF) -
 Chapter 7 covers designing with both the Struts and Websphere frameworks.


http://shannon.informatik.fh-wiesbaden.de/jsp/index.html";>Java 
Server Pages and J2EE Web-based Applications for Enterprises - In 
German, with a Chapter regarding MVC and Struts.


http://www.amazon.com/exec/obidos/ISBN=0130648841/hitchhikeguidetoA/";>C
ore J2EE Patterns - Many of these patterns are deployed in Struts.


http://www.amazon.com/exec/obidos/ASIN/1861

cvs commit: jakarta-struts/web/example subscription.jsp

2003-02-16 Thread craigmcc
craigmcc2003/02/16 16:31:45

  Modified:src/example/org/apache/struts/webapp/example/memory
MemoryDatabasePlugIn.java
   web/example subscription.jsp
  Log:
  Eliminate the scriptlet used to set up the server types collection
  (shoulda done this a *long* time ago).
  
  Revision  ChangesPath
  1.8   +32 -4 
jakarta-struts/src/example/org/apache/struts/webapp/example/memory/MemoryDatabasePlugIn.java
  
  Index: MemoryDatabasePlugIn.java
  ===
  RCS file: 
/home/cvs/jakarta-struts/src/example/org/apache/struts/webapp/example/memory/MemoryDatabasePlugIn.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- MemoryDatabasePlugIn.java 11 Jan 2003 03:08:23 -  1.7
  +++ MemoryDatabasePlugIn.java 17 Feb 2003 00:31:45 -  1.8
  @@ -68,12 +68,14 @@
   import java.io.File;
   import java.io.FileOutputStream;
   import java.io.InputStream;
  +import java.util.ArrayList;
   import javax.servlet.ServletException;
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   import org.apache.struts.action.ActionServlet;
   import org.apache.struts.action.PlugIn;
   import org.apache.struts.config.ModuleConfig;
  +import org.apache.struts.util.LabelValueBean;
   import org.apache.struts.webapp.example.Constants;
   
   /**
  @@ -207,10 +209,36 @@
   servlet.getServletContext().setAttribute(Constants.DATABASE_KEY,
database);
   
  +// Setup and cache other required data
  +setupCache(servlet, config);
  +
   }
   
   
   // - Public Methods
  +
  +
  +// -- Protected Methods
  +
  +
  +/**
  + * Cache commonly required data as servlet context attributes.
  + *
  + * @param servlet The ActionServlet instance running
  + *  this webapp
  + * @param config The ModuleConfig for this application module
  + */
  +protected void setupCache(ActionServlet servlet, ModuleConfig config) {
  +
  +// Set up list of server types under "serverTypes"
  +ArrayList serverTypes = new ArrayList();
  +serverTypes.add(new LabelValueBean("IMAP Protocol", "imap"));
  +serverTypes.add(new LabelValueBean("POP3 Protocol", "pop3"));
  +servlet.getServletContext().setAttribute("serverTypes", serverTypes);
  +
  +}
  +
  +
   
   
   //  Private Methods
  
  
  
  1.30  +0 -8  jakarta-struts/web/example/subscription.jsp
  
  Index: subscription.jsp
  ===
  RCS file: /home/cvs/jakarta-struts/web/example/subscription.jsp,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- subscription.jsp  14 Jul 2002 01:35:18 -  1.29
  +++ subscription.jsp  17 Feb 2003 00:31:45 -  1.30
  @@ -5,14 +5,6 @@
   <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
   
   
  -<%-- In real life, these would be loaded from a database --%>
  -<%
  -  java.util.ArrayList list = new java.util.ArrayList();
  -  list.add(new org.apache.struts.util.LabelValueBean("IMAP Protocol", "imap"));
  -  list.add(new org.apache.struts.util.LabelValueBean("POP3 Protocol", "pop3"));
  -  pageContext.setAttribute("serverTypes", list);
  -%>
  -
   
   
   


Re: [VOTE] Struts 1.1 Release Candidate 1 Release Plan

2003-02-16 Thread Craig R. McClanahan


On Sat, 15 Feb 2003, Martin Cooper wrote:

> --
> Vote:  Struts 1.1-rc1 Release Plan
> [X] +1 I am in favor of the release, and will help support it
> [ ] +0 I am in favor of the release, but am unable to help support it
> [ ] -0 I am not in favor of the release
> [ ] -1 I am against this proposal (must include a reason).
> --
>
> I am +1 on the Struts 1.1-rc1 release plan.
>

And thanks to *all* of you guys for all the hard work!

> --
> Martin Cooper

Craig

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




DO NOT REPLY [Bug 17113] New: - 1.1 DTD contains incorrect default value for locale attribute of element.

2003-02-16 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=17113

1.1 DTD contains incorrect default value for locale attribute of  element.

   Summary: 1.1 DTD contains incorrect default value for locale
attribute of  element.
   Product: Struts
   Version: Nightly Build
  Platform: All
OS/Version: All
Status: NEW
  Severity: Minor
  Priority: Other
 Component: Documentation
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The locale attribute of the  element states that the default value 
is true. However, the ControllerConfig class initializes it to false. I think 
we just need to update the DTD.

Chuck

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




Re: [VOTE] Struts 1.1 Release Candidate 1 Release Plan

2003-02-16 Thread Arron Bates
> --
> Vote:  Struts 1.1-rc1 Release Plan
> [ ] +1 I am in favor of the release, and will help support it
> [X] +0 I am in favor of the release, but am unable to help support it
> [ ] -0 I am not in favor of the release
> [ ] -1 I am against this proposal (must include a reason).
> --
+0

>
> And thanks to *all* of you guys for all the hard work!
>
> Craig

*all* reads as "...except for Arron."  :P
It be good work. yes, good work.


Arron.

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




DO NOT REPLY [Bug 17113] - 1.1 DTD contains incorrect default value for locale attribute of element.

2003-02-16 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=17113

1.1 DTD contains incorrect default value for locale attribute of  element.





--- Additional Comments From [EMAIL PROTECTED]  2003-02-17 05:27 ---
Hmm, I don't think that's right. This setting corresponds to the 'locale' init 
param in Struts 1.0.x, for which the default really is 'true'. Unless I'm 
missing something, that implies that the default in ControllerConfig has been 
incorrect from the get-go, and we should fix that instead of the DTD. However, 
given that this would be a backwards compatibility problem, and that we (or at 
least I) have not seen problems reported until now, I'm suspicious. I'd rather 
have a second pair of eyes look at this before I go ahead and change the 
default at this stage in the game. (I do believe we should be changing the 
value in ControllerConfig, though.)

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




DO NOT REPLY [Bug 17110] - [PATCH] Added two books to the "Books with Struts coverage" section in books.xml

2003-02-16 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=17110

[PATCH] Added two books to the "Books with Struts coverage" section in books.xml





--- Additional Comments From [EMAIL PROTECTED]  2003-02-17 05:46 ---
Please add the patch as an attachment to this bug report. Pasting it into the 
bug report text causes problems with line breaks, and usually causes the patch 
utility to fail to apply the patch.

Pasting the resulting file contents into the bug report does not help either, 
since, in addition to the problems mentioned above, it assumes that no other 
changes have been made to the file since the bug report was created.

That said, thanks for bringing the changes to our attention!

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




DO NOT REPLY [Bug 17116] New: - DispatchAction Introspection problem

2003-02-16 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=17116

DispatchAction Introspection problem

   Summary: DispatchAction Introspection problem
   Product: Struts
   Version: Nightly Build
  Platform: All
OS/Version: All
Status: NEW
  Severity: Minor
  Priority: Other
 Component: Standard Actions
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


This one is a bit subtle.

On line 214 of DispatchAction, a missing name parameter is reassigned a value of
"unspecified" in order to force dispatchMethod() to call the predefined
unspecified() method, which can be overridden to provide different handling of a
missing method name. Unfortunately, by relying on dispatchMethod(), you are also
relying on Class.getMethod(), which only returns public methods. This causes the
wrong error message to pop up on the browser.

I see at least four different ways to fix this, and they are all really easy, I
just don't know which one you guys prefer:

1) Make unspecified() public
2) Change line 214 to directly call unspecified()   (my preference)
3) Drop line 213-215 altogether, and dispatchMethod will get a null name and
directly call unspecified().
4) Change getMethod() to getDeclaredMethod() so the protected modifier no longer
matters.

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