Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can't get Struts-Menu to work

 
Pia Pringle
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Struts forum...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
Pia Pringle
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Done,

Can I now get a relevant response to my question
 
Pia Pringle
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pia:
Done


Not done. Please actually read my post.

This is your second warning.
 
Pia Pringle
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Happy Now ???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic