Can you tell us what you are trying to achieve?  There is almost
certainly an alternative way of getting to the same end without having
to copy requests but, until you give us a bit more detail, we can't help
you.

We have  a software project up  an running but  some modifications are
required.

The  requirement  of  making  a  copy  of  the  HttpServletRequest  is
generated  by the fact  that the  former programmers  have used  (in a
natural manner):

1) the HttpServletRequest.setAttributes()  to  send data  to the  jsp
   pages  creating  the response.  ( These    data   is  the  servlet
   computation result).

2) within  the jsp  pages creating the  result various methods  of the
   HttpServletRequest (other than HttpServletRequest.getAttributes() )
   object are used to get information from the request object.

Now there  is the requirement that  in the second request  sent to the
servlet we  have to  use the computation  result of the  first request
(that   is    those   data   that    you   could   find    using   the
HttpServletRequest.getAttributes() applied to  the request object sent
in the first request ) to create the final HTML page.

Let's supose now  that in the second request we have  a way of finding
the computation  result of  the first request.  This is not  enough to
satisfy the second request because in order to render the HTML page of
the second request  we also need other information  which can be found
in   the    request   object    sent   during   the    first   request
(e.g. HttpServletRequest.getParameter() );

I hope that I was explicit enough.

Final word: We  knew it from the start that  a solution exists (saving
            and using all  the data that we need between the  requests
            but  this  is  not  an  easy  task  now  since  we have to
            analyze - and  to write - a lot of code),  but  since  all
            this  data can be found  in the request object sent to the
            servlet with the  first  request we thought  that making a
            copy of  the request object should  be very easy (and very
            natural at the same time).

Thx
C r i s t i   Z o i c a s.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to