English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

most of the website developers are now a days going for servlets and
jsps. what are the main advantages of choosing those technologies. please explain......

2007-01-21 15:23:30 · 6 answers · asked by Anonymous in Computers & Internet Programming & Design

6 answers

Much of it depends on the overall development environment. If you are in primarily a Sun/IBM shop, then using JSP for your server-side coding makes sense. If you run Microsoft, then it would be kind of awkward to fit JSP into that scheme.

One feature that alot of JSP developers like is the Servlet API... it is similar to the .NET web control model, in that it is a server-side component that is referenced in code, but exposes sophisticated interactivity or connectivity to the end client, state maintenance, etc.

JSP also seems to integrate more easily with technologies like WebSphere and other enterprise applications.

Contrary to what another answerer said, it has nothing to do with running Java applets. Applets can run on any website regardless of the server-side technology.

And contrary to another answer, portability is *usually* not a benefit of a server side technology, unless you are planning on switching operating systems for your IT infrastructure. Since that happens once in a blue moon, it's not a factor that deserves much weight when deciding on your web server technology.

2007-01-21 16:56:03 · answer #1 · answered by Rex M 6 · 1 1

Java/J2EE lets you separate the concerns. Which means that your Organizations work can be built in with seclusion of development teams from each other. Which implies a person who is designing the look of the website(uses JSP/HTML/CSS) is not concerned with how the data is going to be stored or fetched in the database. The team who is coding database interaction (Uses normal Java classes, DAO or EJB) would not be concerned how the tax calculation occurs for the employees in the company. The team can work aloof from each other and finally integrate the whole system. Or they can go for continuous integration. J2EE is not jut about web development, its about enterprise application development. Which means that you might be working on Java/J2EE (servlets, jsp, ejb etc) without have any part of your whole application being made public. All the users of your application would have only internal access to it. But that does not stop you from making your application go to the internet.

@ crash override - Java Applets can be used with PHP also, applets work on clients end and so it sometimes never interacts with server.

@geonautika - Java based platform works out costlier than other platforms like PHP(rather call it LAMP), .NET etc. If you don't believe me try to find a free Java hosting server, or compare the rate plans that host providers have for Java, you would get the shock. Its only at development time that you have free and open source tools and servers at your disposal, when the site or application goes live, you need commercially tested servers which are very costly.

@Rex - he is right about the overview he gave about .Net and Java, One significant advantage the .Net offers is that it is more controlled than Java, which means limited number of tools and hence not too many implementations coming up. Everyone contributes in a controlled fashion. Which makes Java somewhat difficult to work on, or rather begin with.

@procomp9 - JSP are another form of servlets, its just that they are compiled and converted to servlets at runtime. JVM does not do all the job of the programmer. JVM just ensures that Java code and application is platform independent. Java has its own stigma attached to it. .Net had the chance to watch and learn from mistakes that Java had made, thats the reason that C# has better OOP features than Java.

--
Ck
http://www.gfour.net

2007-01-21 21:42:26 · answer #2 · answered by KingPin 3 · 0 1

You can use something called a Java servlet to dynamically generate HTML code and return it to a client. You can do the same thing with PHP scripts. I don't know if things have changed, but it used to be that PHP didn't scale well and Java was recommended for medium to high traffic.

2016-05-24 12:23:33 · answer #3 · answered by Anonymous · 0 0

Java is great for one simple reason: It is compatible with every OS. This assures the programmer that the implementation will work no matter which OS the end user is on. The JVM (JAVA Virtual Machine) does all this dirty work for the programmer. It is not that jsps is more powerful than any other language but rather it is more flexible. Hope this helps

2007-01-21 16:57:48 · answer #4 · answered by procomp9 1 · 0 2

Its a matter of preferences. Java based platform is cheaper because most of the software are open-source. It is easy to setup and run java based web server. As with Microsoft products, you have to buy everything.

2007-01-21 16:16:43 · answer #5 · answered by geonautika 4 · 0 2

the advantages would be that the visitors of ur website would enjoy java applets in ur site.. also it would make ur site livelier rather than static

2007-01-21 15:28:41 · answer #6 · answered by acidburn 3 · 0 2

fedest.com, questions and answers