| | |
MVC Architecture.
![]() |
Nothing is necessary. You can write anything you want in any way you want. In the end it is experience that will tell you when it is better to use servlet to handle the request from the jsp file or just just handle it in the same page by setting action in the form tag to be:
<form action="" ....> If you need to use and declare a lot of methods in order to use them then you use servlets. Or in some cases you can have more than one jsp (whose requests have a common behavior) to go in ONE servlet, handle the request, and then depending on the results you can have more than one selections as in which jsp to go next.
If you need to submit a form and then just display the results in the same page, then one jsp that submits to itself is enough.
<form action="" ....> If you need to use and declare a lot of methods in order to use them then you use servlets. Or in some cases you can have more than one jsp (whose requests have a common behavior) to go in ONE servlet, handle the request, and then depending on the results you can have more than one selections as in which jsp to go next.
If you need to submit a form and then just display the results in the same page, then one jsp that submits to itself is enough.
Check out my New Bike at my Public Profile at the "About Me" tab
![]() |
Similar Threads
- struts tutorials (Java)
- How is 3Tier architecture implemented in ASP.NET (ASP.NET)
- Php Mvc (PHP)
- Help for learnign JSP (JSP)
- About 3 tier architecture (PHP)
- Bean File location (JSP)
- role of web.config file in MVC (ASP.NET)
- Using a Java Object in a JSP (Java)
Other Threads in the Java Forum
- Previous Thread: how to execute telnet command in Java
- Next Thread: help with j2me code
| Thread Tools | Search this Thread |
3d 6 @param affinetransform android api applet application arc array arrays automation binary bluetooth bold byte c++ chat class client code color compare component coordinates database detection doctype eclipse educational error file fractal froglogic game givemetehcodez graphics gui guitesting helpwithhomework html ide ideas image ingres input integer internet intersect j2me java java.xls javaexcel javaprojects jni jpanel jtextarea julia keytool keyword linux list loop map method methods mobile netbeans newbie nextline object pong print problem producer program programming project projectideas read recursion recursive replaysolutions rim scanner sell server set size sms sort sql string swing terminal threads tree web websites windows






