Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Showing and hiding elemets

 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no such thing as a "combo box" on the web. Please read this for more information.
 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not at the moment -- using correct terminology ensures that we're all talking about the same thing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic