Retrieving random radio button value

jsp page [code]
//This "upId", is the primary id from the table. So in the loop, the upId, upholidayDate & upholidayDesc iterate accordingly <input type="radio" property="upId" value="">

//here I need to set that same value to that radio button selected.

[/code]

My action class [code] public ActionForward doDel(ActionMapping mapping, ActionForm theForm, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { Connection conn = null; HolidayService hdServ = new HolidayService(); List updList = new ArrayList(); ActionErrors errors = new ActionErrors(); HolidayForm delForm = (HolidayForm) theForm; String upId = request.getParameter("upId"); //Will I get the selected radio button with this ? hdServ.delete(upId,conn); //Calling my delete service and dao to delete the radio button selected id .... [/code]

How do I retrieve the random radio button value into my action?

Leave a comment

0 Comments.

Leave a Reply