gaudi_br
gaudi_br

Reputation: 193

How to replace the implicit pageContext object when converting servlets into Jax-RS web services?

I am dealing with a huge legacy application based on servlets. A whole API has been defined through javabeans to fetch server-side data and manipulate it in the JSPs. In this API the pageContext object gets tossed around, sometimes in order to reference the Request object, sometimes the Response or even the ApplicationContext and Session objects.

I am now writing JAX-RS web services to fetch and manipulate the same data and in an attempt to reuse code I would like to make calls to these javabeans. The problem is that I do not have access to the pageContext object and although I can retrieve the Request object, I am having more trouble with the other elements.

I might be missing a few base concepts that I should know in order to progress, but would someone be able to shed some light on how I could tackle this task?

Thanks in advance

Upvotes: 0

Views: 43

Answers (0)

Related Questions