This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to get the chackbox array values in Servlet file

 
Rajkumar balakrishnan
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic