Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Script Menu with XML menu entries.

802523Jul 13 2008 — edited Aug 31 2008
Hi All,

I am not sure if this is a right place for this query. But please help me out!

I am thinking, it would be best to generate the complete Javascript Code for the navigation menu within a Java-Class and call this functionality out of the JSP page.

To make it easier to maintain the menu-structure and all the therefore needed information, we had the idea to store this information in an XML file.

Of course this would be a higher effort at the beginning, but it would also have the advantage that, once a working js-menu can be generated out of the Java-Class, no one would ever have to adjust coding and/or settings directly in the Javascript. New menu entries then simply have to be added to this XML file.

Can you please help me how to go about with this requirement? An example or a link or a sample code would really solve my problem!

Thanks and Rgds,
Pradeep
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 28 2008
Added on Jul 13 2008
3 comments
117 views