• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why we have to avoid use of java code in JSP

 
Krishna Latha Grandhi
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

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

Regards,
Krishna.
 
vidya sagar
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some of them are

Harder to maintain
JSP not to deal with business logic
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
Krishna Latha Grandhi
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Done...

Regards,
Krishna.
 
Krishna Latha Grandhi
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Unfortunately I posted this question to this..
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic