This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes JSP and the fly likes custom tag problem - some inconsistency Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "custom tag problem - some inconsistency" Watch "custom tag problem - some inconsistency" New topic

custom tag problem - some inconsistency

madhuri ponasanapalli

Joined: Dec 05, 2008
Posts: 3
Hi ,

I have implemented JSP custom tags for cascading dropdown . I have

1. TLD file
2. Tag handler class
3. JSP implementing the tag (Permit.jsp)

Sometimes everything compiles and jsp has three cascading dropdown boxes and is generated and has the java code in it.
But sometimes I get the null pointer exception at the jsp level , becasue the Permit file is completely empty.

Below is the error generated
- ERROR-the file '\myPages\Permit.jsp' generated the following general exception: java.lang.NullPointerException

---------------TLD FILE---------------------------------------------

-------------------------------JSP FILE-----------------------------------

I am using Tomcat 4.1.36 and JSP 1.2

Is there any obvious explation for why my code is behaving like this.

Thank you for your help

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 62139

Please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.

You can go back and change your post to add code tags by clicking the button on your post.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: custom tag problem - some inconsistency