Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need sample code related to Tabbedpanel in struts2

 
lydia edward
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am a new user of Struts 2.
I have a requirement like,there should be a tabbedpanel and by clicking on each tab it should call action classes.
On calling of action classes,it should open different jsp pages within the tabbedpanel area and in those jsp pages,there should be
some button and by clicking these buttons these should again call action classes which should displayed in tabbedpanel area.

Is it possible to call any action on any events like (Onclick(),onselect())?
If yes,please provide me sample code for this.
Please assist any solution/sample code for this design.

Thanks in advance.
Lydia.

 
Joe Ess
Bartender
Pie
Posts: 9264
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the JQuery TabbedPanelTag. Much easier than rolling your own.
 
lydia edward
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.
I am using struts-jquery-tags for tabbedpanel.
Can you please give me some sample code which is using events(onclick(),onselect()) to call the actions.
I am able to call actions by setting in href, but I want to call action classes on some events.

Thanks in advance.
Lydia
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic