只能帮你顶一下!
btw:
1。代码太长,没有有那么多时间看这么长的代码
2。问题描述不清楚,有异常么?什么异常信息?没异常是什么症状?
3。你的名字太搞笑了

解决方案 »

  1.   

    加上<logic:present >  然后把<logic:iterate 》放在中间    因为你在查数据库时要判断是否存在记录。
    <logic:present name="AllInquiry",property="list"> 
    <logic:iterate id="SelectAllDataSet" name="AllInquiry" indexId="ind">
    ………………………………………………//中间的不变
    </logic:iterate>
    </logic:present > 
    试试先
      

  2.   

    这是struts里面对logic iterator解析的源代码的部分内容
    如果要全部,可以到apache网站去下载 
       public int doStartTag() throws JspException {        // Acquire the collection we are going to iterate over
            Object collection = this.collection;
            if (collection == null) {
                collection = RequestUtils.lookup(pageContext, name, property, scope);
            }        if (collection == null) {
                JspException e = new JspException(messages.getMessage("iterate.collection"));
                RequestUtils.saveException(pageContext, e);
                throw e;
            }        // Construct an iterator for this collection
            if (collection.getClass().isArray()) {
                try {
                    // If we're lucky, it is an array of objects
                    // that we can iterate over with no copying
                    iterator = Arrays.asList((Object[]) collection).iterator();
                } catch (ClassCastException e) {
                    // Rats -- it is an array of primitives
                    int length = Array.getLength(collection);
                    ArrayList c = new ArrayList(length);
                    for (int i = 0; i < length; i++) {
                        c.add(Array.get(collection, i));
                    }
                    iterator = c.iterator();
                }
            } else if (collection instanceof Collection) {
                iterator = ((Collection) collection).iterator();
            } else if (collection instanceof Iterator) {
                iterator = (Iterator) collection;
            } else if (collection instanceof Map) {
                iterator = ((Map) collection).entrySet().iterator();
            } else if (collection instanceof Enumeration) {
                iterator = IteratorUtils.asIterator((Enumeration) collection);
            } else {
                JspException e = new JspException(messages.getMessage("iterate.iterator"));
                RequestUtils.saveException(pageContext, e);
                throw e;
            }        // Calculate the starting offset
            if (offset == null) {
                offsetValue = 0;
            } else {
                try {
                    offsetValue = Integer.parseInt(offset);
                } catch (NumberFormatException e) {
                    Integer offsetObject = (Integer) RequestUtils.lookup(pageContext, offset, null);
                    if (offsetObject == null) {
                        offsetValue = 0;
                    } else {
                        offsetValue = offsetObject.intValue();
                    }
                }
            }
            if (offsetValue < 0) {
                offsetValue = 0;
            }        // Calculate the rendering length
            if (length == null) {
                lengthValue = 0;
            } else {
                try {
                    lengthValue = Integer.parseInt(length);
                } catch (NumberFormatException e) {
                    Integer lengthObject = (Integer) RequestUtils.lookup(pageContext, length, null);
                    if (lengthObject == null) {
                        lengthValue = 0;
                    } else {
                        lengthValue = lengthObject.intValue();
                    }
                }
            }
            if (lengthValue < 0) {
                lengthValue = 0;
            }
            lengthCount = 0;        // Skip the leading elements up to the starting offset
            for (int i = 0; i < offsetValue; i++) {
                if (iterator.hasNext()) {
                    iterator.next();
                }
            }        // Store the first value and evaluate, or skip the body if none
            if (iterator.hasNext()) {
                Object element = iterator.next();
                if (element == null) {
                    pageContext.removeAttribute(id);
                } else {
                    pageContext.setAttribute(id, element);
                }
                lengthCount++;
                started = true;
                if (indexId != null) {
                    pageContext.setAttribute(indexId, new Integer(getIndex()));
                }
                return (EVAL_BODY_TAG);
            } else {
                return (SKIP_BODY);
            }    }    /**
         * Make the next collection element available and loop, or
         * finish the iterations if there are no more elements.
         *
         * @exception JspException if a JSP exception has occurred
         */
        public int doAfterBody() throws JspException {        // Render the output from this iteration to the output stream
            if (bodyContent != null) {
                ResponseUtils.writePrevious(pageContext, bodyContent.getString());
                bodyContent.clearBody();
            }        // Decide whether to iterate or quit
            if ((lengthValue > 0) && (lengthCount >= lengthValue)) {
                return (SKIP_BODY);
            }        if (iterator.hasNext()) {
                Object element = iterator.next();
                if (element == null) {
                    pageContext.removeAttribute(id);
                } else {
                    pageContext.setAttribute(id, element);
                }
                lengthCount++;
                if (indexId != null) {
                    pageContext.setAttribute(indexId, new Integer(getIndex()));
                }
                return (EVAL_BODY_TAG);
            } else {
                return (SKIP_BODY);
            }    }    /**
         * Clean up after processing this enumeration.
         *
         * @exception JspException if a JSP exception has occurred
         */
        public int doEndTag() throws JspException {        // Clean up our started state
            started = false;
            iterator = null;        // Continue processing this page
            return (EVAL_PAGE);    }
      

  3.   

    我的问题是要在Action中取到jsp界面checkbox选中记录的数据进行操作,如何能得到checkbox选中的数据,
      

  4.   

    在<html:form>
    <bean:write property="test">
    </html:form>
    中<bean:write property="test">能提交到Action中吗?
      

  5.   

    把你的check中的数据传到actionform中 然后在action中根据数据在数据库中把数据检索出来进行操作就行了 .你还是不明白struts的模式.其实很简单 就是前台的数据放到actionform 中 然后再action中对数据进行操作 或者在acton中调用相关的业务逻辑进行操作就行了 要记住 actionform就是你装载数据的容器.