i have a link of this kind: test.do?action=create. and in my testAction file, i wrote: String action=request.getAttribute("action"); but later when i was using the variable action, the system tell me the action is null. why? i don't know how this comes. so how can i get parameters from the url in Struts? please help me, thanks!
Joined: Feb 27, 2002
should be: String action=(String)req.getParameter("action");