Status
Not open for further replies.

hariharan

Journeyman
I have a JSP page in which i have one drop down box and two list boxes. now based on the selections I query a database and display the search results in the next page. In this new page i have a back button which on clicking leads back to the search page. I need the values selected for previous search query in the drop down box and list boxes( with multiple selection ) to remain as selected.

How to go about this.... any suggestions...??
 

Garbage

God of Mistakes...
use session and pass on values using attributes
TRUE !!

Just add code like...

if (session.getAttribute("search1")==null)
{
// display blank form
}
else
{
%>
Search : <input type=text name="search1" value="<%= session.getAttribute("search1")%>" >
<%
}

It's sample !!! Forgive errors please.. ;)
 
Status
Not open for further replies.
Top Bottom