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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -