solve my problem
1 posts in topic
Flat View  Flat View

Posted By:   Abhisek_Sinha
Posted On:   Monday, July 15, 2002 05:46 AM

my servlet generates an html form.there are some hidden fields that are used by the servlet to take subsequent actions.If some body saves the source of the form changes the hidden field value,loads in browser and submits the form,my servlet is invoked and it starts servicing with changed parameter value.
The servlet should have done something else and is doing something else.
i want to prevent this,but how ?
solve my problem...
thanks in advance

Re: solve my problem

Posted By:   Stephen_McConnell  
Posted On:   Monday, July 15, 2002 05:57 AM

The only way I can think to do this is to remove the hidden variables.

You then implement a "mediator" design pattern. This means you create a mediator class holding those variables yo need which you instantiate and put either as an attribute in the session (if you need to keep these values throught multiple pages) or put it as an attribute in the request. These
objects are kept with the session, are not visible to the user... etc.

Hope this helps.

Stephen McConnell

About | Sitemap | Contact