Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Problem with RequestDispatcher
Joined: Feb 01, 2005
Jun 27, 2005 00:33:00
Hi to ALL
Friends i have some problem regarding
on the base of code i am forwarding my message to another jsp page from
and i use code
req.setAttribute("message","No Record Found");
rd = req.getRequestDispatcher("../Error.jsp");
but when i run servlet this give Java.lang.NullPointerException on line rd.forward(req,res);
ie show rd is null;
it happens only first time and when i refresh the page it gives me proper output.
Please tell me why is this giving
at first time and how could i prevent it.
Joined: Aug 15, 2004
Jun 27, 2005 06:27:00
rd = req.getRequestDispatcher("/Error.jsp");
subject: Problem with RequestDispatcher
IllegalStateException occur with RequestDispatcher
Login page not completely loading after RequestDispatcher.forward is used
Method call with Parameter
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014