Gostaria de uma ajuda, na verdade estou aprendendo struts e não sei oq fazer para quando apertar um botão executar uma ação
bom eu tentei
a parte do jsp ficou assim:
<html:button property=“start” onclick=“javascript:buttonClick(‘testerPre’,‘startTests’);”>
<bean:message key=“button.start”/>
</html:button>
e o actionForm ficou assim:
public ActionForward startTests(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception {
try {
System.out.println("teste");
} catch (Exception e) {
LogHelper.log(this, LogHelper.LOG_ERROR, "Action Error", e);
}
return mapping.findForward("testAction");
}
Eu achei que com esse codigo fosse imprimir no eclipse o teste, alguem pode me ajudar?
