This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Why we have to avoid use of java code in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Why we have to avoid use of java code in JSP" Watch "Why we have to avoid use of java code in JSP" New topic
Author

Why we have to avoid use of java code in JSP

Krishna Latha Grandhi
Ranch Hand

Joined: Nov 08, 2005
Posts: 110
Hi Friends,

Why we have to avoid the use of java code in JSP?

Regards,
Krishna.
vidya sagar
Ranch Hand

Joined: Mar 02, 2005
Posts: 580
Some of them are

Harder to maintain
JSP not to deal with business logic
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

"Krishna", welcome to the ranch. Please take a few moments to read the Javaranch naming policy. After reading the policy, you can change your name here. We try to be friendly around here but we do have our rules, and not following the naming policy can result in having your account deleted.

We'd prefer to keep you with us.


A good workman is known by his tools.
Krishna Latha Grandhi
Ranch Hand

Joined: Nov 08, 2005
Posts: 110
Done...

Regards,
Krishna.
Krishna Latha Grandhi
Ranch Hand

Joined: Nov 08, 2005
Posts: 110
Hi Friends,

From Servlet specs 2.4:

Servlets in a container that were not deployed as part of aWeb application are
implicitly part of a �default� Web application and have a default ServletContext.
In a distributed container, the default ServletContext is non-distributable and
must only exist in one JVM.

Please explain this in detail.. how the servlets are able to present in container with out deploying them to a web application...

Regards,
Hari Krishna.
Krishna Latha Grandhi
Ranch Hand

Joined: Nov 08, 2005
Posts: 110
Sorry Unfortunately I posted this question to this..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why we have to avoid use of java code in JSP
 
Similar Threads
JSP problem.
data from servlet to jsp
difference between servlet and jsp
Servlet vs JSP
include file Directive not working properly. Variable not resolved in jsp