From: <jm...@us...> - 2005-11-10 03:52:06
|
Update of /cvsroot/struts/dialogs/war/WEB-INF In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17817/war/WEB-INF Modified Files: database.xml struts-config.xml Log Message: Index: database.xml =================================================================== RCS file: /cvsroot/struts/dialogs/war/WEB-INF/database.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** database.xml 9 Nov 2005 03:20:42 -0000 1.2 --- database.xml 10 Nov 2005 03:51:52 -0000 1.3 *************** *** 3,33 **** <user username="www" fromAddress="fr...@ma..." fullName="qwerty" password="www" replyToAddress="to...@ma..."> </user> - <user username="uuu" fromAddress="fr...@ma..." fullName="qwerty" password="uuu" replyToAddress="to...@ma..."> - </user> <user username="ttt" fromAddress="fr...@ma..." fullName="qwerty" password="ttt" replyToAddress="to...@ma..."> </user> <user username="user" fromAddress="Joh...@so..." fullName="John Q. User2" password="pass" replyToAddress="to...@ma..."> <subscription host="mail.com" autoConnect="false" password="john" type="imap" username="john"> </subscription> ! <subscription host="yahoo.com" autoConnect="false" password="JohnDoe" type="pop3" username="JohnDoe"> </subscription> <subscription host="mail.ru" autoConnect="true" password="JohnQ" type="pop3" username="JohnQ"> </subscription> ! <subscription host="mail5.com" autoConnect="false" password="ffff" type="pop3" username="ffff"> </subscription> <subscription host="mail4.com" autoConnect="true" password="ssss" type="imap" username="ssss"> </subscription> </user> - <user username="wwwww" fromAddress="fr...@ma..." fullName="Quark Express" password="wwwww" replyToAddress=""> - </user> <user username="ooo" fromAddress="Joh...@so..." fullName="UUU John Q. User" password="ooo" replyToAddress="to...@ma..."> </user> <user username="scott" fromAddress="fr...@ma..." fullName="qwerty" password="tiger" replyToAddress="to...@ma..."> </user> ! <user username="sysdba" fromAddress="fr...@ma..." fullName="qwerty" password="aaa" replyToAddress="to...@ma..."> </user> <user username="eee" fromAddress="fr...@ma..." fullName="qwerty" password="eee" replyToAddress="to...@ma..."> </user> ! <user username="cccc" fromAddress="fr...@ma..." fullName="UUU John Q. User" password="cccc" replyToAddress=""> </user> <user username="aaaaa" fromAddress="fr...@ma..." fullName="qwerty" password="bbbbb" replyToAddress="to...@ma..."> --- 3,33 ---- <user username="www" fromAddress="fr...@ma..." fullName="qwerty" password="www" replyToAddress="to...@ma..."> </user> <user username="ttt" fromAddress="fr...@ma..." fullName="qwerty" password="ttt" replyToAddress="to...@ma..."> </user> + <user username="uuu" fromAddress="fr...@ma..." fullName="qwerty" password="uuu" replyToAddress="to...@ma..."> + </user> <user username="user" fromAddress="Joh...@so..." fullName="John Q. User2" password="pass" replyToAddress="to...@ma..."> <subscription host="mail.com" autoConnect="false" password="john" type="imap" username="john"> </subscription> ! <subscription host="mail5.com" autoConnect="false" password="ffff" type="pop3" username="ffff"> </subscription> <subscription host="mail.ru" autoConnect="true" password="JohnQ" type="pop3" username="JohnQ"> </subscription> ! <subscription host="yahoo.com" autoConnect="false" password="JohnDoe" type="pop3" username="JohnDoe"> </subscription> <subscription host="mail4.com" autoConnect="true" password="ssss" type="imap" username="ssss"> </subscription> </user> <user username="ooo" fromAddress="Joh...@so..." fullName="UUU John Q. User" password="ooo" replyToAddress="to...@ma..."> </user> + <user username="wwwww" fromAddress="fr...@ma..." fullName="Quark Express" password="wwwww" replyToAddress=""> + </user> <user username="scott" fromAddress="fr...@ma..." fullName="qwerty" password="tiger" replyToAddress="to...@ma..."> </user> ! <user username="cccc" fromAddress="fr...@ma..." fullName="UUU John Q. User" password="cccc" replyToAddress=""> </user> <user username="eee" fromAddress="fr...@ma..." fullName="qwerty" password="eee" replyToAddress="to...@ma..."> </user> ! <user username="sysdba" fromAddress="fr...@ma..." fullName="qwerty" password="aaa" replyToAddress="to...@ma..."> </user> <user username="aaaaa" fromAddress="fr...@ma..." fullName="qwerty" password="bbbbb" replyToAddress="to...@ma..."> Index: struts-config.xml =================================================================== RCS file: /cvsroot/struts/dialogs/war/WEB-INF/struts-config.xml,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** struts-config.xml 9 Nov 2005 03:20:42 -0000 1.12 --- struts-config.xml 10 Nov 2005 03:51:52 -0000 1.13 *************** *** 23,28 **** --- 23,35 ---- <!-- Subscription bean --> <form-bean name="SubscriptionForm" type="net.jspcontrols.mailreader.SubscriptionForm"/> + + <form-bean name="cartForm" type="org.apache.struts.action.DynaActionForm"> + <form-property name="lines" type="net.jspcontrols.shoppingcart.CartItem[]"/> + <form-property name="itemID" type="java.lang.Integer"/> + </form-bean> + </form-beans> + <!-- <global-exceptions> <exception type = "java.lang.IllegalArgumentException" *************** *** 33,36 **** --- 40,44 ---- path = "/mailreaderpages/error.jsp"/> </global-exceptions> + --> <global-forwards> *************** *** 102,109 **** <event name = "DIALOG-EVENT-BACKHOME" handler = "onBackHome"/> ! <event name = "DIALOG-EVENT-CREATE" ! handler = "onCreate" ! outcome = "ON-CREATE-SUCCESS, ON-CREATE-FAILURE"/> ! <event name = "DIALOG-EVENT-UPDATE" handler = "onEdit"/> <event name = "DIALOG-EVENT-DELETE" handler = "onDelete"/> --- 110,114 ---- <event name = "DIALOG-EVENT-BACKHOME" handler = "onBackHome"/> ! <event name = "DIALOG-EVENT-CREATE" handler = "onCreate"/> <event name = "DIALOG-EVENT-UPDATE" handler = "onEdit"/> <event name = "DIALOG-EVENT-DELETE" handler = "onDelete"/> *************** *** 123,126 **** --- 128,148 ---- <render name="CRUD-UI-MODE-INACTIVE" path="/mailreaderpages/subscriptions.jsp"/> </component> + + <!-- Shopping cart --> + <component path = "/Cart" + view = "/shoppingpages/cart.jsp" + type = "net.jspcontrols.shoppingcart.CartAction" + form = "cartForm"> + + <!-- Initialize shopping cart --> + <event name = "DIALOG-EVENT-INIT" handler = "onInit"/> + <event name = "DIALOG-EVENT-CHANGE" handler = "onChange"/> + <event name = "DIALOG-EVENT-DELETE" handler = "onDelete"/> + + <!-- Update quantity from cart's page and reload page --> + <transfer name = "updateCart" path = "/Cart.do"/> + </component> + + </action-mappings> |