You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Tomas Jucius <en...@gmail.com> on 2005/06/02 10:59:54 UTC

Bug in RequestContext ???? Tapestry 3.0.3

Then the request is form/multipart-data, why I can't still access service name?

Shouldn't this method return service name in both situations?



  public String getParameter(String name)
    {
        IMultipartDecoder decoder = getDecoder();
        if (decoder != null)
            return decoder.getString(_request, name);

        return _request.getParameter(name);
    }

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


Re: Bug in RequestContext ???? Tapestry 3.0.3

Posted by Howard Lewis Ship <hl...@gmail.com>.
That should be working; that is, be sure to use
IRequestCycle.getParameter(), not HttpServletRequest.getParameter().

On 6/8/05, Tomas Jucius <en...@gmail.com> wrote:
> I'd like to ask again.. It's important for my project..
> 
> 
> Then the request is form/multipart-data, why I can't still access service name?
> 
> Shouldn't this method return service name in both situations?
> 
> 
> 
>   public String getParameter(String name)
>     {
>         IMultipartDecoder decoder = getDecoder();
>         if (decoder != null)
>             return decoder.getString(_request, name);
> 
>         return _request.getParameter(name);
>     }
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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


Bug in RequestContext ???? Tapestry 3.0.3

Posted by Tomas Jucius <en...@gmail.com>.
I'd like to ask again.. It's important for my project..


Then the request is form/multipart-data, why I can't still access service name?

Shouldn't this method return service name in both situations?



  public String getParameter(String name)
    {
        IMultipartDecoder decoder = getDecoder();
        if (decoder != null)
            return decoder.getString(_request, name);

        return _request.getParameter(name);
    }

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