File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Can't get Struts-Menu  to work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Can Watch "Can New topic
Author

Can't get Struts-Menu to work

Pia Pringle
Greenhorn

Joined: Jun 05, 2006
Posts: 21
Hi,

I'm having great difficulty getting struts-menu to work. I've put the struts-menu jar in the WEB-INF/lib folder. All the necessary accompanying jars are present. But on loading the following jsp I get this error message:

/pia.jsp(1): Could not parse deployment descriptor: java.io.IOException: cannot resolve 'http://struts-menu.sf.net/tag' into a valid tag library
probably occurred due to an error in /pia.jsp line 1:
<%@ taglib uri="http://struts-menu.sf.net/tag" prefix="menu" %>


My JSP is simple. It is the following :

<%@ taglib uri="http://struts-menu.sf.net/tag" prefix="menu" %>

<html>
<menu:useMenuDisplayer name="TabbedMenu"
bundle="org.apache.struts.action.MESSAGE">
<menu:displayMenu name="Home"/>
<menu:displayMenu name="About"/>
</menu:useMenuDisplayer>
</html>

In my WEB.xml file I have the following :

<taglib>
<taglib-uri>/WEB-INF/struts-menu.tld</taglib-uri>
<taglib-locationhttp://struts-menu.sf.net/tag</taglib-location>
</taglib>

Is this correct ? What am I doing wrong ?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Moving to the Struts forum...


GenRocket - Experts at Building Test Data
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60998
    
  65

"Pia Pia",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Pia Pringle
Greenhorn

Joined: Jun 05, 2006
Posts: 21
Done,

Can I now get a relevant response to my question
Pia Pringle
Greenhorn

Joined: Jun 05, 2006
Posts: 21
Now I'm getting the following error :

javax.servlet.jsp.JspException: The menu repository could not be found

What is going on ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60998
    
  65

Originally posted by Pia:
Done


Not done. Please actually read my post.

This is your second warning.
Pia Pringle
Greenhorn

Joined: Jun 05, 2006
Posts: 21
Happy Now ???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can't get Struts-Menu to work