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. Advertisements

  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. Advertisements

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,498
    Kim Andreassen
    Jul 31, 2003
  2. Raoul Markus

    parameter in HttpServlet.doGet

    Raoul Markus, Aug 21, 2003, in forum: Java
    Replies:
    0
    Views:
    815
    Raoul Markus
    Aug 21, 2003
  3. Eric
    Replies:
    1
    Views:
    960
    Anton Spaans
    Feb 12, 2004
  4. news.amnet.net.au
    Replies:
    1
    Views:
    1,135
    Sudsy
    Sep 15, 2004
  5. Jason
    Replies:
    3
    Views:
    16,155
    Ryan Stewart
    Feb 20, 2005
  6. Robert Maas, see http://tinyurl.com/uh3t

    Question about invoking HttpServlet on Linux, by URL or via JSP

    Robert Maas, see http://tinyurl.com/uh3t, May 11, 2005, in forum: Java
    Replies:
    3
    Views:
    582
    John Bailo
    May 12, 2005
  7. Marko Langbein

    Tomcat and HTTPServlet destroy Problem

    Marko Langbein, Jun 17, 2005, in forum: Java
    Replies:
    5
    Views:
    4,492
    Alan Krueger
    Jun 21, 2005
  8. Greg Peters

    JSP or httpservlet for Java spider?

    Greg Peters, Dec 24, 2005, in forum: Java
    Replies:
    2
    Views:
    778
    John C. Bollinger
    Dec 26, 2005
Loading...