cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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 ?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

U can't access HttpServletResponse or Request classes in webdynpro perspective so u have to go for J2ee perspective only.

Regards,

Sirisha.