• 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

is JSP the way to go?

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1093
29
Netbeans IDE Oracle MySQL Database Tomcat Server C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Thank you Bear!!
     
    Bear Bibeault
    Sheriff
    Posts: 67746
    173
    Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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.
     
    reply
      Bookmark Topic Watch Topic
    • New Topic