ofbiz--service
来源:互联网 发布:重庆招聘软件开发 编辑:程序博客网 时间:2024/05/29 16:08
配置controller.xml
<request-map uri="getUser"> <description>获取用户信息</description> <event type="service" invoke="searchUser"/> <response name="success" type="request" value="json"></response></request-map>
配置services.xml
<service name="searchUser" engine="java" location="service.SearchUserInfoService" invoke="searchUser"> <description>查询用户信息</description> <attribute name="userList" mode="OUT" type="java.util.List"></attribute></service>
后台代码
public static Map<String, Object> searchCarLength(DispatchContext dc, Map<String, ? extends Object> context) { Delegator delegator = dc.getDelegator(); Map<String, Object> resultMap = ServiceUtil.returnSuccess(); try { List<GenericValue> carTypeList = EntityQuery.use(delegator).from("user").queryList(); resultMap.put("userList", userList); } catch (GenericEntityException e) { e.printStackTrace(); } return resultMap; }
0 0
- ofbiz--service
- ofbiz 之service eca
- ofbiz service 参数验证
- Apache OFbiz service engine 源码解读
- Apache OFbiz service engine 源码解读
- ofbiz 的 service eca调用方式解析
- Apache OFbiz service engine 源码解读
- ofbiz 的 service eca调用方式解析
- ofbiz 的 service eca调用方式解析
- ofbiz
- OFBiz
- OFBIZ
- OFBiz
- ofbiz
- ofbiz
- OFBIZ
- OFBIZ
- OFBIZ
- BSE:Bridge Software Engineer
- 在c语言中自定义了一个函数,在main中调用时提示找不到标识符
- 关于Android游戏开发的资料
- Codevs1198 国王游戏
- fusioncharts属性设置
- ofbiz--service
- Java中如何遍历Map对象的4种方法
- python多线程机制
- UVa 10891 Game of Sum(博弈区间DP)
- 传奇屏幕截图
- 美图2016校招java编程
- CodeForces 261A Maxim and Discounts [想法/贪心题]
- Cannot reload AVD List : Value '280dpi' is not facet-valid with ......---Android studio调试错误
- 机器学习理解(三)