Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: <html:link forward="search"> causing Exception in JSP

Patrick Grimard

2007-01-18

Replies:

I believe I found the source of my problems. I was flipping back and forth
between the mailreader example and the app I was working on when something
caught my eye in the web.xml file.

Here's what the mailreader had for <servlet-class> in the servlet config:
org.apache.struts.action.ActionServlet

Here's what I had in my app for <servlet-class> in the servlet config:
org.apache.struts.ActionServlet

enough said...

Patrick Grimard
M.I.S.
XTL Transport Inc.
T. (514) 636-1499 Ext. 5991
T. (800) 636-2138 Ext. 5991
F. (514) 636-5700


                                                   
        "Pierre Thibaudeau"                                
        <pierre.thibaudeau@                                
        gmail.com>                                    To
                          "Struts Users Mailing List"        
        01/18/07 02:58 PM       <user@(protected)>          
                                                  cc
                                                   
        Please respond to                           Subject
          "Struts Users        Re: <html:link forward="search">    
          Mailing List"        causing Exception in JSP          
        <user@(protected)                                
            .org>                                    
                                                   
                                                   
                                                   
                                                   




I believe your global forward should point onto /search.do (which is the
ActionMapping whose path is defined as "/search" further down in your
struts-config.xml:

<global-forwards>
  <forward name="search" path="/search.do"/>
</global-forwards>

Everything else in your struts-config-xml seems to be fine. Does that help?


2007/1/18, Patrick.Grimard@(protected)>:
>
>  <!-- Global Forwards Configuration -->
>  <global-forwards>
>   <forward name="search" path="/search.jsp"/>
>  </global-forwards>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.