Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

is JSP the way to go?

 
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!!
 
Rancher
Posts: 892
22
Netbeans IDE Oracle MySQL Database Tomcat Server C++ Java
  • 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.
 
Sheriff
Posts: 67403
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
    Sheriff
    Posts: 67403
    173
    Mac Mac OS X IntelliJ IDE jQuery Java
    • 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.
     
    A teeny tiny vulgar attempt to get you to buy our stuff
    Devious Experiments for a Truly Passive Greenhouse!
    https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
      Bookmark Topic Watch Topic
    • New Topic