You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sebastian Ho <se...@bii.a-star.edu.sg> on 2004/09/15 09:38:37 UTC

Problem forwarding with Servlet and Struts

Hi

I don't know this is a struts or servlet or my problem.

I am implementing servlet filter. I can access 'index.do' fine before
implementing the filter. After I implemented the filter, a forward to
'index.do' gives me a blank page.

This is the only statement in my doFilter() method.

this.myFilterConfig.getServletContext().getRequestDispatcher("/index.do").forward(request, response);

Anyone experience somethign similar?

Thanks

sebastian Ho


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Problem forwarding with Servlet and Struts

Posted by Bill Siggelkow <bi...@bellsouth.net>.
What's your filter-mapping? Also, can you provide more info on your 
filter? What is it doing?  Why is it forwarding?  Typically a filter 
will simply call 'chain.doFilter(request, response)' to continue normal 
processing.

-Bill Siggelkow

Sebastian Ho wrote:
> Hi
> 
> I don't know this is a struts or servlet or my problem.
> 
> I am implementing servlet filter. I can access 'index.do' fine before
> implementing the filter. After I implemented the filter, a forward to
> 'index.do' gives me a blank page.
> 
> This is the only statement in my doFilter() method.
> 
> this.myFilterConfig.getServletContext().getRequestDispatcher("/index.do").forward(request, response);
> 
> Anyone experience somethign similar?
> 
> Thanks
> 
> sebastian Ho


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org