Propertiesid is probably a java.lang.Long, and at some point datain is
this URL above, and the URL cannot be converted to a Long to be
assigned to propertesid. To figure out which one it is, you could
iterate thru the collection and log each element inside your action
before the JSP is called.

As far as having iterated fields populate into a vector (usable in
your Action via a formbean, I assume?), there are many examples on the
internet of how to do this, you could start with
http://struts.apache.com or http://www.learntechnology.net/

HTH,
-ed

On 11/24/06, Prashant Saraf <[EMAIL PROTECTED]> wrote:
Hi all..
I had following problem



<c:forEach var="data" items="${requestScope.List}" >
            <tr>
                <c:forEach var="datain" items="${data}" >

                    <c:choose>
                        <c:when test='${datain>0}'>
                            <c:set  value="${datain}" scope="session"
var="propertiesid"/>
                            <td><a href="edit?id=${datain}">Edit</a></td>
                        </c:when>
                        <c:otherwise>
                            <td><c:out value="${datain}" /></td>
                        </c:otherwise>
                    </c:choose>
                </c:forEach>

            </tr>

      </c:forEach>

It gives following error

An exception occured trying to convert String
"http://localhost:7003/cctc/pic1"; to type "java.lang.Long" (null)

I am having one more problem.. can i assign value came from forEach which
iterate from vector of bean to my  useBean. if yes how.

Thanks in advance


--
Cup of Java + Suger of XML = Secure WebApp



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to