• 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

Where to go from here?

 
Ranch Hand
Posts: 54
Android
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My project is ready to make the leap to having a web tier in it. In otherwards, a web page to display the data it outputs.

Basically, I would have an array of objects with several value's in it. My goal would be to have a web page that would display the object values. (In a single line or in a table) I want to add this data I printed out to this web page. (It would have content on it already but I would add these new values to the page). What would be the best way to go about this? Some people say to use servlets, others say .jsp, I'm a bit confused as I am new to both.

A pointer would be appreciated.
 
Ranch Hand
Posts: 859
IBM DB2 Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
M(odel) - Your data
V(iew) - The presentation tier, jsp/jsf whatever
C(ontroller) - Servlet or service layer to retrieve the data, package it in the model and present to View


WP
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

SeanMichael Hayes wrote: Some people say to use servlets, others say .jsp, I'm a bit confused as I am new to both.


are you new to java?
 
Sean Michael Hayes
Ranch Hand
Posts: 54
Android
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Seetharaman Venkatasamy wrote:

SeanMichael Hayes wrote: Some people say to use servlets, others say .jsp, I'm a bit confused as I am new to both.


are you new to java?



No, I've been doing it for two years now in college.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

SeanMichael Hayes wrote:I've been doing it for two years now in college.


That's great. and now yes dive into servlet and jsp concepts... and then try to know what is mvc and then try to know the implementation of mvc like struts and jsf etc... long way to go with javaranch... all the best
 
Sean Michael Hayes
Ranch Hand
Posts: 54
Android
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While I'm at it, whats the difference between MVC and Java EE, I just read that they are very similar.
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not at all. MVC is a design pattern and JavaEE is a framework or platform.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

SeanMichael Hayes wrote: whats the difference between MVC and Java EE, I just read that they are very similar.


Nope. I am not a monk to comment further ... hopefully some other may help you
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
campbell beaten me
 
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think given the apparent relative simplicity of the application any sort of generic MVC solution would probably be major overkill - certainly a framework like Struts (2).
Not to mention it'll unnecessarily complicate the already fairly complex world of server-side Java - meaning Servlets and JSP in this case.
I'm certainly not against doing things "the right way", but in my opinion a firm grasps of the basics is priority 1.

I think the Servlet / JSP combination would probably work out just fine for you.
Seen as you're already familiar with core Java SE you could start by downloading a servlet container like Apache Tomcat and playing around with it.
It does ship with some example applications and there are plenty of tutorials out there on using servlet technology - some good, some not so much.
Give that a try and if you run into problems, there's always our Servlets and JSP subforums
Or, of course, you could buy a book on the subject.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jelle Klap wrote:
I think the Servlet / JSP combination would probably work out just fine for you.


agree . but marketing always like i++ rather than i. what to do we can produce all the stuff in java. but time if you leave an organization. organization always prefer a framework who can work those who know a,b,c,d,...

Sorry if I speak much.
 
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

SeanMichael Hayes wrote:While I'm at it, whats the difference between MVC and Java EE, I just read that they are very similar.



Not similar at all. MVC is a concept, or a design pattern, commonly used in many applications, languages and systems (IOS and Android and webapps, etc.)

Java EE is a huge, bloated, complex framework that has been sold to solve Enterprise-size problems. IMHO, its never a good solution.
 
a wee bit from the empire
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic