File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Showing and hiding elemets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Showing and hiding elemets " Watch "Showing and hiding elemets " New topic
Author

Showing and hiding elemets

Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

Hi Guys ,,

I need to show and hide some items in the combo box in the JSP depending on the user name that the user used to log to the system , for example :

user 1 sees item1 , 2 , 3 only from the combo box .
user 2 sees item3 , 2 , 4 only .... etc


how can i archive this ?


Thanks,
Sherif
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

There are a lot of ways to achieve this. Personally, I'd only send the data to the JSP page the user is supposed to see, which means the logic for creating the viewable list resides in Java code.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

There is no such thing as a "combo box" on the web. Please read this for more information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

Bear Bibeault wrote:There is no such thing as a "combo box" on the web. Please read this for more information.


Thanks Bear of this hint , any other recommendations ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Not at the moment -- using correct terminology ensures that we're all talking about the same thing.
 
Consider Paul's rocket mass heater.
 
subject: Showing and hiding elemets
 
Similar Threads
Combobox Problem
Servlet getting values from a combo box
How to handle more than two combobox
combo boxes and iterator
jcombobox info