Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Can you write a simple Action Class
Can you write a simple Action Class?
✍: Guest
Sure. Here is the code of Action Class that returns the ActionForward object:
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;br>
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class TestAction extends Action {
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws Exception {
return mapping.findForward(\"testAction\");
}
}
2007-12-19, 6491👍, 0💬
Popular Posts:
I have 5 questions please give me the answer ,explanation,suggestions if any?? what is PMP(project m...
Can one execute dynamic SQL from Forms? Yes, use the FORMS_DDL built-in or call the DBMS_SQL databas...
. How can a servlet refresh automatically if some new data has entered the database? You can use a c...
Managed Code and Unmanaged Code related ASP.NET - How do you hide Public .NET Classes and other publ...
What will be printed as the result of the operation below: main() { int a=0; if (a==0) printf("Cisco...