HttpServlet implementation in Tomcat 4.1

Discussion in 'Java' started by Laurent Beaubier \(free.fr\), Jul 3, 2003.

  1. Hello,
    I want to modify the parameters of the instance of the implantation of
    HttpRequest given in my sevlet before I do a forward of the request and the
    response to an another servlet.
    But there isn't any setParameter method to do that. So how can I do that?
    Thanks for your answers.
    Laurent Beaubier
     
    Laurent Beaubier \(free.fr\), Jul 3, 2003
    #1
    1. Advertising

  2. Laurent Beaubier \(free.fr\)

    Sudsy Guest

    Laurent Beaubier (free.fr) wrote:
    > Hello,
    > I want to modify the parameters of the instance of the implantation of
    > HttpRequest given in my sevlet before I do a forward of the request and the
    > response to an another servlet.
    > But there isn't any setParameter method to do that. So how can I do that?
    > Thanks for your answers.
    > Laurent Beaubier


    Have you considered extending HttpServletRequestWrapper? It has a nice
    constructor which takes an HttpServerletRequest as an argument. You
    could just override the getParameter* methods and add you own mechanism
    to set or delete the parameters of interest.
     
    Sudsy, Jul 3, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. brijesh

    HTTPSERVLET

    brijesh, Jul 31, 2003, in forum: Java
    Replies:
    1
    Views:
    3,350
    Kim Andreassen
    Jul 31, 2003
  2. Raoul Markus

    parameter in HttpServlet.doGet

    Raoul Markus, Aug 21, 2003, in forum: Java
    Replies:
    0
    Views:
    690
    Raoul Markus
    Aug 21, 2003
  3. Eric
    Replies:
    1
    Views:
    797
    Anton Spaans
    Feb 12, 2004
  4. news.amnet.net.au
    Replies:
    1
    Views:
    941
    Sudsy
    Sep 15, 2004
  5. Marko Langbein

    Tomcat and HTTPServlet destroy Problem

    Marko Langbein, Jun 17, 2005, in forum: Java
    Replies:
    5
    Views:
    4,200
    Alan Krueger
    Jun 21, 2005
Loading...

Share This Page