File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes OO, Patterns, UML and Refactoring and the fly likes Menu Design Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Menu Design" Watch "Menu Design" New topic
Author

Menu Design

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
I have a plan to do menu design for Web UI project. Menus should dynamically come from the xml / properties file. Any open source tool is there ?
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
Any update ?
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
I think we ned to know a little more about what you need to do here.

First of all, what sort of "menu" are you interested in creating - site navigation, domain navigation, loging/logout/search etc., image buttons, expanding tree, and so on.

Second, please exapand what you mean by Menus should dynamically come from the xml / properties file ? Are you expecting the XML to be generated once for the site, to be different (but largely static) for each page, or to vary between requests even for the same page? Are you expecting the page content to also be generated from this data?

Are you looking for a Java/servlet solution, a Java/applet solution, or another client-side approach such as Javascript or Flash?

There are endless questions - the more you can help us understand your needs, the more we might be able to help with specific suggestions.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
First of all, what sort of "menu" are you interested in creating - site navigation, domain navigation, loging/logout/search etc., image buttons, expanding tree, and so on.
I am interested in site navigation meu. Her menus should display based on the users role.
Second, please exapand what you mean by Menus should dynamically come from the xml / properties file ? Are you expecting the XML to be generated once for the site, to be different (but largely static) for each page, or to vary between requests even for the same page? Are you expecting the page content to also be generated from this data?
XML should vary between requests even for the same page. Yes, page content also generated from this data.
Are you looking for a Java/servlet solution, a Java/applet solution, or another client-side approach such as Javascript or Flash?
I am looking for jsp solution.
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
Hi Frank Carver, any update ?
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
It sounds to me that you need to do an XSLT transformation to convert your XML into an HTML fragment which can be placed in your web page by your JSP.

Your oringinal question was for open source tools, so you probably need an open source XSLT processor (such as saxon or xalan). Depending on which container you are using, it may make XSLT processing services available to your application already.

If you are unfamiliar with XSLT, you may like to try an XSLT IDE for experimentation to generate your XSLT transformation script. Personally I have always developed my XSLT in a regular text editor, but that can be scary and frustrating.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Menu Design