• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp:forward leading to wierd error  RSS feed

 
Rudy B Baylor
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using jsp:forward tag in a very trivial jsp, but it is giving a wierd error as shown in the code below

The jsp(name: gen_note.jsp) which is serving the request has a very short an simple code as under




The exception being thrown is as under



The only reason I was able to conjure up was that the file path might be wrong, but that didn't work.

I feel deeply disappointed that even after so many years, the Exception handling of the jsp tech does not look to help the user !!!. I mean how in the world can an NPE thrown from a library (unless it is a bug !!). I am looking at the prospect of going through the library code which leaves me deeply disappointed and let down on using this popular tag library.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66258
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't see anything that would result in that error, but why are you forwarding from a JSP page in the first place, especially after emitting some template text? In this day and age, that a really archaic way to structure things.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66258
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P.S. What web container? I just tried a sample page similar to your code and it works just fine under Tomcat and Resin.
 
Rudy B Baylor
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
The jsp is not actually production jsp but a test jsp created for locating the problem.
The Server is Websphere Application Server version 6.0 and the jakarta taglib version is 1.0.1. From your response, it seems the Appln Server might be playing some mischief. Any pointers on what will be good starting point for locating that ?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66258
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remember that the "standard tags" you are disappointed with are implemented by the vendor. So if something that works on other app servers doesn't work on WebSphere, well...

In any case, I'm moving this to the WebSphere forum for further discussion.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!