Sunday 14 June 2020

Gradle JSP Quick Setup Tutorial | JAVA & Groovy Language | Web Application



Please avoid or flag spams/hateful comments. And do not spam. Enjoy :)
------------------------------------------------

Official Gradle JSP Guidelines:-
https://guides.gradle.org/building-java-web-applications/

Subscribe my Channel:-
http://www.youtube.com/user/SanketRooney?sub_confirmation=1

Facebook Page:-
https://www.facebook.com/UnpossibleNS

Twitter Account:-
https://twitter.com/UnpossiblePOG

Blog :-
https://unpossiblepog.blogspot.in/
------------------------------------------------

Hey guys.
In this video, I shall create JSP application using gradle in the quickest way possible.
There are plenty of tutorials available on internet for installing gradle and java, so we shall skip that part.
There is an official document from gradle to setup JSP. That link is given in the description.
There are requirements that you should have.

Configuring basic JSP doesn’t require more than 5 minutes.
And we are using groovy as a build.

First instruction is to create folder structure like this.
Open the file system or my computer, I already created a TUTORIAL folder, go inside it and start to create new folders.

Now come to home folder, which is webdemo, and create a new file “build.gradle”.

Click on GROOVY tab if kotlin is selected by default.

Next, open webdemo folder in terminal or command prompt.

Even though the gradle version is greater than 4.10, don’t use that wrapper.

type the same command as they provided.

It will create some files and folders inside webdemo.

Now, create more folder as they told you, and create HelloServlet.java file inside that folder.

There are the number which indicates what is the purpose of that code.

Now come back to webapp folder and create two new files, index.html and response.jsp.

Copy paste the code in index.html.

copy paste the code in response.jsp.

Now, copy this id and paste it in plug in.

After that, go to terminal and type the command they provided.

It will provide a URL. Copy that and paste it in browser.

If you click on hello, the GET method is called.

Force refresh it.

To access JSP, type name and click on button.

So, that is it. The core JSP is ready.

Required links are given in the description.
Don’t forget to like, share and subscribe.
Thanks for watching. 


No comments:

Post a Comment