• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

error-page element in DD issue

 
Ranch Hand
Posts: 292
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could anyone get to teh root of this problem....or is it just that I'm doin' somethin' wrong....at first I thought I am....but then checked it over and over again...I've provided the code ...could someone try it on a system....
I've done nothin' special here but just configured an error page "errorPage.jsp" ....specified the same in the DD....and generating an exception from "test.jsp"....Here's the code:

test.jsp



the DD

errorPage.jsp


Here's what happens when I run the app....it gives me a msg "Page cannot be displayed...Status Code 500...internal server error..."
BUT if I change the code in test.jsp from ${10%0} to ${10/0}(eradicate the error), redeploy and run it(normal execution...it prints infinity), change the code back to ${10%0}(get the error back in) without undeploying the application then it works fine(shows the error page)...Anybody's got a clue??

[ December 07, 2006: Message edited by: Sayak Banerjee ]
[ December 08, 2006: Message edited by: Sayak Banerjee ]
 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In test.jsp,
why is the following line missing ?
 
Sayak Banerjee
Ranch Hand
Posts: 292
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's because there are two ways you can go about doin' the same thin'....using the page directive(using it would override the action of the DD element by the way) as you have mentioned or just using the DD element <error-page>....anyways for me the same thing (as I'd mentioned earlier) happens irrespective of whether I use the directive or declare it in the DD....Now, Celinio, what I'm really interested in knowing first is whether the same thing is happening with you as well....that would help...Thanks for showin' some interest...Awaitin' your reply
 
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its working fine in my coputer.Its displaying the errorPage.jsp

You check the location of your errorPage.jsp.


so it must be in your application directory.

${10/0} will not produce any error. just output infinity.
 
Sayak Banerjee
Ranch Hand
Posts: 292
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yup...I've checked everythin'....it's not happening in my case...but if I eradicate the error ( like if I use ${6/2} instead ) and deploy and run it(it outputs 3) and then put the error generating code( ${10%0} back in) without undeploying it and then run it...it displays the error page...I've got no clue as in why this is happening
 
Sayak Banerjee
Ranch Hand
Posts: 292
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
WOOOAAAHHHHHH!!!....so that's the issue...huh!!...I checked Sreeraj's suggestion on a different thread and tried Mozilla Firefox and it's working fine....Thank God I could finally figure it out after 2 weeks
 
It looks like it's time for me to write you a reality check! Or maybe a tiny ad!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic