• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Regarding html:select kind of URGENT

 
Ranch Hand
Posts: 645
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am using html:select to display a drop down which have menu items.
A menu item can be parent menuitem for other menuitem
ex. if Admin is parent menuitem for UserMaster then entry for both of them will be as follows
menu code menu name parent menu
100 Admin -1
200 User Master 100
Now I have a screen where I can change parent menu for selected menu
so when I select User Master I need to display a drop down list with all menus and Admin must be selected.
so I tried following


but above code displays screen with --None-- selected. where as I want Admin option selected.

If I change property in <html:select to menuCode then same menu (user master) is selected so why it not compairing with parentcode ??
kindly help out
 
To get a wish, you need a genie. To get a genie, you need a lamp. To get a lamp, you need a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic