• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Web Design for Beginner  RSS feed

 
Rich Ramirez
Greenhorn
Posts: 19
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need good suggestion on what are the steps included in creating web pages design in java? -for a beginner
I'm from creating a desktop application using Eclipse with oracle database, and now I will be creating web applications using JDeveloper with oracle database.

Thank you so much guys!
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rich Ramirez wrote:I need good suggestion on what are the steps included in creating web pages design in java? -for a beginner
I'm from creating a desktop application using Eclipse with oracle database, and now I will be creating web applications using JDeveloper with oracle database.


Well the obvious thing would be to create a UI (e.g. JSP+Servlets) which would "replace" the desktop UI Of course this is a very high level answer.
Are you comfortable with JSP/Servlets?
 
Paul Clapham
Sheriff
Posts: 22828
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you should bear in mind that you don't design web pages in Java. You design web pages in HTML and Javascript. Hopefully you already knew that Java is not Javascript! It's possible you may want to write the back-end code, the code which handles requests from the web pages, in Java. In fact since you're planning to use a database it's a given that you will have back-end code to write. In that case what Maneesh said applies to your question.
 
Rich Ramirez
Greenhorn
Posts: 19
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:You should bear in mind that you don't design web pages in Java. You design web pages in HTML and Javascript. Hopefully you already knew that Java is not Javascript! It's possible you may want to write the back-end code, the code which handles requests from the web pages, in Java. In fact since you're planning to use a database it's a given that you will have back-end code to write. In that case what Maneesh said applies to your question.


That's my problem, I know how to write code in java, but I don't know how to design a web page using java. Can you suggest a link where I could learned easily for a beginner level? I'd searched for samples but it looks like it will took me a long time to finish a project. It has a lot of steps on it. Btw, I will be using JDeveloper for this.

Thank you guys!
 
Rich Ramirez
Greenhorn
Posts: 19
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:
Rich Ramirez wrote:I need good suggestion on what are the steps included in creating web pages design in java? -for a beginner
I'm from creating a desktop application using Eclipse with oracle database, and now I will be creating web applications using JDeveloper with oracle database.


Well the obvious thing would be to create a UI (e.g. JSP+Servlets) which would "replace" the desktop UI Of course this is a very high level answer.
Are you comfortable with JSP/Servlets?


I am not comfortable with this because I don't have experienced of it.
Is there an easy way to design a web page in java?

Thanks.,
 
Paul Clapham
Sheriff
Posts: 22828
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, like I said you don't design web pages in Java. Could you back up a bit and explain where you got that idea from? Perhaps we can get you on the right path instead.
 
Rich Ramirez
Greenhorn
Posts: 19
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh sorry! Please correct me if I'm wrong, for example in MVC pattern, the View would be the HTML codes for web designing, the Controller and Model part would be in Java classes? :/
 
Paul Clapham
Sheriff
Posts: 22828
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that's a much clearer way of putting it. The "View" part is what the client sees in their browser, so it's HTML plus Javascript. The other two parts run on your server and they are mostly written in Java. I say "mostly" because it's quite common to use JSP as the part of the "Controller" which generates the view. It's true that "JSP" originally stood for "Java Server Pages" but there's actually no Java at all in a modern JSP.
 
Barna Biro
Greenhorn
Posts: 5
IntelliJ IDE Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you don't like going on the somewhat old school JSP road, then it might be worth looking into JavaFX: http://docs.oracle.com/javafx/ Just don't get too used to that SceneBuilder tool... or you could also look into GWT or Vaadin for that matter.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, maybe not JavaFX, as that goes down an entirely different path (desktop app instead of web app).
 
Barna Biro
Greenhorn
Posts: 5
IntelliJ IDE Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Ulf: JavaFX is not limited to desktop applications. It's used to develop RIA, targeting both the desktop and the browser ( even mobile, but I wouldn't go into details on that ). http://www.oracle.com/technetwork/java/javafx/samples/index.html I'm not saying that it's the best technology out there, but the latest version seems to be quite promising and I thought it's worth mentioning...
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see anything on that page that looks like a web app. If it deploys Java code to the client (even as part of a web app), then that's not a web app in my book, which is what Rich is asking about. If JavaFX has facilities to generate apps that do not require a JRE, then I'd be thankful for some links to relevant material, but otherwise let's not take this thread too far off-topic.
 
Barna Biro
Greenhorn
Posts: 5
IntelliJ IDE Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://parleys.com/play/514892290364bc17fc56c3a7/chapter3/about ( NOTE: the presentation is a tad bit old... no biggie )

In essence, JavaFX in the browser, works similarly to how Flash / Flex applications work ( it's not a new concept )... it has to be embedded into an HTML page and if the needed runtime is found, it will load and work just fine. With due respect, it's completely your problem if you deliberately narrow your definition of what a "web application" is ( you not liking it, will not make it less of a web application... FYI: Wikipedia and other sources define the term as follows: "In computing, a web-based application is any application that uses a web browser as a client." ). Latest and future versions of JavaFX are / will be included in the JDK / JRE, so it might grow into a quite appealing technology ( time will tell ).

Rich's question was: "what are the steps included in creating web pages design in java"... giving a list of detailed steps is not possible without first choosing an approach / technology / framework / etc. I just gave a list of possible frameworks that could be used to create an application that can run in the user's browser... the rest is up to Rich ( he is by no means forced to use one of the things we mention / suggest here you know... neither are you ).
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I concede that my definition of "web page design" does not include Java, Flash/Flex and Silverlight clients.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66306
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll side with Ulf on this one. JavaFX apps are no more "web apps" than Applets or Java apps pulled using JNLP. Some just happen to be pulled through the browser and run in its sandboxed JRE. That's not what most people would think of as a "web app"

All that is orthogonal to the point that JavaFX and Applets have no mind share. Applets have always had a nasty taste, and with the spate of recent security issues with the browser sandbox have become marginalized to the extreme. With regards to JavaFX, most consider it DOA and unlikely to garner much attention.

If the OP is looking to create "web apps" in the sense that most people would define them, then JavaFX/Applets isn't in the mix.

But I do agree that the OP is free to decide upon whatever technology he or she desires.
 
Rich Ramirez
Greenhorn
Posts: 19
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys for all the suggestions and I really appreciate all the ideas, but most of what you've suggested was a big "WHAT's THAT?" for me because I'm just a beginner.
My task was to create a web application that has the basic functions (add, edit, delete and display), and aside from that I need to design the web application as beautiful and user-friendly as possible.
I already have an idea how will it be look like but I tried designing a page in JDev using all available tools there and I find it boring and complicated. JDeveloper is not my choice it's my boss's choice. My database is Oracle.
All I want to know is if I'm gonna be using HTML/CSS/JavaScript for the view, how will I connect those codes with my JavaClasses codes. And what do I need to study if it's not HTML/CSS/JavaScript for the design. What's the best practice to do those things and can easily be understood for a non-pro like me.

Thank you!
And by the way, I'm not a "HE", I'm a "SHE".

Merry Christmas!
 
Barna Biro
Greenhorn
Posts: 5
IntelliJ IDE Java Mac
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're set on going down the JSP path, then why don't you google for some tutorials? There are plenty online: http://www.ntu.edu.sg/home/ehchua/programming/java/JSPByExample.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!