[Cayambe-development] CVS: core/src/org/cayambe/web/cart/action SearchProductActionForm.java,1.1,1.2
Status: Pre-Alpha
Brought to you by:
jlward4
|
From: Jon R. <jon...@us...> - 2002-05-22 20:45:44
|
Update of /cvsroot/cayambe/core/src/org/cayambe/web/cart/action
In directory usw-pr-cvs1:/tmp/cvs-serv8240/src/org/cayambe/web/cart/action
Modified Files:
SearchProductActionForm.java
Log Message:
Fixed problems with admin. Made VO's Serializable. Debug linkage error. Jboss needs mysql.jar in classpath at startup.
Index: SearchProductActionForm.java
===================================================================
RCS file: /cvsroot/cayambe/core/src/org/cayambe/web/cart/action/SearchProductActionForm.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** SearchProductActionForm.java 17 May 2002 22:23:16 -0000 1.1
--- SearchProductActionForm.java 22 May 2002 20:45:41 -0000 1.2
***************
*** 18,22 ****
import org.apache.struts.action.ActionMapping;
import org.cayambe.core.ProductVO;
! import org.cayambe.util.DollarFormat;
--- 18,24 ----
import org.apache.struts.action.ActionMapping;
import org.cayambe.core.ProductVO;
! import java.text.NumberFormat;
! import java.util.Locale;
! import org.cayambe.util.CayambeProperties;
***************
*** 25,29 ****
// --------------------------------------------------- Instance Variables
! DollarFormat df = new DollarFormat();
private String productId = null;
--- 27,31 ----
// --------------------------------------------------- Instance Variables
! NumberFormat nf = NumberFormat.getCurrencyInstance(CayambeProperties.LOCAL);
private String productId = null;
***************
*** 51,55 ****
public double getPrice() { return (this.price); }
public void setPrice(double _price) { this.price = _price; }
! public String getDollarPrice() { return (df.getDollarFormat(price)); }
public String getImage() { return (this.image); }
--- 53,57 ----
public double getPrice() { return (this.price); }
public void setPrice(double _price) { this.price = _price; }
! public String getDollarPrice() { return (nf.format(price)); }
public String getImage() { return (this.image); }
***************
*** 61,65 ****
public double getSalePrice() { return (this.salePrice); }
public void setSalePrice(double _salePrice) { this.salePrice = _salePrice; }
! public String getDollarSalePrice() { return (df.getDollarFormat(salePrice)); }
public boolean isOnSale() { return (this.onSale); }
--- 63,67 ----
public double getSalePrice() { return (this.salePrice); }
public void setSalePrice(double _salePrice) { this.salePrice = _salePrice; }
! public String getDollarSalePrice() { return (nf.format(salePrice)); }
public boolean isOnSale() { return (this.onSale); }
|