Hi nabil,

It is usually easy to handle the design and development separately when you
create the Servlet and jsp separately..

For eg. you create jsp for html designing and servlet for handling the
business logic.. although you can integrate both, but it will not be easy to
handle the design and business logic in a same servlet...

So... use jsp to integrate your javascript, html, css etc... and create a
corresponding servlet with the jsp to handle the business logic...

And yes.. as my classmates told,
When your JSP page is about to serve the request it is first translated into
Servlet code, then compiled and finally run. So you'll always have one
Servlet per JSP page.
Thanks
Varun

On Wed, Feb 11, 2009 at 12:34 AM, arbi nabil <arbi.na...@gmail.com> wrote:

> Hi all
> Hope u're doing well...
> I just want to know if in a J2EE application, is it necessary to create a
> jsp for each servlet on the web server... ?
> i was reading *"The Java EETutorial For Sun Java System Application Server
> 9.1"* and i found that for each servlet they created a jsp file...
> Thanks any way...
> Regards
> Nabil
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to