Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old September 28th, 2000, 03:10 PM
keliikuli keliikuli is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Posts: 2 keliikuli User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Why use jsp as opposed to perl,php,or python?

Reply With Quote
  #2  
Old September 28th, 2000, 03:47 PM
Visca Visca is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: North Canton, Ohio, USA
Posts: 3 Visca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
JPS is built off of JavaScript (If I'm remembering correctly) and it is much faster to pick up for someone who already knows JavaScript instead of learning an entirely new language. Just IMHO

Reply With Quote
  #3  
Old September 29th, 2000, 06:10 AM
tvanbart tvanbart is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Posts: 35 tvanbart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
JSP is not build off JavaScript, but is a Java-based technology. You'll want to use it in a Java-based environment (i.e. WebSphere); the nice thing is that you can just mix HTML and Java instead of writing out all HTML code as you would have to do in a servlet (a la PHP or ASP).
For the rest, it just depends on your server environment and personal preference. I don't know about the performance issues involved.

Reply With Quote
  #4  
Old September 29th, 2000, 06:10 AM
kingQuez kingQuez is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Posts: 0 kingQuez User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Heya....

[1] JSP (Java Server Pages) have nothing to do with javascript... Visca, i think your getting mixed up with ASP (Active Server Pages), which can be scripted using javascript or vbscript.

[2] Anyway, back to your question keliikuli.. JSP has certain advantages over perl, php, and several other scripting languages because it is impliments an idea known as 'page compilation':

When you write a page that has jsp in it to do something dynamic (connect to a database, or do some other bit of work for ya), you save it as a regular text file (with the .jsp or .jhtml extention or whatever your server is set up to use for JSP pages).

Now, the first time that page is loaded off the server... it is compiled into a java servlet & loaded into memory. Each time a subsiquent request is made to the page, the server just uses the allready-compiled page that it has in memory to do its stuff. BUT something like PHP is never compiled & loaded into memory, each time someone accesses that page, the entire document is Interpreted. Since compiled languages are faster than interpreted ones, the first advantage that JSP has over the others is general speed.

There are other advantages aswell, JSP alows you to keep much more of your code seperate from the html than other html embedded languages, by using java beans. Jjava beans basically let you keep all the logic of your page (like the code to connect to a database, manipulate data etc..) in a seperate file known as a java bean. then from within your html page - all you do is use one tag to 'use' the bean, and then a few other short tags to send data to&from the bean....


JSP & JjavaServlets are generally indopendant of the operating system & web server.... you can develop your jsp pages, or java servlets on a windows machine, move them onto a freebsd machine, and then if the site moves - plonk them onto something nice like a solaris box, without having to do many modifications to the code - whereas with perl or other stuff, it can get a bit messy.....

Theres tons of other reasons to use JSP/Servlets.... check out jspin.com for some more resources - and servlets.com has some good stuff on servlets/jsp

KQ

Reply With Quote
  #5  
Old September 29th, 2000, 06:11 AM
tvanbart tvanbart is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Posts: 35 tvanbart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
JSP is not build off JavaScript, but is a Java-based technology. You'll want to use it in a Java-based environment (i.e. WebSphere); the nice thing is that you can just mix HTML and Java instead of writing out all HTML code as you would have to do in a servlet (a la PHP or ASP).
For the rest, it just depends on your server environment and personal preference. I don't know about the performance issues involved.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > why use JSP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway