wood burning stoves 2.0*
The moose likes Servlets and the fly likes Unable to get the chackbox array values in Servlet file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Unable to get the chackbox array values in Servlet file" Watch "Unable to get the chackbox array values in Servlet file" New topic
Author

Unable to get the chackbox array values in Servlet file

Rajkumar balakrishnan
Ranch Hand

Joined: May 29, 2008
Posts: 445

Hi friends,
I am developing an Web Application using JSP/Servlet. I just implemented a new module called, User Registration. The Admin can able to view all the pending user requests. For that, i use userpending.jsp page, in which all the pending users were been displayed. The admin provided with two options one to approve the user, or deny the request. When user clicks the approve button after selecting the user(s), it gets added to main table and get deleted from temp table. But when he clicks the Reject button, its not working. I am using AJAX to do this .

Infront of each and every user request,that was displayed in a jsp page, i put a checkbox and assign them the value of userid of that particular entry. So that we can able to get the value to do some DB work in servlet.
The problem is i am unable to get the checkbox values in Servlet file for rejecting the request.
But i am able to get that in Servlet file
In that jsp pages action attribute i put the Servlet's name, and i dont think that'll cause any problem.Is that right?

Please help me and let me know whats wrong with my code.

Never try to be a hard-worker. Be a smart-worker.
My Blog
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Rajkumar balakrishnan wrote:
i am unable to get the checkbox values in DenialServlet.java

You need to be more technical. Think and talk like a developer, not as a customer. We´re all developers here.

What happens and what happens not?
Rajkumar balakrishnan
Ranch Hand

Joined: May 29, 2008
Posts: 445

Bauke Scholtz wrote:
You need to be more technical. Think and talk like a developer, not as a customer. We´re all developers here.

What happens and what happens not?


In the DenialServlet.java, whenever i try to get the value of checkbox, it shows null. Why it happens?

And what have i done is, in my jsp page, i put the Servlet to approve user requests name in action attribute of form tag like this


Does it affects the code in anyways?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to get the chackbox array values in Servlet file
 
Similar Threads
Adding new values in Session
page expired when clicking back button of browser.
Page expires on Browser back
Problem in displaying value from session object
how to individually get the data in jsp page