File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 63867

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] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: custom tag problem - some inconsistency
It's not a secret anymore!