This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes error page not shown Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "error page not shown" Watch "error page not shown" New topic
Author

error page not shown

Prabodhini Gatthu
Greenhorn

Joined: Nov 10, 2003
Posts: 7
Hi All
I am having a flash object in html
The source for this object is a servlet which generates the data to be shown in that object
Now problem is that if servlet is unable to generate proper data then an exception is thrown and error page is sent to the browser.
Since browser makes it ready to accept flash object, the error page is executed but not shown on screen.
Any idea to solve this??? :roll:
Tim Baker
Ranch Hand

Joined: Oct 04, 2003
Posts: 541
ok so what sort of error page are we talking about? is this one generated by the container because there was an exception? is this an HTML error page specified in the container config? or is this some HTML error generated by your servlet itself?
if you have set the content type to be shockwave flash but you want to change your mind and send HTML instead then someone said recently in the thread that you can use response.reset to set your content type again.


Kim Jong II (North Korea's Dear Leader) said:Nuclear weapons don't kill people, people kill people.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
Can you make up the equivalent of an error page as Flash data and send that instead?
Bill
 
jQuery in Action, 2nd edition
 
subject: error page not shown
 
Similar Threads
Data re-added when user clicks refresh
how to invoke errors.clear() from javascript
response committed at which line ??
ServletException
problem using generics jdk1.5 in jsp