This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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");