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

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -