There is an "onerror" handler that you can define in the view that is waiting for the "onload" event, but in your case I think it may be that OpenLaszlo or Tomcat doesn't like the formatting of the error message that your servlet generated.  I think you need to make sure your error return is valid html or something. 

Sorry I can't be more helpful, but I'm just starting this phase of my own OpenLaszlo project myself.

Jes Lefcourt wrote:
Hello!
 
Today's problem is that I have a servlet which returns an image.  So, I am using view.setResource() to dynamically set the request URL so that I can include different options in the query parameters.  This works beautifully.
 
However, if the servlet encounters an error, it returns a text message with the error in it.  If this occurs, nothing displays in the Laszlo client.  In the debugger, I have an error:
 
    ERROR:  data conversion error for http://.....
 
My question is: Is there a way I can grab the content of the response in this scenario so that I can display an error message?  Or even just know that an error occured?
 
Thanks!
 
- Jes

_______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user

-- 
Jason Stafford
Principal Developer
Inspiration Software, Inc.
The leader in visual thinking & learning

Introducing INSPIRATION(r) 8, the essential tool to visualize, think, 
organize and learn. Students use Inspiration to plan, research and 
complete projects successfully. Learn more at www.inspiration.com. 

503-297-3004 Extension 119
503-297-4676 (Fax)
9400 SW Beaverton-Hillsdale Highway
Suite 300
Beaverton, OR 97005-3300
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to