I'm new to Java EE and Struts2. I need to know if I'm doing it wrong or not.
I've got a link like this : http://localhost:8080/myProject/deleteUser?idUser=42
All I want is to get the idUser value.
Here is what I use to get the parameter value in my action class :
HttpServletRequest request = (HttpServletRequest) ActionContext.getContext()
.get(ServletActionContext.HTTP_REQUEST);
System.out.println(request.getParameter("idUser"));