• Post Reply Bookmark Topic Watch Topic
  • New Topic

About catching error  RSS feed

 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the code i tried



The error message is not getting printed.

what is the problem here?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is my version of your test:



It does the expected:


An exception of type has java.lang.ArithmeticException occurred.
The message is: / by zero
 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the container you are using?

mine is tomcat 5.0.28.

i did not get anything displayed.

this is what i executed. the copy of the code you sent me.



 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat 5.0.25

What does a 'view source' show is being sent to the browser?
 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


This is what the view source showed! Should i include any other jars?

This the content of my WEB-INF/lib :

[aruljose@aruljose lib]$ ls
commons-beanutils-1.6.1.jar commons-digester.jar commons-logging-1.0.3.jar jakarta-oro.jar mysql-connector-3.0.8.jar
commons-collections-2.1.jar commons-fileupload.jar commons-validator.jar jstl.jar standard.jar
commons-dbcp-1.2.1.jar commons-lang-2.0.jar c.tld log4j-1.2.8.jar struts.jar



[ July 15, 2005: Message edited by: Arul Jose ]
[ July 15, 2005: Message edited by: Arul Jose ]
 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i found the basic problem. few days back, i tried an example using taglib and EL.
it was working fine when i tried.

now the EL is not working i dont know what happened in between.

This is the example
---------------------


DiceRoller.java




myFunctions.tld



TestBean.jsp



This is the output
------------------

${mine:rollit()}
[ July 15, 2005: Message edited by: Arul Jose ]
 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have wasted a 2 full working days on this.can anybody help.

jose.
 
Sushma Sharma
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i hope you haven't turned off EL in your deployment descriptor web.xml
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!