You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by fea jabi <zy...@hotmail.com> on 2015/08/21 08:06:27 UTC
Struts2 tabbed panel not working
Using Struts2.3 . Using the below code to display the tabbed panel but it's not working. What am I missing in this? All I see is some text of Tab1 Tab2 on screen. no css is applied. Have struts2-dojo-plugin in build path. What else do I need?
Using struts2 tiles too. Any help is appreciated.
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <META HTTP-EQUIV="Expires" CONTENT="0"> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-store"> <s:head/> <sx:head/>
<link rel="stylesheet" type="text/css" href="theme/test.css"> <script src="scripts/test.js" /></script> </head>
<body>
<s:form>
<sx:tabbedpanel id="tabContainer">
<sx:div label="Tab 1">Tab 1</sx:div>
<sx:div label="Tab 2">Tab 2</sx:div>
</sx:tabbedpanel>
</s:form>
</body>
</html>
RE: Struts2 tabbed panel not working
Posted by Martin Gainty <mg...@hotmail.com>.
you'll need to coordinate the URI of the taglib specified in jsp with location of the struts-dojo-tags.tld
assuming struts-dojo-tags.tld is located in folder WEB-INF
insert these 4 lines before </webapp> in web.xml
<jsp-config>
<taglib-uri>/struts-dojo-tags</taglib-uri>
<taglib-location>/WEB-INF/struts-dojo-tags.tld</taglib-location>
</jsp-config>
...
</web-app>
Martin
> From: zyxrm@hotmail.com
> To: user@struts.apache.org
> Subject: RE: Struts2 tabbed panel not working
> Date: Fri, 21 Aug 2015 03:41:14 -0400
>
> Thanks, got this after using the struts2-jquery-plugin.
>
> > From: zyxrm@hotmail.com
> > To: user@struts.apache.org
> > Subject: RE: Struts2 tabbed panel not working
> > Date: Fri, 21 Aug 2015 02:20:26 -0400
> >
> > Thanks, for your reply.
> >
> > sorry, I saw an example on web and tried that. What do I use then? Any example link you can provide please?
> >
> >
> >
> > > Date: Fri, 21 Aug 2015 02:13:01 -0400
> > > Subject: Re: Struts2 tabbed panel not working
> > > From: davelnewton@gmail.com
> > > To: user@struts.apache.org
> > >
> > > Why are you using the long-deprecated Dojo tags?
> > > On Aug 21, 2015 2:06 AM, "fea jabi" <zy...@hotmail.com> wrote:
> > >
> > > > Using Struts2.3 . Using the below code to display the tabbed panel but
> > > > it's not working. What am I missing in this? All I see is some text of Tab1
> > > > Tab2 on screen. no css is applied. Have struts2-dojo-plugin in build path.
> > > > What else do I need?
> > > >
> > > > Using struts2 tiles too. Any help is appreciated.
> > > >
> > > > <%@ taglib prefix="s" uri="/struts-tags" %>
> > > >
> > > > <%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
> > > >
> > > > <html>
> > > >
> > > > <head>
> > > >
> > > > <meta http-equiv="Content-Type" content="text/html;
> > > > charset=UTF-8"> <META HTTP-EQUIV="Expires" CONTENT="0">
> > > > <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META
> > > > HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> <META
> > > > HTTP-EQUIV="Cache-Control" CONTENT="no-store"> <s:head/>
> > > > <sx:head/>
> > > >
> > > > <link rel="stylesheet" type="text/css"
> > > > href="theme/test.css"> <script src="scripts/test.js" /></script>
> > > > </head>
> > > >
> > > > <body>
> > > > <s:form>
> > > > <sx:tabbedpanel id="tabContainer">
> > > >
> > > > <sx:div label="Tab 1">Tab 1</sx:div>
> > > >
> > > > <sx:div label="Tab 2">Tab 2</sx:div>
> > > >
> > > > </sx:tabbedpanel>
> > > >
> > > > </s:form>
> > > > </body>
> > > > </html>
> > > >
> > > >
> > > >
> >
>
RE: Struts2 tabbed panel not working
Posted by fea jabi <zy...@hotmail.com>.
Thanks, got this after using the struts2-jquery-plugin.
> From: zyxrm@hotmail.com
> To: user@struts.apache.org
> Subject: RE: Struts2 tabbed panel not working
> Date: Fri, 21 Aug 2015 02:20:26 -0400
>
> Thanks, for your reply.
>
> sorry, I saw an example on web and tried that. What do I use then? Any example link you can provide please?
>
>
>
> > Date: Fri, 21 Aug 2015 02:13:01 -0400
> > Subject: Re: Struts2 tabbed panel not working
> > From: davelnewton@gmail.com
> > To: user@struts.apache.org
> >
> > Why are you using the long-deprecated Dojo tags?
> > On Aug 21, 2015 2:06 AM, "fea jabi" <zy...@hotmail.com> wrote:
> >
> > > Using Struts2.3 . Using the below code to display the tabbed panel but
> > > it's not working. What am I missing in this? All I see is some text of Tab1
> > > Tab2 on screen. no css is applied. Have struts2-dojo-plugin in build path.
> > > What else do I need?
> > >
> > > Using struts2 tiles too. Any help is appreciated.
> > >
> > > <%@ taglib prefix="s" uri="/struts-tags" %>
> > >
> > > <%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
> > >
> > > <html>
> > >
> > > <head>
> > >
> > > <meta http-equiv="Content-Type" content="text/html;
> > > charset=UTF-8"> <META HTTP-EQUIV="Expires" CONTENT="0">
> > > <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META
> > > HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> <META
> > > HTTP-EQUIV="Cache-Control" CONTENT="no-store"> <s:head/>
> > > <sx:head/>
> > >
> > > <link rel="stylesheet" type="text/css"
> > > href="theme/test.css"> <script src="scripts/test.js" /></script>
> > > </head>
> > >
> > > <body>
> > > <s:form>
> > > <sx:tabbedpanel id="tabContainer">
> > >
> > > <sx:div label="Tab 1">Tab 1</sx:div>
> > >
> > > <sx:div label="Tab 2">Tab 2</sx:div>
> > >
> > > </sx:tabbedpanel>
> > >
> > > </s:form>
> > > </body>
> > > </html>
> > >
> > >
> > >
>
RE: Struts2 tabbed panel not working
Posted by fea jabi <zy...@hotmail.com>.
Thanks, for your reply.
sorry, I saw an example on web and tried that. What do I use then? Any example link you can provide please?
> Date: Fri, 21 Aug 2015 02:13:01 -0400
> Subject: Re: Struts2 tabbed panel not working
> From: davelnewton@gmail.com
> To: user@struts.apache.org
>
> Why are you using the long-deprecated Dojo tags?
> On Aug 21, 2015 2:06 AM, "fea jabi" <zy...@hotmail.com> wrote:
>
> > Using Struts2.3 . Using the below code to display the tabbed panel but
> > it's not working. What am I missing in this? All I see is some text of Tab1
> > Tab2 on screen. no css is applied. Have struts2-dojo-plugin in build path.
> > What else do I need?
> >
> > Using struts2 tiles too. Any help is appreciated.
> >
> > <%@ taglib prefix="s" uri="/struts-tags" %>
> >
> > <%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
> >
> > <html>
> >
> > <head>
> >
> > <meta http-equiv="Content-Type" content="text/html;
> > charset=UTF-8"> <META HTTP-EQUIV="Expires" CONTENT="0">
> > <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META
> > HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> <META
> > HTTP-EQUIV="Cache-Control" CONTENT="no-store"> <s:head/>
> > <sx:head/>
> >
> > <link rel="stylesheet" type="text/css"
> > href="theme/test.css"> <script src="scripts/test.js" /></script>
> > </head>
> >
> > <body>
> > <s:form>
> > <sx:tabbedpanel id="tabContainer">
> >
> > <sx:div label="Tab 1">Tab 1</sx:div>
> >
> > <sx:div label="Tab 2">Tab 2</sx:div>
> >
> > </sx:tabbedpanel>
> >
> > </s:form>
> > </body>
> > </html>
> >
> >
> >
Re: Struts2 tabbed panel not working
Posted by Dave Newton <da...@gmail.com>.
Why are you using the long-deprecated Dojo tags?
On Aug 21, 2015 2:06 AM, "fea jabi" <zy...@hotmail.com> wrote:
> Using Struts2.3 . Using the below code to display the tabbed panel but
> it's not working. What am I missing in this? All I see is some text of Tab1
> Tab2 on screen. no css is applied. Have struts2-dojo-plugin in build path.
> What else do I need?
>
> Using struts2 tiles too. Any help is appreciated.
>
> <%@ taglib prefix="s" uri="/struts-tags" %>
>
> <%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
>
> <html>
>
> <head>
>
> <meta http-equiv="Content-Type" content="text/html;
> charset=UTF-8"> <META HTTP-EQUIV="Expires" CONTENT="0">
> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META
> HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> <META
> HTTP-EQUIV="Cache-Control" CONTENT="no-store"> <s:head/>
> <sx:head/>
>
> <link rel="stylesheet" type="text/css"
> href="theme/test.css"> <script src="scripts/test.js" /></script>
> </head>
>
> <body>
> <s:form>
> <sx:tabbedpanel id="tabContainer">
>
> <sx:div label="Tab 1">Tab 1</sx:div>
>
> <sx:div label="Tab 2">Tab 2</sx:div>
>
> </sx:tabbedpanel>
>
> </s:form>
> </body>
> </html>
>
>
>