Re: Java Servlet, Apache Tomcat, and MySQL

2020-10-31 Thread AudioGames . net Forum — Developers room : TJ . Breitenfeldt via Audiogames-reflector


  


Re: Java Servlet, Apache Tomcat, and MySQL

Hum... well without knowing the full set of technologies you are using, not sure if I can help at all. To clarify, the subject  line of this thread applies to just about all java related web technologies. Are you using Spring MVC, EJB, etc... I really only have hands on familiarity with Spring Boot, but have passing knowledge in Spring MVC. I had to learn about EJB and other related older technologies a while a go. If anyone is to help, we have to know what you are actually using. JSP tells me that you are using older technologies, perhaps Spring MVC, although you have not mentioned Spring at all.Each framework is going to have a different way of handling security, at least in terms of what is built into the framework you are using.

URL: https://forum.audiogames.net/post/585060/#p585060




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java Servlet, Apache Tomcat, and MySQL

2020-10-30 Thread AudioGames . net Forum — Developers room : leibylucw via Audiogames-reflector


  


Re: Java Servlet, Apache Tomcat, and MySQL

We are using JSP - this is really just for a basic implementation for a college class, so I'm not concerned with completeness as it relates to security. We just need something working within a few weeks.

URL: https://forum.audiogames.net/post/584822/#p584822




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java Servlet, Apache Tomcat, and MySQL

2020-10-30 Thread AudioGames . net Forum — Developers room : TJ . Breitenfeldt via Audiogames-reflector


  


Re: Java Servlet, Apache Tomcat, and MySQL

Hi, the first question since it is not clear to me, are you writing your backend as a restful API using Spring Boot, and hitting it from the front end using AJAX, or are you using older technologies such as JSP (java server pages)?This matters in terms of how you are going to handle security. I have only worked with Spring Boot building restful APIs, and written several login systems for it. AS I think I mentioned, if you are going the rest API approach, then JWT (JSON Web Token) is what you want. There is a dependency called spring-security I think which will give you what you need for that. I believe that it will also provide functionality other than just JWT. I can give more description on how to handle setting up your Spring boot for JWT if that is what you are doing. It is a bit complicated to get all of the configurations setup just right the first time.

URL: https://forum.audiogames.net/post/584788/#p584788




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java Servlet, Apache Tomcat, and MySQL

2020-10-26 Thread AudioGames . net Forum — Developers room : leibylucw via Audiogames-reflector


  


Re: Java Servlet, Apache Tomcat, and MySQL

Hi,I figured I'd circle back to this after a few weeks. I got Tomcat and Servlet running properly. I understand the directory structure needed to serve the web app. What I'm especially interested in and need to figure out next is how to handle user logins. If anyone is familiar with how to handle this using my particular stack, I'd appreciate any input.

URL: https://forum.audiogames.net/post/583685/#p583685




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java Servlet, Apache Tomcat, and MySQL

2020-10-10 Thread AudioGames . net Forum — Developers room : TJ . Breitenfeldt via Audiogames-reflector


  


Re: Java Servlet, Apache Tomcat, and MySQL

Hi, I use the Java stack with MySQL and React/Angular a lot for work.In terms of the technology you will probably want, it will be Spring Boot. Spring boot is mainly meant for creating RESTFul APIs. So if you are looking for something that will handle a view as well, you will have to use an older technology. Spring Boot is the modern way of creating Java backends, although there is also Spring MVC, which uses the MVC pattern to push java server pages (jsp), which is an html like sintax, to the browser. I don't recommend this though if you are starting a new project.The modern web stack is something like I mentioned above, creating a Spring Boot REST API hitting the database of your choice, then using a single page application (SPA) technology like React.js or Angular to manage your front end. You mentioned you are using JDBC, that works, although personally I like using object relational mappers (ORM), specifically spring data JPA/Hibernate. If you are not familiar with ORMs, the idea is that you map every table in your database to a java class that is anotated with the JPA annotations. This simplifys accessing your database significantly.Also, I will advise using the design architecture of splitting your application up into a few different packages. You will have a folder for controllers, services, Ddao/repositories, and entities. Each of these layers perform a specific task, where the controller layer manages the entry points into your API, mapping all of your endpoints to methods. The service layer is called on from the controller layer, managing all of the business logic, such as validation or any other hard logic. The service layer will then call a database access object (dao) to hit the database. The DAO layer is where your JDBC code belongs, and this is the layer that is simplified down to just a couple lines of code if you use an ORM. The Entities are used by the database access objects, and if you are using an ORM, you would mark up your entities with JPA annotations.You mentioned sessions, is that for security? When using these modern technologies, we tend to use JSON Web Token (JWT) for authentication. Most of the time you will just store what you need in the browser, but Spring boot does support different types of beans such as session beans for special cases.Hope this was helpful,Timothy Breitenfeldt

URL: https://forum.audiogames.net/post/579244/#p579244




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java Servlet, Apache Tomcat, and MySQL

2020-10-10 Thread AudioGames . net Forum — Developers room : leibylucw via Audiogames-reflector


  


Re: Java Servlet, Apache Tomcat, and MySQL

@2 thanks for the response - I'd prefer doing this in Python, but my teammates' experiences are largely centered around Java. Our backend logic isn't anything complex, so coding it shouldn't be that much of a hassle.

URL: https://forum.audiogames.net/post/579201/#p579201




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Java Servlet, Apache Tomcat, and MySQL

2020-10-10 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: Java Servlet, Apache Tomcat, and MySQL

I haven't used that specifically, but you'll probably be fine except that it's java, so there'll be a bunch of extra annoying bullshit along the way because you've got your databaseFactoryFactoryFactoryFactory. Which is, sadly, only half a joke.  I wouldn't worry about it.

URL: https://forum.audiogames.net/post/579164/#p579164




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Java Servlet, Apache Tomcat, and MySQL

2020-10-10 Thread AudioGames . net Forum — Developers room : leibylucw via Audiogames-reflector


  


Java Servlet, Apache Tomcat, and MySQL

I'm in a group for a project in my software engineering class, and we are planning to develop a fairly straightforward web app written in Java that will use MySQL as its database.Does anyone have experience with using Java/Servlet to handle HTTP requests, sessions, and connecting to a DB? We've already begun laying the groundwork for Java Database Connectivity (JDBC) in conjunction with MySQL, as well as our application logic.I'm somewhat familiar with Python and Flask, but not enough to say I'm comfortable with developing a fairly functional web app. I'm interested to know who out here has experience with this particular stack (or something similar), and what the learning curve will be along the way.Thanks!

URL: https://forum.audiogames.net/post/579155/#p579155




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector