You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2004/11/24 23:37:02 UTC

svn commit: r106481 - /struts/sandbox/trunk/mailreader-chain/README.txt /struts/sandbox/trunk/mailreader-chain/STATUS.txt

Author: husted
Date: Wed Nov 24 14:37:01 2004
New Revision: 106481

URL: http://svn.apache.org/viewcvs?view=rev&rev=106481
Log:
Add README and STATUS files to describe the subproject state.
Added:
   struts/sandbox/trunk/mailreader-chain/README.txt
   struts/sandbox/trunk/mailreader-chain/STATUS.txt

Added: struts/sandbox/trunk/mailreader-chain/README.txt
Url: http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-chain/README.txt?view=auto&rev=106481
==============================================================================
--- (empty file)
+++ struts/sandbox/trunk/mailreader-chain/README.txt	Wed Nov 24 14:37:01 2004
@@ -0,0 +1,45 @@
+MailReader-Chain README.txt
+
+This is a work-in-progress demonstration application showing how you can use
+Commons-Chain with a web application framework like Struts.
+
+The appication does not rely on the new Struts-Chain request processor, but
+this is liable to change as Struts 1.3.x development progresses.
+
+The primary build and documentation environment is Maven. An Ant build file is
+provided for integration with IDEs. It can be used from the command line,
+but using Maven directly is more efficient.
+
+The web application is built under target/mailreader by the "webapp.war" goal.
+For play testing, you may like to point your web container directly to this
+folder. Containers like Jetty, Resin, and Tomcat can use alternate configuration
+files that you can store with your copy of the repository.
+
+The business logic is tested with JUnit. A set of WebTest Canoo tests are under
+development but not working yet.
+
+Note that this application uses multiple configuration files to implement a
+"config-behind-story" approach. Each workflow (or "story") has its own
+pair of struts-config and validator config files.
+
+For the time being, development is tracked by STATUS.txt file, but we expect
+this to be integrated into the Maven documentation shortly.
+
+----
+
+/src - source code files
+/xdocs - documentation files
+/target - build files
+
+/src/java - Source code for production Java classes
+/src/resources - XML and property file resources
+/src/test - Unit tests for Java classes
+/src/webapp - Web application specific files
+
+/src/webapp/ - HTML and JSP assets
+/src/webapp/WEB-INF/ - various configuration resources
+/src/webapp/entities -  WebTest configuration entities
+/src/webapp/WEB-INF/struts-config - Struts configuration documents
+/src/webapp/WEB-INF/tld - Taglib descriptors
+
+####

Added: struts/sandbox/trunk/mailreader-chain/STATUS.txt
Url: http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-chain/STATUS.txt?view=auto&rev=106481
==============================================================================
--- (empty file)
+++ struts/sandbox/trunk/mailreader-chain/STATUS.txt	Wed Nov 24 14:37:01 2004
@@ -0,0 +1,43 @@
+MailReader Demonstration Application (for Commons Chain)
+------------------------------------------------------------------------
+
+Help people manage multiple email subscriptions by allowing users to 
+create one or more accounts and attach one or more subscriptions to 
+each account. 
+
+(Note that this is a demonstration application only. It does not 
+actually check email accounts.)
+
+------------------------------------------------------------------------
+
+Status Levels 
+
+ 4 Development
+   Testing
+   Client Review
+ 1 Complete
+--
+ 5 Total
+------------------------------------------------------------------------
+
+Story Index
+
+* Select language
+* Create an account
+* Login into an account 
+* Maintain account record (master)
+* Maintain subscription records (child)
+
+------------------------------------------------------------------------
+
+[ ] Select language
+
+Upon opening the application, users may select one of the supported 
+languages, including English, Japanese, and Russian. 
+
+On selecting a language, the page is redisplayed in that language. The 
+user may select another language, or continue using the one selected.
+
+------------------------------------------------------------------------
+========================================================================
+

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


Re: MailReader-Chain (was Re: svn commit: r106481)

Posted by Vic <vi...@friendvu.com>.
Ted Husted wrote:
  Of course, help and comments are always welcome. :)
> 
> -Ted.

What I have found my clients confused is that the DAO faking part is 
many classes in sample app, and it confuses them as to what is "Struts" 
and what is DAO xml reader, they both read XML. I would remove all the 
DAO, replace with something that is easy to undertstand and use and 
clearly not a part of "Struts". (I use this class in development also to 
generate data for a view for demo/prototype, without having to design a 
db, since I do not know what they want yet). Ah, and I win a design 
award. =:-} It just makes it simpler.

.V <eom>

public class ZFakeData {

	public static ArrayList getFakeRows() {
		ArrayList rows = new ArrayList();
		Map cols = new HashMap();
		cols.put("id", new Integer(1));
		cols.put("name", "Vic");
		cols.put("subject", "How to");
		cols.put("date", new Timestamp(new java.util.Date().getTime()));
		cols.put("content", "Now is the time to hepl the King1");
		rows.add(cols);
		cols = new HashMap();
		cols.put("id", new Integer(2));
		cols.put("name", "Dave");
		cols.put("subject", "C#");
		cols.put("date", new Timestamp(new java.util.Date().getTime()));
		cols.put("content", "Now is the time to hepl the King2");
		rows.add(cols);
		cols = new HashMap();
		cols.put("id", new Integer(3));
		cols.put("name", "Tom");
		cols.put("subject", "Struts");
		cols.put("date", new Timestamp(new java.util.Date().getTime()));
		cols.put("content", "Now is the time to hepl the King3");
		rows.add(cols);
		return rows;

	}



	public static Map getFakeRow() {
		Map cols = new HashMap();
		cols.put("id", new Integer(1));
		cols.put("name", "Vic");
		cols.put("subject", "How to");
		cols.put("date", new Timestamp(new java.util.Date().getTime()));
		cols.put("content", "Now is the time to hepl the King1");
		return cols;
	}


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


MailReader-Chain (was Re: svn commit: r106481)

Posted by Ted Husted <hu...@apache.org>.
Imports don't seem to show up on the SVN email logs, so I thought I'd point out that a MailReader-Chain demonstration application has been checked in to the sandbox. 

This is something I started several months ago in the Commons Chain CVS. Now that we are moving Struts to a Chain-based request processor, I'm looking forward to finishing it as a "best practices" example. 

Only the first "story" (Select language) is complete, but I'll keep plugging away. Of course, help and comments are always welcome. :) 

-Ted.

On Wed, 24 Nov 2004 22:37:02 +0000, husted@apache.org wrote:
>�Author: husted
>�Date: Wed Nov 24 14:37:01 2004
>�New Revision: 106481
>
>�URL: http://svn.apache.org/viewcvs?view=rev&rev=106481 Log:
>�Add README and STATUS files to describe the subproject state. Added:
>�struts/sandbox/trunk/mailreader-chain/README.txt
>�struts/sandbox/trunk/mailreader-chain/STATUS.txt
>
>�Added: struts/sandbox/trunk/mailreader-chain/README.txt Url:
>�http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-
>�chain/README.txt?view=auto&rev=106481



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