Results 1 to 6 of 6
  1. #1
    blf_titi is offline Member
    Join Date
    Jun 2010
    Posts
    4
    Rep Power
    0

    Question Need help creating Web Page

    Hi guys!

    I have a java application which uses Swing and it`s connected to a database through Hibernate. I would like to know how can i make my application run from a web browser. What are the steps?

    I have downloaded apache Tomcat (think I might need it) but I have no idea what to do next ...

    Please help!

  2. #2
    gcalvin is offline Senior Member
    Join Date
    Mar 2010
    Posts
    953
    Rep Power
    5

    Default

    Next you should find and read some tutorials and sample code. I know this is not the answer you want, but the only alternative would be for someone to re-write a tutorial here in this forum, just for you, and that's not likely to happen. Even if someone were to do that, you would still need to read it and learn the material, so you may as well read one of the many fine tutorials that are already out there on the web. Here's one you might try:

    Tutorial: Configuring & Using Apache Tomcat 6 (6.0 -- 6.0.18)

    -Gary-

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,397
    Rep Power
    25

    Default

    how can i make my application run from a web browser.
    What framework for this? PHP, HTML and an applet with servlets or JSP or ???

    Many choices on how to configure your app.

  4. #4
    blf_titi is offline Member
    Join Date
    Jun 2010
    Posts
    4
    Rep Power
    0

    Unhappy Good question

    First of all, thank you Gary for the tutorial.

    Second of all, that`s the main problem, I don`t really know what`s the difference between HTML and an applet with servlets or JSP. I don`t know what would be more appropriate. The main idea is that I have my java application, with working GUIs and i would like to make it work from a web browser keeping the GUIs(as much as possible).

    The main problem is that I`m new to java and I have never done anything like this before. I don`t need anything fancy. It is just supposed to be a college project so all it has to do is show up in the browser and do the things the application does. All we`ve done about this subject in college was a stupid calculator our professor showed us... It was based on beans... so, that`s my "big" experience regarding the subject :-<

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,397
    Rep Power
    25

    Default

    I don't know about Hibernate or databases. I've used applets to communicate with servers.
    If your app communicates with a server, and if you can load an applet from that server, then the applet could communicate with the server the same as your app does. The applet would NOT be able to see the user's disk files.

  6. #6
    gcalvin is offline Senior Member
    Join Date
    Mar 2010
    Posts
    953
    Rep Power
    5

    Default

    Quote Originally Posted by blf_titi View Post
    First of all, thank you Gary for the tutorial.

    Second of all, that`s the main problem, I don`t really know what`s the difference between HTML and an applet with servlets or JSP. I don`t know what would be more appropriate. The main idea is that I have my java application, with working GUIs and i would like to make it work from a web browser keeping the GUIs(as much as possible).
    Making your app run from a web browser while keeping your Swing GUI pretty much locks you into writing an Applet. Read some tutorials on Applets, and write some Applets for practice before you tackle the project of converting this application. Most of the work will be pretty straightforward, but you're going to run into a hitch with the Hibernate code -- you're going to want to convert that part of it into a client/server architecture. A web browser is not a good place to store "permanent" information like a Hibernate database. You'll want to keep that on your server, which means you need a protocol for communicating between the Applet and the server.
    Quote Originally Posted by blf_titi View Post
    The main problem is that I`m new to java and I have never done anything like this before. I don`t need anything fancy. It is just supposed to be a college project so all it has to do is show up in the browser and do the things the application does. All we`ve done about this subject in college was a stupid calculator our professor showed us... It was based on beans... so, that`s my "big" experience regarding the subject :-<
    This is a college project -- has your course covered these client/server components? It seems like quite a big chunk to expect you to learn on your own. Can you tell us more about the project? What exactly is being stored in the database?

    -Gary-

Similar Threads

  1. Go back to previous page using session in JSP page
    By gopikarikati009 in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 06-23-2011, 10:30 AM
  2. Replies: 0
    Last Post: 03-02-2010, 08:28 AM
  3. Creating files stopped creating...
    By Dieter in forum Advanced Java
    Replies: 3
    Last Post: 09-25-2009, 11:45 PM
  4. setting the view to a jsp page from a self refeshing page
    By deepal_205 in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 08-15-2008, 04:41 PM
  5. warning that page has expired and i need to refresh the page again
    By 82rathi.angara in forum JavaServer Pages (JSP) and JSTL
    Replies: 5
    Last Post: 07-15-2008, 01:48 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •