• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Menu in struts2

 
sam raghav
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

How could I create "menu" in Struts2 ?

Thanks and regards
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends; in general the same way you would for any other web application. There are *many* ways to go about it.
 
sam raghav
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That thread says Struts Menu doesn't support Ajax, and the most recent messages are a year-and-a-half old.
 
sam raghav
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"/>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic