|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Problem with tags
Hi. I'm having a problem with my TAG on a JSP page. It seems as if once there's a bug in my tag code, no matter what I do to change the code (including taking all the code out of the TAG so that it does nothing), the tag will never again work on my page. The funny thing is that it starts off working fine. But as I add to the tag and make an error in the java code, the tag never again works. It gives this error:
java.lang.ClassCastException: java.lang.String The thing is that I'm not casting any value. And even when the tag contains nothing in doInitBody() and doAfterBody(), I still get the error. Any ideas? Thanks! |
|
#2
|
|||
|
|||
|
It sounds like it might be an issue with your app server not refreshing resources when they change. I haven't done any tag development, though, so it could be something different.
What app server are you using?
__________________
-james |
|
#3
|
|||
|
|||
|
Im using Tomcat 4. something.
|
|
#4
|
|||
|
|||
|
Try setting the reloadable attribute in your <context> to "true".
This will be in your server.xml file. |
|
#5
|
|||
|
|||
|
I've tried that.
Thanks. |
|
#6
|
|||
|
|||
|
Does the problem go away after you restart the app server? Temporarily, at least.
|
|
#7
|
|||
|
|||
|
No it doesn't.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > Problem with tags |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|