Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts 1- create tab

 
Rajni Patel
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to create tab in struts1. I google it , and its different way we can create it. Which is the best way to create tab in struts 1.

thanks
 
Joe Ess
Bartender
Posts: 9279
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "best" way is the one that meets your requirements. I've written my own tab code and used JQuery and been satisfied with both.
 
Rajni Patel
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply.

i am using struts1, ejb 3 and oracle. new features I can not add. so with org.apache....'s class , how can I create tab
 
Jaimesh M Ponkia
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont think struts 1 provides any taglibs to create tabbed panel. You can go for creating a custom tab as per your need. As Joe suggested, you can use JQuery/Ajax for the same.
 
Rajni Patel
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So without using jquery, in struts 1 there is no tag library to create tab.

I have to write my own logic, using javascript or whatever , Do i have to create tab?

Do you have any example?

Thanks
 
Joe Ess
Bartender
Posts: 9279
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are many examples, this one for instance.
 
Rajni Patel
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply.

Now My tab is working. Now I have save button outside of tab. means only one save button for all tab.
This is working well.

And also in 3rd tab I want to put one add button. but When I configure in struts-config.xml , But error is coming.

Is anybody have this type of example or guide me.


Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic