Link to home
Start Free TrialLog in
Avatar of Sathish David  Kumar N
Sathish David Kumar NFlag for India

asked on

How to use hidden flied in <display:table>

Hi

How to use hidden flied in <display:table>
for example
<display:column property="shipedQTY" title="Shipped Quantity" align="center" >
                                              <input type="hidden" name="shipedQTY" Id="shipedQTY<%=i%>"  value="0" >
                        </display:column>
i want set the shipedQTY property value to hidden flied value how can i do that ?
Avatar of chaitu chaitu
chaitu chaitu
Flag of India image

you will fetch in the servlet like this ;

String qty[] = request.getParameterValues("shipedQTY");
if it is single shipedQTY name in jsp then you will fetch;

String qty = request.getParameter("shipedQTY");

I think you should use this one only.

String qty[] = request.getParameterValues("shipedQTY");
Avatar of Sathish David  Kumar N

ASKER

Sorry !!
i need to get in java script ? how can i get that ??

var qty = document.getElementsByName("shipedQTY");

for(i=0;i<qty.length;i++)
{
 alert(document.getElementById("shipedQTY"+i).value)
}
Thats not possble in display table
ASKER CERTIFIED SOLUTION
Avatar of Sathish David  Kumar N
Sathish David Kumar N
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
when you se this         <input type="hidden" name="shipedQTY" Id="shipedQTY<%=i%>"  value="0" >
in between <display:column  are you getting any error?
No . But shipped values are not assign to variable