Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

custom tag problem - some inconsistency

 
madhuri ponasanapalli
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic