вот сам action, должен просто вывести 1111111, но ничего не выводит:
| Код | package untitled1;
import org.apache.struts.action.*; import javax.servlet.http.*;
public class Untitled1Action extends Action { public ActionForward perform(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) { /**@todo: complete the business logic here, this is just a skeleton.*/ Untitled1ActionForm untitled1ActionForm = (Untitled1ActionForm) actionForm; System.out.print(1111111); throw new java.lang.UnsupportedOperationException("Method perform() not yet implemented."); } }
|
вот ActionForm:| Код | package untitled1;
import org.apache.struts.action.*; import javax.servlet.http.*;
public class Untitled1ActionForm extends ActionForm { private String name; private String url; public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { /**@todo: finish this method, this is just the skeleton.*/ return null; } public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } }
|
|