aspose file tools*
The moose likes Struts and the fly likes struts 1- create tab Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts 1- create tab" Watch "struts 1- create tab" New topic
Author

struts 1- create tab

Rajni Patel
Ranch Hand

Joined: Sep 03, 2009
Posts: 84
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

Joined: Oct 29, 2001
Posts: 8971
    
    9

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.


[How To Ask Questions On JavaRanch]
Rajni Patel
Ranch Hand

Joined: Sep 03, 2009
Posts: 84
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

Joined: Nov 24, 2010
Posts: 21
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

Joined: Sep 03, 2009
Posts: 84
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

Joined: Oct 29, 2001
Posts: 8971
    
    9

There are many examples, this one for instance.
Rajni Patel
Ranch Hand

Joined: Sep 03, 2009
Posts: 84
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: struts 1- create tab