Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error-page element in DD issue

 
Sayak Banerjee
Ranch Hand
Posts: 292
  • Mark post as helpful
  • send pies
  • 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 ]
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Sreeraj G Harilal
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic