I just tried putting the slash before search in my forward attribute as you
mentioned, but I got the same error. Here's my struts-config.xml.
<?xml version="1.0"?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
<struts-config>
<!-- Form Beans Configuration -->
<form-beans>
<form-bean name="searchForm"
type="com.jamesholmes.minihr.SearchForm"/>
</form-beans>
<!-- Global Forwards Configuration -->
<global-forwards>
<forward name="search" path="/search.jsp"/>
</global-forwards>
<!-- Action Mappings Configuration -->
<action-mappings>
<action path="/search"
type="com.jamesholmes.minihr/SearchAction"
name="searchForm"
scope="request"
validate="true"
input="/search.jsp">
</action>
</action-mappings>
<!-- Message Resources Configuration -->
<message-resources
parameter="com.jamesholmes.minihr.MessageResources"/>
</struts-config>
"Pierre Thibaudeau"
<pierre.thibaudeau@
gmail.com> To
"Struts Users Mailing List"
01/18/07 02:37 PM <user@(protected)>
cc
Please respond to Subject
"Struts Users Re: <html:link forward="search">
Mailing List" causing Exception in JSP
<user@(protected)
.org>
Hi Patrick,
Have you tried putting a slash:
<html:link forward="/search">
If that doesn't solve your problem, I suspect that you would need to post
the content of your struts-config.xml file...
Good luck!
Pierre
2007/1/18, Patrick.Grimard@(protected)>:
>
>
>
org.apache.jasper.JasperException: Exception in JSP: /index.jsp:15
>
> 12: <hr width="100%" noshade="true">
> 13:
> 14: • Add an Employee<br />
> 15: • <html:link forward="search">Search for Employees</html:link><br
> />
> 16:
> 17: </body>
> 18: </html:html>
...
root cause
>
>
java.lang.NullPointerException: Module 'null' not found.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)