• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Is JSP a copy of ASP

 
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am curious whether JSP is invented to be a alternative on the java side to ASP on the microsoft technologies side??
I have that feeling since ASP came to existance much before JSP did.
Dan.
 
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes and no. JSP does serve some of the functions of ASP in terms of providing dynamic content generation through embedded scripting tags. And the name "JSP" no doubt is a marketing device used early on to announce that there was a java-based alternative to ASP.
But JSP has evolved and become part of a larger framework as part of the J2EE standard, so learning Java and JSP will let you do a lot more now than if you just learned ASP.
 
Kishore Dandu
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well there is no point of learning now, because I have been using it for almost 2 years. It is not so easthetic when used in combination with JavaScript etc, it is still better than pure freaking Servlet programming.
Dan
 
Marshal
Posts: 67273
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome.
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a lot you can do with JSP to make it look better...
Use taglibs to limit (or eliminate) Java codeblocks.
Use external Javascript and CSS to reduce that to next to nothing.
Use included JSP fragments to reduce the size of boilerplate code (and to reduce the size of each individual custom tag area of influence to something readable).
Taken to the extreme, I've ended up with the following JSP:

which embeds several other files, generating over 5K of HTML which is sent to the client.
The main switch uses includes to improve readability, the included pages can each run to over a hundred lines which would otherwise make the code hard to follow.
In turn, the data for this JSP is provided by a servlet which relies on a bean and a custom List inplementation to provide both data retrieval from our backend (legacy application) and sorting of the output (that's why I needed a custom List, to provide sorting).
In ASP all that code would have to have been included right there in the main ASP page, maybe using a few ActiveX controls but no more.
In PHP it would have been even worse...
[ March 09, 2004: Message edited by: Jeroen Wenting ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!