Skip to Content
0
Former Member
May 23, 2005 at 07:07 AM

Acess to "HttpServletResponse response" in Web Dynpro to create a PDF-File

34 Views

Hy,

I have a problem with Web Dynpro:

I wrote a Servlet in the "J2EE Development Perspective", which generates a PDF-File. The used PDF-Writer writes it data to the parameter "HttpServletResponse" from the method "doGet".

protected void doGet

(HTTPServletRequest request,

HTTPServletResponse response

)

{.....

PdfWriter.getInstance(

document,

response.getOutputStream()

);

.....

}

So the pdf is directly shown in the browser - OK.

But I want do this directly in the Web Dynpro-Perspective, because I want to write data from the context to the PDF-File.

HOW CAN I ACCESS THE PARAMETER HTTPSERVLETRESPONSE FROM WEB DYNPRO PERSPECTIVE ?