• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

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: 833
19
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.
 
Marshal
Posts: 67280
170
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
    Marshal
    Posts: 67280
    170
    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.
     
    I knew I would regret that burrito. But this tiny ad has never caused regrets:
    professionally read, modify and write PDF files from Java
    https://products.aspose.com/pdf/java
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!