• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 76
IntelliJ IDE Spring BSD
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 76
IntelliJ IDE Spring BSD
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
We must storm this mad man's lab and destroy his villanous bomb! Are you with me tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic