Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
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, 5451👍, 0💬
Popular Posts:
What is the benefit of using #define to declare a constant? Using the #define method of declaring a ...
How does ASP.NET maintain state in between subsequent request ? Refer caching chapter.
Once I have developed the COM wrapper do I have to still register the COM in registry? Yes.
.NET INTERVIEW QUESTIONS - What are types of compatibility in VB6? There are three possible project ...
How To Dump the Contents of a Directory into an Array? - PHP Script Tips - Working with Directoris a...