This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

pop up  RSS feed

 
Jackie Wang
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have posted under scwcd section. I guess that's not a proper place:
I am using:
<%@ page errorPage="/includes/visual/error.jsp" %>
how i can pop up an errorpage instead of forwarding to error page when error occurs?
Thanks!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Short answer - you cant.
Long answer - you can't without some sort of cooperating process on the browser and a complex interaction. I'm assuming a browser popup like a javascript alert is what you want.
Realize that normally a JSP is writing a complete HTML page that will replace whatever is showing on the user's browser - your side has to send some sort of HTML in response to the request.
You could catch all exceptions and write the JavaScript to do a popup with information, but what would the user see when the popup was dismissed?
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!