PD4ML v4 Forums PD4ML v3 Archived Forums (Read Only) General questions / FAQ need servlet code for converting html string to pdf Re: Re: need servlet code for converting html string to pdf

#29037

You need to pass the session id with request.

The simplest way would be to embed the session ID to the URL:

[language=java:3d15w8pg]URL url = new URL(“http://localhost:8080/xyzweb/faces/templates/includes/report/A104_fv_1.xhtml” +
“;jsessionid=” + request.getSession().getId());[/language:3d15w8pg]

A bit trickier approach is to pass session IDs via cookies.