permaculture playing cards*
The moose likes JSF and the fly likes Converting byte array to pdfor any filetype using JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Converting byte array to pdfor any filetype using JSF" Watch "Converting byte array to pdfor any filetype using JSF" New topic
Author

Converting byte array to pdfor any filetype using JSF

Sonara Rahul
Ranch Hand

Joined: Jul 07, 2001
Posts: 60
Hi All,

The below code is working fine in a DynamicProject created in RAD.But in portlet project its not workign.I'm getting null pointer exception for httpresponse,so I made it static in SessionHelper class.Now I get null pointer exception while trying to get ServletoutputStream instance.

My requirement is when I click on the command button or commandLink I'm calling a method which converts byte array to filetype specified.But I get null pointer exception when I try to get servletoutputstream.If someone has faced the same pbm and got the solution please let me know.
I'm posting my code here.





JSF



[/nobr]




Is that something to be added to faces config or where does I go wrong.
PLease help me to solve this pbm.

Thanks,
Sonara.
[ April 05, 2006: Message edited by: Sonara Rahul ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Converting byte array to pdfor any filetype using JSF