Hi Mr Sing,

First, Sorry my english is not good.

Second, I have a question...

How I can to get values for Dynamic form fields?

I need to create input fields when user clicked a button, then, I can to
create 1 input field, or 2 input fields or n input fields....
like this ... (the dynamic creation work for me with javascript clone code)
<input type="file" name="file_name_1" id="file_name_1" >

When i submit the form... How i can to get values for there fields?


I think do it with forEach.... but this not work for me.
....
              <c:forEach begin="1" end="${param.GLOBAL_ROW_COUNTER}"
varStatus ="i" step="1">

                    <c:set var="field_">file_name_+${i}</c:set>
                        <jsp:setProperty name="News_image_"
property="news_id" value="${BeanNews_.last}" />
                        <jsp:setProperty name="News_image_"
property="file_name" value="${param.file_name_+i}" /> <%-- This line do not
work --%>
                        <jsp:setProperty name="News_image_"
property="status" value="1" />

                        <%--Actualizo el DTO del Bean --%>
                        <jsp:setProperty name="BeanNews_image_"
property="pojo" value="${News_image_}" />

                        <c:choose>
                            <c:when test="${BeanNews_image_.insert == 1}">
                                <%-- Place Cascade Insert Sentences Here
                                <c:redirect
url="News_image_list.jsp"></c:redirect>--%>
                                Insert OK<br>
                            </c:when>
                            <c:otherwise>
                                <%-- <c:redirect
url="Error.jsp"></c:redirect> --%>
                                Error<br>
                            </c:otherwise>
                        </c:choose>


                </c:forEach>
....


Please Help me.

--
"Java: write once, run anywhere"
=================================
CESAR AUGUSTO ZAMBRANO ARAGON
..:: Zac Jack

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to