I am trying to learn and better understand the process for communicating java with web content.
Currently I have a finished java project that communicates with a database. I also have a website template I have created purely from hard coded html and css. My next goal is to take my java project to a higher level and incorporate my project with my website.
I have no idea where to start and have little to no knowledge on jsp's or xml files. Others have told me to implement a Spring MVC framework. If anyone can share there input it would be greatly appreciated.
Yes If you already know Java I would definitely advise you to go with Spring and Hibernate. I would always recommend the beginner guide to Spring which is this one Spring MVC: Beginner's GuideJun by G, Amuthan it will show you step by step guide on how to step up your environment. Googling yes you can but don't be overwhelmed with too many resources being out there....For the front page you will have many options Spring allows you to add different dependencies on pom.xml file if you want to use. I have worked with both JSP and Thymeleaf. I would say go with Thymeleaf ... may be I am biased.
Good Luck!
Related
I am following this tutorial: http://www.tutorialspoint.com/spring/spring_hello_world_example.htm
I am using the spring tool suite (STS) that is basically Eclipse. On Step 2 spring libraries and Apache common logging libraries need to be added. Does anyone know how to do this with STS? It seems like these .jars would already be in the tool somewhere...
Every single beginner tutorial does not make near as much sense to me as this one. I am not concerned with MVC or anything like that for instance.
Thank-you for reading. I look forward to any help given.
It should be configured in maven file or downloaded from this website one after another.
If you have sts and if you are not particulary focused on that tutorial you can create a new project by choosing from a list of template project.
There are simple examples for different conceptual facilities of the spring framework
Try this..this has all the things that you are looking for
http://www.codejava.net/frameworks/spring/spring-mvc-beginner-tutorial-with-spring-tool-suite-ide
I have previously posted a question based on spring. It had to do with what IDE to use. I have since downloaded STS.
I have been trying to learn spring from using this IDE and have tried to use books and tutorials I found online.
So far the book I am reading is SPRING ROO COOKBOOK. But it is not showing me how to start developing in Spring.
I am looking for something to try show from the VERY first step, as in from when I install STS, then start up a spring project and make my first web application which will run successfully.
I am sorry if what I am saying is vague and not clear but I am very very confused and just need a clear tutorial which can show me how to start a spring project in STS and take me step by step until it is successfully deployed.
If anyone can send me a direct link to something like this I would really appreciate it.
Again my apologies if it appears vague what I am asking.
I'm a fan of Eclipse not the full STS because Eclipse does not hold your hand (and I already know eclipse without the STS extensions).
Give this a try:
Get the Spring Framework 3.0.6 with docs.
Start reading the reference (it's in the docs directory when you unpack). In chapter 3 they start with the basics.
Create a java project with a main().
create a basic spring-config.xml file, put it in your project at the top of your src tree. basic == 1 simple bean to start, add as you read through the chapter.
Begin testing with getBean() and System.out.println().
Add more to this project as you read through the reference.
STS is one specific tool; you don't need it to work with Spring. While it can be helpful, you should understand what is going on without it.
All the documentation you need is on the Spring website. In addition, I found a sample application in those pages found here.
It's not very difficult to get up an running. You need to download the jar(s), put them on your classpath, create your configurations, which reference the code you write (your components/beans), and do some general config, and you are set. Look over the link I posted, it walks you thru the basic configurations and code.
If you run into any trouble, post a specific question on your issue.
First of all I have to say, I love STS (I must write it because of the other answers :-) )
I know two good sources of Spring Understanding next to the Reference:
Book: Spring In Action
If you have a bit understanding of Spring, then you can also have a look at the Tutorials contained in STS!! itself: Dashbord/Tutorials/ (#everybody else that never have seen this: feature, have a look at it, it is a great way to use Mylyn for tutorials!)
But believe me learning Spring in all details takes several years. So the important thing is to understand the base concepts, and learn to read the spring source code.
I have to create a simple WebApplication with Java which shows a Login Dialog and after it shows some textfields, gets some Data out of a Database (Sybase) do something with it and insert a new record to the database. Now I am looking for a good tutorial, which explains me, how to setup the needed environment and shows me the start for creating a WebApplication with Java. Can anyone give me some good links to such tutorials? - Many Thanks.
1- BalusC blog - more JSF focused but has every thing . Does not use Spring.
2- Appfuse great starter application plus tutorials uses spring.
3- LULU - Interestingly does not have community presence or atleast not with same name.Uses Spring
4- Java Passion - But not free but very well worth it. I have been member since it was free and now pay annual subscription every year.Not based on spring but does have spring for those who are interested.
5- Spring Roo this is youtube link but you can google as well popular but not my personal choice.
6- Jboss - This is tips link which has further links.Does not use spring and wish they will all die (pun intended and hope not)
7- Netbeans No spring and probably best for any starter
I can go on and on but this should be enough . Also I have a feeling that this question might be closed as soon as people in North-Western Hemisphere wake up :)
If you want to look at using Spring (which seems very popular these days) maybe you should check out this question:
Getting started with Spring 3 Web MVC - Setting everything up
Play framework is what you need. It provides the simplest way to create a web application. Starting with hello world application you'll find another manuals and samples that will help you to achieve your goals.
I need some help here after a few days of trying to learn spring I have given up trying to find a decent resource.
I am making a Web Application and this is my first full application and I want to use Jersey to make it and also use Spring . I am Using eclipse IDE and Maven as a build tool.
With these settings how is the best way to set up such a web application. Ie the application context ect also do i need to configure some sort of container to run the application on the server as with working with some examples they run fine locally but not on deployment.
If anyone has any tutorials that they have used or infact any resources they are greatly appreciated, Ideally want to have an application set up that uses simpleJDBCtemplate and i can then just code my backend implementation into it.
Help!
Thanks
Chris
I found that the source code given at http://gitorious.org/java-rest-example was very helpful in getting a Jersey app up and running quickly. It uses Jetty, which I've found to be a fast, lightweight web app container. That example doesn't use Spring, but for a basic REST application, you might not need it.
As for a Spring resource, I bought the book Spring Recipes: A Problem-Solution Approach
and found it helpful for explaining Spring from the ground up. One thing I liked about it is it shows you the simple/naive ways of achieving something followed by more sophisticated/cleaner ways of doing things.
I have to come up with a basic CRUD app. as fast as possible (and by "fast" I mean like 3 days).
I considered going with Django, but I don't have a lot of experience with Python/Django, and also I have a complete set of EntityBeans that I need do CRUD on. So I thought reusing them would be better.
The resulting CRUD app. should be similar to the Django admin page (but the Django admin page per-se won't work though).
Is there some framework with which I can start with EntityBeans and get a quick, Django admin like skeleton?
If you don't want to change a technology stack you're working on and still have an Django-like administration interface, there is a Java alternative - LightAdmin all-in-one library.
After declaring Maven dependency & enabling administration panel in your web.xml, you will have a complete CRUD with some additional features, like filtering, scopes, security, etc.
The only code related to data administration in your codebase would be DSL configurations for UI customization.
The only thing is that LightAdmin could be used only for JPA domain model entities administration for now.
I would recommend the playframework as it is easy to learn and quick to get up and running. They have a CRUD administration module you can use to generate CRUD framework based on your Entity model. Also check out their tutorial page.
You must try AppFuse or Spring Roo.
http://appfuse.org/display/APF/Demos+and+Videos (+online demo)
http://spring.io/
Spring Roo gives you a CRUD application up in 10 minutes. Unlike other frameworks this really is practically usable.
I have downloaded the Roo shell for the first time and without reading any documentation I managed to get an application up and running within minutes.
Naked Objects, if you're look at a prototype. Although it does have a "viewer" for Wicket apart from the HTML viewer, I would recommend using the framework primarily for fleshing out the functionality of your domain.
You might also want to check the Scimpi viewer, although I must admit that I havent worked with it.
A demo application using the HTML viewer is hosted online, and is accessible for having a quick look at the functionality. A tutorial demo is also hosted online.
Give Grails about 2 hours, and if you don't have a CRUD app after that you're doing something wrong.
I've used CodeCharge Studio by Yes Software for several years, and am able to build a CRUD app in less than 10 minutes (assuming database already exists). CodeCharge has a bit of a learning curve if you want to go beyond the interfaces created by the wizards, yet I think my development time has increased by a factor of at least 30 from writing my own code.
I use it at work to create PHP applications that hit MSSQL, and other projects that hit MySQL. Works like a charm for both.
http://www.yessoftware.com/index2.php
I am not a "pythonista" so this may be absolute rubbish but could Django running on Java be the answer for you?
Jython is an implementation of python for the JVM and can run Django.
http://docs.djangoproject.com/en/dev/howto/jython/
Yes Java has many such framework for both web and desktop but .net has very few..
I recently used RocketFramework , which was to my expectation.. So just thought to post it here so that anybody interested have the link :-)
You can create a Quick Crude App in minutes using HTML5, i found www.quickcrud.com that allows you to generate the HTML5 on line and also it's possible to generate Android Apk also in minutes!