Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 01-04-2008, 05:35 PM   #1 (permalink)
Broken In
 
Join Date: Sep 2004
Location: Mysore
Posts: 137
Default Java


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...??
hariharan is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 01-04-2008, 06:42 PM   #2 (permalink)
Wahahaha~!
 
Faun's Avatar
 
Join Date: Dec 2006
Location: Pune/there
Posts: 7,675
Default Re: Java

use session and pass on values using attributes
__________________
Blog | Flickr | Battlelog
Spoiler:
Asus Z68 V-Pro|i5 2500k|TRUE Black|Ripjaws X|U2311H|N560GTX|D7000|XONAR STX|RE272|RE0|CC51|XE200PRO Walnut| TD II V2| Ultraphile|N5800

Mono
Faun is online now  
Old 01-04-2008, 07:00 PM   #3 (permalink)
God of Mistakes...
 
Garbage's Avatar
 
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,923
Default Re: Java

Quote:
Originally Posted by T159 View Post
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..
__________________
Registered Linux User #468778
----------------------------------
http://twitter.com/_Garbage_
Garbage is offline  
Old 02-04-2008, 11:30 AM   #4 (permalink)
In The Zone
 
Join Date: Oct 2006
Location: Mumbai
Posts: 365
Default Re: Java

use session based java beans
__________________
Dhiraj Thakur
thakur.dheeraj(@)gmail.com
Desi-Tek.com is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java programming..how can I distribute java program....? Manojap Programming 5 16-05-2009 02:46 PM
c++, java and more mak1012 Open Source 11 10-08-2006 03:47 PM
java himtuna Software Q&A 7 12-11-2005 12:34 PM
help in java shivi4 QnA (read only) 9 20-03-2005 11:24 AM

 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:56 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2