html - JSP Pass values from a table to a form -
i have page details of product, need edit current details, want pass these row current values edit page when edit button clicked. please help
there 3 methods pass values 1 jsp another. pathvariable:
<a href="site.jsp?var=${var}" />
with hidden field:
<form method="post" action="next.jsp"> <input type="hidden" name="var" value="${var}">
or session object.
session.setattribute("var", var);
you can session.getattribute(var)
on next jsp.
Comments
Post a Comment