February 24, 2008 at 1:16 AM
jsp: separate the prsentation and business logic.(custom tags)
more easy to learn,easy to write
servlet: presentaion and business logic in same place.
everything should embedd in out.println("") it is too complex to write is it?
February 24, 2008 at 6:16 PM
*This is the first concept in java to create web oriented programs.
*This requires all objects should be created manually and for user input we must use swing or awt concepts to add text box or any other controls. *Another major thing is all calculations and databse conection codings should be written in a single file.
*If we get an error we have seach for the whole file to find the error. *And we have to recompile after every corrections.
* In case of JSP there are some built in objects available.
* Abbreviation for JSP is Java Server Pages. That is java code can be associated with HTML pages .
* So, fixing controls like text box and other controls can be easily fixed. This will become as a presentation logic. No involvement of AWT or SWING.
* processing can be added in JSP file or seperate java file. So error will become easy one.
*In case of jsp there is no compilation process. If you hava a jsp file while you acccesing it will be TRANSLATED into servlet file and then only the result page will be generated. If there is any error it will be shown in the result page.