PDA

View Full Version : servlet response in Tab body



coooolmagic
27 Oct 2010, 5:57 AM
hi all

I am trying to display an image (.png) returned by a servlet as response in Tab body. Here is the config:

items:[{
title: 'Display Chart',
autoLoad:{url: 'http://localhost:9080/myservlet/mychart'}
}]

When I access this URL independantly, it shows a proper image. URL: http://localhost:9080/myservlet/mychart

But when i Load this URL in Tab body it only shows ?PNG ->

Please help me how to display an image in tab body if it is getting returned.

plalx
27 Oct 2010, 6:00 AM
Try putting an img tag in the panel's body with the src attribute pointing to your url.

coooolmagic
27 Oct 2010, 6:10 AM
Fantastic! it worked!