|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Tabbed Menu ???Hi, I am new to struts and struts-menu, please I have a question : For example in http://localhost:8084/strutsmenu24/tabbedMenu.jsp in this tabbedMenu.jsp file we have : <div id="content" style="width: 60%"> <h2>CSS Tabs with Submenus</h2> <p> Adapted from <a href="http://www.kalsey.com/tools/csstabs/"> Adam Kalsey's demo</a>. Changes include: </p> <ul> <li>Removed redundant CSS classes - now uses JavaScript, CSS and Cookies to detect which menu should be active.</li> <li>Added XHTML Strict DOCTYPE and adjusted CSS accordingly.</li> <li>Integrated into <a href="http://sf.net/projects/struts-menu"> Struts-Menu</a> as a new displayer (TabbedMenuDisplayer).</li> </ul> <p><strong>How it works</strong><br /><br /> JavaScript is used to set the active menu when the page first loads. It does this by comparing the current location with the href's in the menu's links. Then it uses current.indexOf(eachLink) and matches the first one. If more than one link matches the current link, then the cookie from the last clicked menu is used. <br /><br /> As always, send any comments via e-mail to the <a href="struts-menu-user@... Menu"> struts-menu user mailing list</a>. </p> <p><strong>NOTE:</strong> If you do not have a location/page on your menu, the first item in the submenu is used. This menu does not currently allow for dynamically showing the submenu when you mouseover the tabs, but this could probably be added easily. </p> </div> How to have the content of each submenu clicked to be in that <div id="content ...> </dev> Thank you.
Be a chatter box. Enjoy free PC-to-PC calls with Yahoo! Messenger with Voice. |
|
|
|
Re: Tabbed Menu ???You could use the VelocityDisplayer and the tabbed menu example for
that to have full control over the HTML that's generated. http://demo.raibledesigns.com/struts-menu/velocity-tabs.jsp?Home Matt On 5/22/06, A. Lotfi <majidnakit@...> wrote: > > Hi, > I am new to struts and struts-menu, please I have a question : > > For example in > http://localhost:8084/strutsmenu24/tabbedMenu.jsp > > in this tabbedMenu.jsp file we have : > > <div id="content" style="width: 60%"> > <h2>CSS Tabs with Submenus</h2> > <p> > Adapted from <a > href="http://www.kalsey.com/tools/csstabs/"> > Adam Kalsey's demo</a>. Changes include: > </p> > <ul> > <li>Removed redundant CSS classes - now uses JavaScript, CSS and > Cookies to detect which menu should be active.</li> > <li>Added XHTML Strict DOCTYPE and adjusted CSS accordingly.</li> > <li>Integrated into <a > href="http://sf.net/projects/struts-menu"> > Struts-Menu</a> as a new displayer (TabbedMenuDisplayer).</li> > </ul> > <p><strong>How it works</strong><br /><br /> > JavaScript is used to set the active menu when the page first loads. > It does this by comparing the current location with the href's > in the menu's links. Then it uses current.indexOf(eachLink) and > matches the first one. If more than one link matches the current > link, > then the cookie from the last clicked menu is used. > <br /><br /> > As always, send any comments via e-mail to the > <a > href="mailto:struts-menu-user@...?subject=Tabbed > Menu"> > struts-menu user mailing list</a>. > </p> > <p><strong>NOTE:</strong> If you do not > have a location/page on your menu, the first item in the submenu is > used. > This menu does not currently allow for dynamically showing the > submenu > when you mouseover the tabs, but this could probably be added > easily. > </p> > </div> > > How to have the content of each submenu clicked to be in that > <div id="content ...> > > </dev> > > Thank you. > > > ________________________________ > Be a chatter box. Enjoy free PC-to-PC calls with Yahoo! Messenger with > Voice. > > ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ struts-menu-user mailing list struts-menu-user@... https://lists.sourceforge.net/lists/listinfo/struts-menu-user |
|
|
|
|
| This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. |
<Displayer name="CoolMenu4" type="net.sf.navigator.displayer.CoolMenuDisplayer"/>
To this:<Displayer name="CoolMenu4" type="net.sf.navigator.displayer.CoolMenu4Displayer"/>
Hi,I made the mifration from stuts-menu 2.3 to 2.4 and I hav integrated the coolmenu4 (I was using coolmenu2). I think my configuration is OK :Struts-config.xml :<plug-in className="net.sf.navigator.menu.MenuPlugIn" >
<set-property property="menuConfig" value="/WEB-INF/menu-config.xml"/>
</plug-in>
menu-config.xml:
<?
xml version="1.0" encoding="UTF-8" ?><
MenuConfig><Displayers>
<Displayer name="CoolMenu4"
type="net.sf.navigator.displayer.CoolMenuDisplayer"/>
</Displayers>
<Menus>
<Menu name="DataType" title ="menu.DataMng" toolTip="View">
<Item title="menu.DataType" page ="/Struts/Data/viewListDataType.do"/>
</Menu>
<Menu name="ProcessTemplate" title ="menu.ProcessMng" >
<Item title="menu.ProcessTemplate" page="/Struts/Process/viewListProcessTemplate.do"/>
<Item title="menu.NativeAppTemplate" page="/Struts/Process/viewListNativeAppTemplate.do"/>
</Menu>
</Menus>
</
MenuConfig> my jsp is :<!
DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><%@
taglib uri="http://struts-menu.sf.net/tag " prefix="menu" %><%@
taglib uri="http://struts-menu.sf.net/tag-el " prefix="menu-el" %><
html><%@
page import="wt.org.WTUser"%><
head><title><bean:message key=" webapp.title"/></title>
<script type="text/javascript" src="<%=appPath%>/ressources/js/coolmenus4.js"></ script>
<script type="text/javascript" src="<%=appPath%>/ressources/js/cm_addins.js"></ script>
<link rel="stylesheet" type="text/css" media="screen" href='<%=stylePath%>/global.css' />
<link rel="stylesheet" type="text/css" media="screen" href='<%=stylePath%>/coolmenu.css' />
</
head><
body style="margin-top: 0; margin-left: 0 margin-right: 0" bgcolor= "#6593B5" marginwidth="0" marginheight ="0"><!-- Custom Configuration for this example, must come after body to work in IE -->
<
script type="text/javascript" src="<%= appPath%>/ressources/js/coolmenu4-config.js"></ script><menu:useMenuDisplayer name="CoolMenu4" bundle ="org.apache.struts.action.MESSAGE" >
<menu:displayMenu name="DataType" />
<menu:displayMenu name="ProcessTemplate"/>
</menu:useMenuDisplayer>
</
body></
html>
When I go to the page on the web browser I have the error :
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:393)
at org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.java:234)
at net.sf.navigator.taglib.UseMenuDisplayerTag.doStartTag(UseMenuDisplayerTag.java:223)
at org.apache.jsp.mainMenuAdministration_jsp._jspx_meth_menu_useMenuDisplayer_0(mainMenuAdministration_jsp.java
289)
at org.apache.jsp.mainMenuAdministration_jsp._jspService(mainMenuAdministration_jsp.java:226)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:534)Do you have an idea ?
Cheers,
Julien
This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.
mlotfi wrote:Hi,
I am new to struts and struts-menu, please I have a question :
For example in http://localhost:8084/strutsmenu24/tabbedMenu.jsp
in this tabbedMenu.jsp file we have :
<div id="content" style="width: 60%">
<h2>CSS Tabs with Submenus</h2>
<p>
Adapted from
Adam Kalsey's demo. Changes include:
</p>
<ul>
<li>Removed redundant CSS classes - now uses JavaScript, CSS and
Cookies to detect which menu should be active.</li>
<li>Added XHTML Strict DOCTYPE and adjusted CSS accordingly.</li>
<li>Integrated into
Struts-Menu as a new displayer (TabbedMenuDisplayer).</li>
</ul>
<p><strong>How it works</strong><br /><br />
JavaScript is used to set the active menu when the page first loads.
It does this by comparing the current location with the href's
in the menu's links. Then it uses current.indexOf(eachLink) and
matches the first one. If more than one link matches the current link,
then the cookie from the last clicked menu is used.
<br /><br />
As always, send any comments via e-mail to the
struts-menu user mailing list.
</p>
<p><strong>NOTE:</strong> If you do not
have a location/page on your menu, the first item in the submenu is used.
This menu does not currently allow for dynamically showing the submenu
when you mouseover the tabs, but this could probably be added easily.
</p>
</div>
How to have the content of each submenu clicked to be in that
<div id="content ...>
</dev>
Thank you.
---------------------------------
Be a chatter box. Enjoy free PC-to-PC calls with Yahoo! Messenger with Voice.

| Free Forum Powered by Nabble | Forum Help |