Java tutorial
/** * PureInfo Command * @(#)PatentFeeToBatchAddAction.java 1.0 2007-2-1 * * Copyright(c) 2004-2005, PureInfo Information Technology Corp. Ltd. * All rights reserved, see the license file. * * www.pureinfo.com.cn */ package com.pureinfo.srm.patent.action; import org.apache.commons.lang.StringUtils; import org.apache.struts.action.ActionForward; import com.pureinfo.ark.interaction.ActionBase; import com.pureinfo.force.exception.PureException; public class PatentFeeToBatchAddAction extends ActionBase { /** * @see com.pureinfo.ark.interaction.ActionBase#executeAction() */ public ActionForward executeAction() throws PureException { // ID String[] a = request.getParameterValues("listHasFee"); // ID String[] b = request.getParameterValues("listNoFee"); String sPatentIds = ""; if (a != null && a.length > 0) { sPatentIds = StringUtils.join(a, ','); } if (b != null && b.length > 0) { sPatentIds += ',' + StringUtils.join(b, ','); } logger.debug("patentIds : " + sPatentIds); request.setAttribute("patentIds", sPatentIds); return mapping.findForward("success"); } }