• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Unable to get the chackbox array values in Servlet file

 
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic