Results 1 to 6 of 6
Thread: Need help creating Web Page
- 06-28-2010, 01:53 PM #1
Member
- Join Date
- Jun 2010
- Posts
- 4
- Rep Power
- 0
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!
- 06-28-2010, 11:10 PM #2
Senior Member
- Join Date
- Mar 2010
- Posts
- 953
- Rep Power
- 4
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-
- 06-28-2010, 11:56 PM #3
What framework for this? PHP, HTML and an applet with servlets or JSP or ???how can i make my application run from a web browser.
Many choices on how to configure your app.
- 06-29-2010, 08:20 AM #4
Member
- Join Date
- Jun 2010
- Posts
- 4
- Rep Power
- 0
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 :-<
- 06-29-2010, 12:56 PM #5
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.
- 06-29-2010, 04:12 PM #6
Senior Member
- Join Date
- Mar 2010
- Posts
- 953
- Rep Power
- 4
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.
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
-
Go back to previous page using session in JSP page
By gopikarikati009 in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 06-23-2011, 10:30 AM -
May in an <iframe> include any server side page? If yes in a cfm page may include a J
By lse123 in forum New To JavaReplies: 0Last Post: 03-02-2010, 08:28 AM -
Creating files stopped creating...
By Dieter in forum Advanced JavaReplies: 3Last Post: 09-25-2009, 11:45 PM -
setting the view to a jsp page from a self refeshing page
By deepal_205 in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 08-15-2008, 04:41 PM -
warning that page has expired and i need to refresh the page again
By 82rathi.angara in forum JavaServer Pages (JSP) and JSTLReplies: 5Last Post: 07-15-2008, 01:48 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks