Hi all
I need to pass a variable from
JSP page to a
servlet action method.
i set the variable as the attribute in a request scope but not able to retrieve it in the LookupDispatchAction method.
below is my code snippet in c
and i am retrieving the
test attribute in my action servlet as
public ActionForward testAction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response){
....
System.out.println("Request attribute =" + request.getAttribute("test") );
.....
}
the above SOP returns null for me. i donno why?
i am submitting the temp.jsp page and forward the request to the action servlet through struts-config.xml.