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

Menu in struts2

sam raghav
Greenhorn

Joined: Jul 10, 2009
Posts: 10
Hi all,

How could I create "menu" in Struts2 ?

Thanks and regards
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Depends; in general the same way you would for any other web application. There are *many* ways to go about it.
sam raghav
Greenhorn

Joined: Jul 10, 2009
Posts: 10
Thanks for the reply.
As I have seen in the following thread http://www.nabble.com/struts-menu,-struts2-and-actions-td13061256.html that I cannot call an action from jsp pages within the struts menu.

As my all jsp are under WEB-INF so it cannot be directly accessed. As I have not implemented yet in struts2, so just I want to know its credibility.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

That thread says Struts Menu doesn't support Ajax, and the most recent messages are a year-and-a-half old.
sam raghav
Greenhorn

Joined: Jul 10, 2009
Posts: 10
Thanks David.

I have solved it by calling action instead of calling jsp in menu-config.xml. Is it the right way to do that?

<Item name="TDLnewcase" title="CASE" image="images/case-new.png"
location="mainContents/front.action"/>
 
Consider Paul's rocket mass heater.
 
subject: Menu in struts2
 
Similar Threads
Iterate HashMap in jsp - Struts2
Struts2/JQuery
Struts2 menu
struts2 json problem
Menu implementation in Struts2