• 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

About catching error

 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is the code i tried



The error message is not getting printed.

what is the problem here?
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have wasted a 2 full working days on this.can anybody help.

jose.
 
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i hope you haven't turned off EL in your deployment descriptor web.xml
 
It's feeding time! Give me the food you were going to give to this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic