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

scriplet-UI clash issue

Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
I have a tab panel with 2 tabs....

I have enclosed them with div tag

I have to get data from DB and populate the same data in the drop down boxes of both the tabs

Initially when this jsp is loaded the 1st tab is default to true and I am populating in the drop down of tab1...

For populating data I wrote a scriptlet ,and inside that I called the method for setting data in dropdown (set by an ArrayList)

It's as follows:

below the Select tag for Tab1...





Now I did not end the 'if' loop and went to Tab2's "Select" and below that I ended the if since I should populate the same data in tab2 also...



Is it because it's tab2's div tag and it's territory that's creating the problem?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61010
    
  65

What is a "tab panel"? There is no such native JSP construct.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
Well my application is in struts-2 and used tab panel tag...

it's like this...

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61010
    
  65

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: scriplet-UI clash issue