aspose file tools*
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
Author

custom tag problem - some inconsistency

madhuri ponasanapalli
Greenhorn

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 Permit_jsp.java is generated and has the java code in it.
But sometimes I get the null pointer exception at the jsp level , becasue the Permit _jsp.java 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
Marshal

Joined: Jan 10, 2002
Posts: 61232
    
  66

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