我已经将RichFaces演示逐字放在了index.jsp页面中。由于演示没有提供任何支持此源代码的支持bean代码,因此我在panelMenu.java中创建了这些方法
public void updateCurrent(String n) {
logger.info("updateCurrent called with " + n);
setCurrent(n);
}
public String getCurrent() {
return current;
}
public void setCurrent(String c) {
curr
我在店面用优惠券打折。有些优惠券是为超过特定价值的订单提供固定美元金额的。比如,40美元或更多的订单减去10美元。其他优惠券提供折扣,比如说,你这个月的第一个订单打八折(storefront正在处理限额,所以可以忽略)。我想使用authorize.net处理交易,并将收据发送给客户。
我的第一个想法是修改打折商品的单价。这可以很好地用于费率折扣,尽管不会显示所有信息。问题将在于固定折扣。如果有几种商品,你会把10美元从哪里拿下来呢?
我的第二个想法是在订单收据中添加一个值/价格为负值的行项目。Authorize似乎不接受任何负值,所以这是一个失败。
我们使用Java的AIM事务库。
Order
当我在Androäd上部署一个war on jetty应用程序时,我得到了这样的消息:
HTTP ERROR 500
Problem accessing /index.jsp.
Reason:
JSP support not configured
如何在Andro JSP上配置Jetty应用程序以接受JSP?
我得到了这个类似商店的应用程序(Rails 3.2 + Postgresql),其中我的两个资源/表是User和Operation。
在其他属性中,User在每个时刻都有一个特定的:credit。
Operations代表以下任一种:
1. A purchase of a **product** (whose price is deduced from the `User`'s credit who purchased it).
2. A purchase of **credit** ( the amount of which is added to the `User