Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

is JSP the way to go?  RSS feed

 
Danielle Rutter
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on creating some very basic projects for github and wanted to use HTML and Java together. I'm creating a very basic form where a user can input some text, and the java will spit it back out in piglatin. I know the Java part. I know the HTML part. I don't know how to put them together. I asked a friend and he said JSP ... but that it's been some time since working with Java and there may be a newer technology out there now. So is JSP the way to go here?

Thanks!!
 
Les Morgan
Rancher
Posts: 768
19
C++ Java MySQL Database Netbeans IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not familiar with the github, but it is always preferred to code a project up using a technology the target server supports.

Having said that, my target server support PHP, so that is what I do for online projects, but I have used JSP before and I was impressed by the ease of coding JSP's due to Java coding experience.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66203
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most Java-based web frameworks* will use servlets and JSP as their base, so yes, servlets and JSP is the way to go if you want to stay in the Java ecosystem.

Please be sure to read
  • The Secret Life of JSPs
  • The Front Man

  • in order to understand what JSP is all about, and how to structure modern Java web apps.



    * The Play! framework is a notable exception.
     
    Danielle Rutter
    Greenhorn
    Posts: 16
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thank you Bear!!
     
    Bear Bibeault
    Author and ninkuma
    Marshal
    Posts: 66203
    151
    IntelliJ IDE Java jQuery Mac Mac OS X
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    You are very welcome. Be sure to ask any questions you might have about the information in the articles.

    And one point of importance: many JSP tutorials and resources will still show the use of Java code inside JSPs. This is obsolete and discredited. Be sure not to do that.
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!