Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is JSP a copy of ASP  RSS feed

 
Kishore Dandu
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.
 
Rob Ross
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
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome.
 
Jeroen Wenting
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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!