I don't see
any other way to report bugs, so here it is on the mailing
list.
I have been
playing with Ted Husted's Artimus application [I updated to his newest version
created on 10-24-2001]. The application contains the following global
forward:
<forward name="exit" path="http://jakarta.apache.org/"
redirect="true"
/>
On one of the pages [Menu.jsp] there is the following link
tag:
<html:link
forward="exit">EXIT</html:link>
In Camino this <html:link> is listed under Menu.jsp, but when it
is right clicked and "Edit" is selected from the pop-up menu the following error
message appear:
"INTERNAL ERROR: java.lang.NullPointerException - null" [This appeared
twice in a row]
"This path's target is not in Camino. You can edit it only by
drag-and-link on the Navigation Panel."
When I loaded the application into a new Camino project initially I did
get the following warning:
"/pages/Menu.jsp: <html:link> target 'http://jakarta.apache.org/'
is not found."
This does
not appear to be a major issue, because once you click past the error messages
all is fine [no data lost, no crash, etc.]. But I thought I'd mention it
anyway.
If you'd
like to replicate this on your own I made the following changes to a standard
Artimus installation:
web.xml
-
Change:
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>/do/*</url-pattern>
</servlet-mapping>
- to:
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
- Change:
<web-resource-collection>
<web-resource-name>Administrative</web-resource-name>
<url-pattern>/do/admin/*</url-pattern>
</web-resource-collection>
- to:
<web-resource-collection>
<web-resource-name>Administrative</web-resource-name>
<url-pattern>/admin/*</url-pattern>
</web-resource-collection>
Struts-config.xml
- Change all forward to correct action URI
pattern:
<forward name="welcome" path="/do/Menu"
/>
-
to:
<forward name="welcome" path="/Menu.do"
/>
Enjoy...
Nathan
Anderson
