Hi
Iam facing problem with .
my JSP page has two forms for which iam using *LookupDispatchAction* for
submitting the page information. Below this iam displaying the details of
the employees for which i have added two links (Edit, Delete) by using
. Each employee has a unique id which i need to pass when the
link of edit/delete is clicked so that appropriate edit/delete action is
called. The problem facing is how to pass this empid through this
.
For storing the employee details i have created a employee bean and
storing these objects in a vector and iterating throught the vector to
display the values.
struts-config
-----------------
*JSP Page*
*EmployeeDispatchAction*
*protected* Map getKeyMethodMap()
{
Map map = *new* HashMap();
map.put("label.Edit", "EditEmployee");
map.put("label.Delete", "DeleteEmployee");
* return*(map);
}
*public* ActionForward EditEmployee(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
*throws*IOException, ServletException {
********* code here for edit employee w.r.t his id getting
through the parameter passed through the link ********
}
*public* ActionForward DeleteEmployee(ActionMapping mapping, ActionForm
form, HttpServletRequest request, HttpServletResponse response)
*throws*IOException, ServletException {
********* code here for delete employee w.r.t his id getting
through the parameter passed through the link ********
}
Thanks in advance.
Regards
Khan