Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

why request object become null when i pass it to servlet ?

843841Oct 24 2007 — edited Oct 25 2007
Hi,

i have a jsp page and i set the parameter to my request obj ( request.setAttribute("totalrecord", totalrecord), and i post to my servlet that look like this

<form name = "form" method = "post" action = "CheckServlet">

in my CheckServlet, i do a request.getAttribute("totalrecord"); but i got a null, why is that so ??

i tried to print out using Sustem.out.println(request.getAttribute("totalrecord")); in my jsp, it has somethg, but when it pass to servlet, it become null ?

could someone pls enlighten me ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 22 2007
Added on Oct 24 2007
12 comments
1,413 views