I see what you mean. The encoding of the response could be wrong in
case of REDIRECT_TO_BUFFER and the buffer to be returned, correct? I
didn't find any other case, where it is wrong. Did you?

public final void doGet(..)     
{
    // try to see if there is a redirect stored 
    if (webApplication.getSettings().getRenderStrategy() ==
ApplicationSettings.REDIRECT_TO_BUFFER)
    {
       ....
         if (bufferedResponse != null)
         {
              // got a buffered response; now write it
              PrintWriter writer = servletResponse.getWriter();
              
servletResponse.setContentLength(bufferedResponse.getContentLength());
              servletResponse.setContentType(bufferedResponse.getContentType());
               ...

Juergen


On 7/7/05, Jan Bares <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> it seems that WicketServlet.doGet() has serious bug. The
> servletResponse.setContentType() should be called before
> servletResponse.getWriter() otherwise the writer will be in ISO-8859-1, see
> http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletResponse.html
> 
> Jan
> 
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to