We are using Servlet 2.3.
I could not get config="${pageContext.request.contextPath}/resources/menu/xtree.htm", config='<%= request.getContextPath() + "/resources/menu/xtree.htm" %>', or even config="/testapp/resources/menu/xtree.htm. The ${} variable failed. The other two tries produced this example:
[2005-11-21 19:44:39,540] ERROR ServletException in '/pages/tiles/side_secure.jsp': Error initializing Velocity: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/testapp/resources/menu/xtree.htm'
javax.servlet.ServletException: javax.servlet.jsp.JspException: Error initializing Velocity: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/testapp/resources/menu/xtree.htm'
The only thing that worked under tomcat was config="../../resources/menu/xtree.htm". But this will not work under WAS. Other than testing to see what the kind of server deployed, I don't know how to handle this. My dev env is Tomcat 5 and deployment env is WAS on AIX.
Any suggestions from anyone would help.
Kevin
-------------- Original message --------------
> That should work, since it's more of a JSP feature than a Struts Menu
> one. Are you using Servlet 2.4? If so, you can probably use
> something like this:
>
> src=""
>
> Matt
>
> On 11/21/05, Kevin Drennen ([EMAIL PROTECTED])
> <[EMAIL PROTECTED]>wrote:
> >
> > Can the config attribute in menu:useMenuDisplayer accept a syntax like
> > src=""/resources/menu/xtree.htm" %>">? I am
> > having trouble setting this and I need to point to a directory that is
> > different from where my menu jsp is located. My jsp is located in
> > /pages/tiles vs. the ctree.htm is located in /resources/menu/.
> >
& gt; > I used config="../../resources/menu/xtree.htm" and that
> > worked for Tomcat 5.x but not WAS 6. It gave me an error stating that the
> > resource could not be found.
> >
> > Any help would be appreciative.
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
> Register for a JBoss Training Course. Free Certification Exam
> for All Training Attendees Through End of 2005. For more info visit:
> http://ads.osdn.com/?ad_idv28&alloc_id845&op ick
> _______________________________________________
> struts-menu-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
