Anshul Dutta wrote:

> Hi group,
> I hope the question is clear from the subject.
> I just wanted to know if the request object, created by the jsp engine from
> the parameters sent by the browser can be manipulated by the application
> developer. I mean if the client sent in his name as xyz, I can change it to
> abc, of course in the request object itself, not outside. :-))

At the application level (in other words, inside your servlet) you can only do
things that are defined in the API of ServletRequest and HttpServletRequest.  That
means you can modify request *attributes*, but not request *parameters*, or any of
the other things that you can "get" but not "set".

In the servlet 2.3 API, there is a new advanced programming technique called
filters which would let you "wrap" the incoming request with your own custom
implementation, and you could therefore do things like this in a Filter.  But, even
in a servlet container supporting 2.3 you could not do this inside your servlet --
only in a filter.

>
> Hope I will get some response on this unlike couple of other queries that I
> requested earlier.
>

Two things will help this a lot:

* Ask on-topic questions, after doing basic research in the
  archives.  (I don't know if you are one of the people that asks
  questions about JavaScript or JDBC here, but you'll never
  get an answer from me on that stuff here).

* Create a new message, instead of replying to an old one and
  changing the headers (convenient because it picks up the
  mailing list address for you).  Like many people, I have my
  mail reader set to present messages in "threaded" order.  When
  you reply to an existing message, that causes your message to
  be nested inside a thread, instead of being sorted at the top level.
  This makes your message much less visible, and more likely
  to be missed, even if it is on topic.

That all being said, people who answer questions on mailing lists like this are
volunteers, doing so of their own free will and accord.  You should appreciate help
when it is given, rather than resenting when it is not.

Craig McClanahan

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to