[Apache Struts Wiki] Updated: StrutsShortTermPlans

2004-09-08 Thread dev
   Date: 2004-09-08T02:53:00
   Editor: JamesMitchell <[EMAIL PROTECTED]>
   Wiki: Apache Struts Wiki
   Page: StrutsShortTermPlans
   URL: http://wiki.apache.org/struts/StrutsShortTermPlans

   Update my todo list

Change Log:

--
@@ -1,16 +1,25 @@
 To help coordinate our efforts, Struts Committers and other active developers can 
note their short term plans here. For any one individual, this should be a brief list 
of one to three items. 
 
-James Mitchell - I am currently spending time in the following areas: 
- * tweaking the commons-resource (sandbox) project (mostly the database 
implementations)
- * helping with the Struts tests (which are usefull, but overengineered, admittedly 
my own fault) 
- * Struts 2.0 discussions 
-
-and my TODO list includes:
- * enhancement to the Spring's ContextLoaderPlugin that let's you reuse your bundle 
without having to declare it in 2 (or more) places
- * Struts plugin that let's you use the commons-resources.jar with your existing 
Struts 1.1 projects
- * Struts plugin[1] that let's you edit (via browser popup) all messages accessed in 
a give request
-([1] *only* works for Database impls - you would see a small [edit] link beside any 
rendered messages, and a list of all keys accessed at the bottom of the page)
+
 
+James Mitchell: 
+ * '''[[GetText(Commons Resource)]]''' 
http://jakarta.apache.org/commons/sandbox/resources
+   * create new implementations that use:
+ * DbUtils (http://jakarta.apache.org/commons/dbutils/)
+ * OJB (http://db.apache.org/ojb/)
+ * Torque (http://db.apache.org/torque)  (this is already done, but needs 
tweaking)
+   * document existing impls (especially the database driven ones)
+   * maintain/enhance existing implementations
+   * maintain/enhance optional implementations (source hosted at 
http://sf.net/projects/struts):
+   * create sample web app that demonstrates each method
+   * modification to all the current database impls that allow datasource 
configuration/pooling via JNDI
+ * Hibernate implementation
+ * '''[[GetText(Apache Struts)]]'''
+   * Refactor taglib tests to remove dependency on commons-lang
+   * Create a Struts plugin that acts lets a developer use any distribution of 
commons-resources with Struts 1.x
+   * Plugin that allows runtime editing of message resources (let's you edit via 
browser popup any/all messages accessed in a give request)
+ This is mostly intended for database impls
+ 
 
 
 Ted Husted 
@@ -18,3 +27,7 @@
  * Update STATUS.txt
  * Apply patches from problem tickets as they arise
 
+
+
+ * helping with the Struts tests (which are usefull, but overengineered, admittedly 
my own fault) 
+ * Struts 2.0 discussions 

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



[Apache Struts Wiki] Updated: StrutsShortTermPlans

2004-09-08 Thread dev
   Date: 2004-09-08T02:55:33
   Editor: JamesMitchell <[EMAIL PROTECTED]>
   Wiki: Apache Struts Wiki
   Page: StrutsShortTermPlans
   URL: http://wiki.apache.org/struts/StrutsShortTermPlans

   no comment

Change Log:

--
@@ -29,5 +29,3 @@
 
 
 
- * helping with the Struts tests (which are usefull, but overengineered, admittedly 
my own fault) 
- * Struts 2.0 discussions 

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



cvs commit: jakarta-struts/doc acquiring.xml

2004-09-08 Thread husted
husted  2004/09/08 06:26:10

  Modified:doc  acquiring.xml
  Log:
  Adjust quality ratings for distributions.
  
  Revision  ChangesPath
  1.23  +18 -12jakarta-struts/doc/acquiring.xml
  
  Index: acquiring.xml
  ===
  RCS file: /home/cvs/jakarta-struts/doc/acquiring.xml,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- acquiring.xml 31 Aug 2004 17:23:09 -  1.22
  +++ acquiring.xml 8 Sep 2004 13:26:09 -   1.23
  @@ -19,9 +19,10 @@
   
   
   
  -The latest production release of Struts is
  -available in a convenient binary distribution and also with complete
  -source code.
  +Struts is available in a convenient binary distribution and also with complete
  +source code. You may choose to download a production release or one of the
  +development builds. All downloads are available to the general public at
  +no charge and are distributed under the http://apache.org/licenses/";>Apache License.
   
   
   
  @@ -31,11 +32,15 @@
   to the Struts download.
   
   
  -
  +
   
   
  +
  +Struts "General Availability" Release - Jakarta Struts 1.1 is the 
best
  +available version - [http://jakarta.apache.org/site/binindex.cgi";>BINARY] - [http://jakarta.apache.org/site/sourceindex.cgi";>FULL SOURCE]
   
   
   
  @@ -55,26 +60,27 @@
   
   
   
  -
  +
   
  -The latest development release of Struts is
  +The latest development build of Struts is
   available in a convenient binary distribution and also with complete
   source code.
   
   
  -Development releases are being reviewed for quality by the Struts community.
  -When a release is judged "ready for prime time", it is promoted to
  -"General Availability" status and may be made the "Best Available" version.
  +Development builds are being reviewed for quality by the Struts community.
  +When a build is judged "ready for prime time", it is promoted to
  +"General Availability" status and may be made the "Best Available" release.
   
   
   
  -http://cvs.apache.org/dist/struts/v1.2.2";>Struts Development
  -Releases - Not yet rated "General Availability" - Struts 1.2.2 
(Alpha) 
  +http://cvs.apache.org/dist/struts/v1.2.3";>Struts Development
  +Builds - Not rated "General Availability" - Struts 1.2.3 (Alpha)
   is the most recent.
   
   
   http://cvs.apache.org/repository/struts/jars";>Struts 
Development
  -Repository (Maven) - Not yet rated "General Availability" -  
Struts 1.2.2 (Alpha) is the most recent.
  +Repository (Maven) - Not rated "General Availability" -  Struts
  +1.2.3 (Alpha) is the most recent.
   
   
   
  
  
  

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



DO NOT REPLY [Bug 31117] New: - Struts 1.2.2 uses Java 1.4 Boolean.valueOf(boolean b)

2004-09-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://issues.apache.org/bugzilla/show_bug.cgi?id=31117

Struts 1.2.2 uses Java 1.4  Boolean.valueOf(boolean b)

   Summary: Struts 1.2.2 uses Java 1.4  Boolean.valueOf(boolean b)
   Product: Struts
   Version: Nightly Build
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Controller
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


InsertTag, and ValidatorPlugin use the Boolean.valueOf(boolean b) method only
avaliable in Java 1.4 and greater. Attempting to use Struts on older versions of
Java gives linking errors.

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



DO NOT REPLY [Bug 31117] - Struts 1.2.2 uses Java 1.4 Boolean.valueOf(boolean b)

2004-09-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://issues.apache.org/bugzilla/show_bug.cgi?id=31117

Struts 1.2.2 uses Java 1.4  Boolean.valueOf(boolean b)

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2004-09-08 14:36 ---
Thank you Captain Obvious ;)

The 1.2.2 release was rolled back from GA and 1.2.3 (or 1.2.4) will most likely
be the next official release.

Thanks for playing.

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



DO NOT REPLY [Bug 31023] - Action Grouping

2004-09-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://issues.apache.org/bugzilla/show_bug.cgi?id=31023

Action Grouping





--- Additional Comments From [EMAIL PROTECTED]  2004-09-08 21:16 ---
Created an attachment (id=12676)
Patch to extend FormBean

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



DO NOT REPLY [Bug 31023] - Action Grouping

2004-09-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://issues.apache.org/bugzilla/show_bug.cgi?id=31023

Action Grouping





--- Additional Comments From [EMAIL PROTECTED]  2004-09-08 21:19 ---
I have included a patch to extend from-beans. I hope you find it usefull. 
Syntax is like Niall's examples above. 
Next step: extend actions.

Sven

PS: Please give me some feedback.

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



DO NOT REPLY [Bug 31023] - Action Grouping

2004-09-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://issues.apache.org/bugzilla/show_bug.cgi?id=31023

Action Grouping





--- Additional Comments From [EMAIL PROTECTED]  2004-09-08 21:21 ---
Oh, should better report it in BUG#22600. To late...

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



DO NOT REPLY [Bug 22600] - Defining inheritance for dynamic action forms in struts-config

2004-09-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://issues.apache.org/bugzilla/show_bug.cgi?id=22600

Defining inheritance for dynamic action forms in struts-config





--- Additional Comments From [EMAIL PROTECTED]  2004-09-08 21:31 ---
 I have attached a patch to BUG#31023 (I know, was the wrong BUG for the 
patch ;-) ) for dealing with inheritance of forms in struts-config. See 
BUG#31023.

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



found difficult in displaying hashtable in view

2004-09-08 Thread babu

herewith i enclosed the file which contains the actionclass,form bean,view part

in this enclosed file the  attachment and url are KEY and VALUE pairs in hashtable ie) 
which i got from DB.
and i've to display these value in textfiled[url] based on the key selected  in the 
html:options.

i need help to identify.


This is my Form bean

package com.calsoft.ecm;

import java.util.Collection;
import java.util.Hashtable;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;


public class AttachForm extends ActionForm{

 private Hashtable values = new Hashtable();
 private Collection webLink = null;
 private String linkVal = null;
 private String url = null;
 private String attachment = null;
 
 public void setValue(String attachment,Object url)
 {
  values.put(attachment,url);
  
 }
 public Object getValue(String attachment)
 {
  return values.get(attachment);
 }
 

 public void reset(ActionMapping mapping,HttpServletRequest request)
 {
  values = new Hashtable();
 }
 
 /**
  * @return Returns the linkVal.
  */
 public String getLinkVal() {
  return linkVal;
 }
 /**
  * @param linkVal The linkVal to set.
  */
 public void setLinkVal(String linkVal) {
  this.linkVal = linkVal;
 }
 /**
  * @return Returns the url.
  */
 public String getUrl() {
  return url;
 }
 /**
  * @param url The url to set.
  */
 public void setUrl(String url) {
  this.url = url;
 }
 
 
 /**
  * @return Returns the attachment.
  */
 public String getAttachment() {
  return attachment;
 }
 /**
  * @param attachment The attachment to set.
  */
 public void setAttachment(String attachment) {
  this.attachment = attachment;
 }
 
 /**
  * @return Returns the webLink.
  */
 public Collection getWebLink() {
  return webLink;
 }
 /**
  * @param webLink The webLink to set.
  */
 public void setWebLink(Collection webLink) {
  this.webLink = webLink;
 }
}
**
My Action Class

package com.calsoft.ecm;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Enumeration;
import java.util.Hashtable;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;


public class AttachAction extends Action {
 
  Hashtable hswebLink = new Hashtable();
Enumeration enu;
Collection collect = null;
ArrayList arrayCollect = new ArrayList();
String weblink = new String();
String attachment = null;
Object webUrl = null;
String userLink = null;
String userUrl = null;
 public ActionForward execute (ActionMapping mapping,
  ActionForm form,HttpServletRequest request,
  HttpServletResponse response)throws IOException, ServletException 
  {
  try {
   hswebLink = new Hashtable();  
   AttachForm attachForm = (AttachForm) form;
   userLink = attachForm.getAttachment();
   
   WeblinkConfigDAO web = new WeblinkConfigDAO(); 
   hswebLink = web.getWebLinks();
   
   enu = hswebLink.keys();
 //  hswebLink.values();
   while(enu.hasMoreElements())
   {
weblink =(String) enu.nextElement();
arrayCollect.add(weblink); // here the pbms
collect = arrayCollect;
  webUrl = hswebLink.get(weblink);
//   webUrl = hswebLink.get(weblink).toString();
  System.out.println("[weblink]"+weblink); it works fine
  System.out.println("[webUrl]"+webUrl); it works fine
 
   }
 attachForm.setWebLink(collect); // here the pbms 
  attachForm.setValue(weblink,webUrl);
  String userUrl = (String) attachForm.getValue(userLink);
  attachForm.setUrl(userUrl);   

   
  } catch (Exception e) {
e.printStackTrace();
  }
  return (mapping.findForward("attachment"));
 
}
}

**
my jsp 
  
 Attachment Name


  
   

 
  
   
 URL 
 
  

***
in this enclosed file the  attachment and url are KEY and VALUE pairs in hashtable ie) 
which i got from DB.
and i've to display these value in textfiled[url] based on the key selected  in the 
html:options.