aspose file tools*
The moose likes Servlets and the fly likes strange.. !! plz help me.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "strange.. !! plz help me.." Watch "strange.. !! plz help me.." New topic
Author

strange.. !! plz help me..

Jack Daniel
Ranch Hand

Joined: Jun 15, 2002
Posts: 163
Well, i'm into something kinda new problem..
here it goes..
Actually, I have a servlet, which works fine when you submit the log-in page..
But you know,.. I have a MENU at the top of the page.. and when you click on it..( linking it to the same servlet ).. it gives a problem..
It's a NULL pointer Exception.. but why..??
here is the problem.. :
Will not all the Queries RUN again..???

servlet runs fine, when form is submitted.. thats the first time servlet runs in the session..
When you click on the MENU item.. i am making it run again..
BUT the results of all the Queries are showing NULL.. why is this happening..???
Am I going somewhere Wrong ..???
Please let me know.. it would be Great !!
Thanks a lot for your help guy(s)/gal(s)
Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
Are you re-executing your Statement and getting a new ResultSet?
Once you've exhausted the ResultSet, result.next() is going to continue to return false.


Ron Newman - SCJP 1.2 (100%, 7 August 2002)
Jack Daniel
Ranch Hand

Joined: Jun 15, 2002
Posts: 163
Thx for your reply..
Yeah I am re-executing my Statement to get a new ResultSet.. Is this Wrong..??
Because before anybody clicks on the MENU-item.. there is a possibility that the Home page ( which i'm linking servlet to, changes )..
So re-executing, Am i doing something wrong..??
plz let me know,... it would be GREAT.. !!
Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
You need to show us more of your code.
Jack Daniel
Ranch Hand

Joined: Jun 15, 2002
Posts: 163
Thanks a lot..
ok i'm enclosing my code.. (most part .. )
just concentrate on the performTask method...
Jack Daniel
Ranch Hand

Joined: Jun 15, 2002
Posts: 163
one more thing..
Dont worry about request.getParameter(" ** ");
Not a problem there..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: strange.. !! plz help me..
 
Similar Threads
Appending the data in frame or popup window
Why am I always getting a new session *
How to calculate the time difference in javascript?
I keep on getting a new session (using WLS 10). how do I keep the previous session?
createProcess error=193, %1 is not a valid win 32 application