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

What kinds of projects would JSP be a better choice then it's competitors  RSS feed

 
Chris Creed
Ranch Hand
Posts: 71
BSD IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all.

I've been doing some research into the web based aspect of Java coding, and something that as of yet I haven't' found an answer for is when a project would use JSP. Is there a rough cutoff, or project type that would have JSP the logical choice over say PHP or ASP?

Thanks for any answers that folks more knowledgeable then myself in this manner can provide.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In general, JSP isn't (or *shouldn't*) be a standalone technology--it's not a direct replacement for PHP or ASP.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would consider the following:

1. Do I have staff who know Java and/or HTML?
2. Am I running a Java enabled server?
3. Do I already have Java applications which now need web interfaces?

bill
 
Chris Creed
Ranch Hand
Posts: 71
BSD IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HMm it's sounding like my assessment is what JSP is or could be used for is a bit off the mark.

So if you have a JSP server (which with JBOss and Tomcat out there isn't too hard to do), the main decision would be if there's already java apps? If not then the JSP angle really isn't needed?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, that's *one* of the things to consider--in that if you don't already have Java apps there may not be any reason to consider using JSP.

But as I said--JSPs shouldn't be used in isolation. JSPs are a view-layer technology. In other words, they're what generates the HTML in a Java app that uses JSP. The logic *behind* the JSPs (where all the work gets done) would be written in Java--that's why William also listed a java-knowledgeable staff and a Java-based server.

As a view layer JSP might not always be the best choice for even Java-based apps; there are at least a couple of other well-known alternatives (like FreeMarker, for example). On the business-logic end there might be a better fit for an application besides Java, like Groovy, Scala, JRuby, etc. Or it might not make sense to use Java at all, and use Ruby, or Python, etc.

There are tons of reasons one might choose one technology over another, some technical, some political, some environmental, etc.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!