Results 1 to 20 of 20
- 02-08-2012, 01:21 PM #1
Member
- Join Date
- Feb 2012
- Posts
- 43
- Rep Power
- 0
Need help to develop a web based application using awt,swing,sql etc
Hi people,
I want to make a simple web based application using core and advance java(not a browser application)
including awt,swing,sql etc
i am completely naive in this please tell me how this kind of applications 'work' and how to 'develop' them.
i have to submit a project and want to do it on my own.
please do help.
Regards,
Adiotrox
- 02-08-2012, 02:50 PM #2
Re: Need help to develop a web based application using awt,swing,sql etc
Don't double post. The other thread you started in the AWT/Swing section has been removed.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 02-08-2012, 06:37 PM #3
Member
- Join Date
- Feb 2012
- Posts
- 43
- Rep Power
- 0
Re: Need help to develop a web based application using awt,swing,sql etc
he db can you also help me to solve my problem
-
Re: Need help to develop a web based application using awt,swing,sql etc
- Your question is a bit broad. Can you narrow down the specifics as to what particulars have you confused? If everything, then you may wish to do some Googling and studying to get an initial grasp on things.
- Also consider searching out and using a local mentor. If this is for an academic project, and you're really a newbie at all of this, you're taking quite a big bite, hopefully not too big, and a local mentor could help immensely.
- 02-09-2012, 05:06 AM #5
Member
- Join Date
- Feb 2012
- Posts
- 43
- Rep Power
- 0
Re: Need help to develop a web based application using awt,swing,sql etc
can i use jdbc-odbc bridge driver for a database server so that it will be able to access data through internet for my java application?
- 02-09-2012, 07:15 AM #6
Re: Need help to develop a web based application using awt,swing,sql etc
You've already been asked not to double post. I've removed one more thread about this that you started in the AWT/Swing forum.
Any further double posting will lead to a ban. No further warning will be given.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 02-09-2012, 09:55 AM #7
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: Need help to develop a web based application using awt,swing,sql etc
Either do a simple web app first, no database, or do a desktop app with a database.
Don't try and learn all these technologies at once.
As for your question, go for a simple free database (something like JavaDB, but there are others) and use the JDBC driver that comes with that.
ALso, you don't open up your database to the internet. You would have a web server inbetween that talks to the database and the client.
- 02-09-2012, 10:48 AM #8
Senior Member
- Join Date
- Jan 2012
- Posts
- 210
- Rep Power
- 2
- 02-09-2012, 12:24 PM #9
Re: Need help to develop a web based application using awt,swing,sql etc
Am also a beginner.. Having seen that none helped you so far, let me tell you what i know..
1.Database part
Hope u know to crete database and basic querries to create tables and other components in sql management studio..
U need to add your sql server: control panel -> AdminTools -> DataSources (ODBC) -> Add -> SQL server -> Name:Test -> Server:. -> with windowsNT authentication -> change the default database -> finish ->Testdata source ->ok
Note: we entered the server as "." (u need this later when u log in to management studio)
You can querry in management studio or through your program
2.Connection to database from program
u add to imports java.sql.*;
You need to choose driver and also connect. the following are the codes.
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:Test"," username","password");
//Test is the server that we created. username n password if any.
Using PreparedStatement u can issue querries. Hope you know that.
3.Web based
You need to be more specific. I feel what u mean is a servlet.. If u are using NetBeans, selecting New WebBased Project itself will give you a layout..
Hope you know awt and swing components. Make your design and navigate to another page using response.sendRedirect("example") or request.getRequestDispatcher("example") depending on whether the target is html or java page..
If you post a better idea of what your project is, or be more specific, i think many will be able to help you..
This is the best forum for java i have seen so far..
Thank You.
- 02-09-2012, 12:41 PM #10
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: Need help to develop a web based application using awt,swing,sql etc
We have helped.
You don't learn 3 or 4 frameworks in one go and expect to actually be able to produce something useable.
As for your help, point 1 is only of any use if you are using SQL Server and, in any case, you should be using a SQL Server specific driver, not the bridge. That applies to any DB (except Acces which I don't htink has a proper driver, but then it should be the last choice of database).
And the other 2 points highlight how vague the OPs post was...they will be almost meaningless since there is no context to them. The OP needs to narrow their sights a bit.
- 02-09-2012, 12:46 PM #11
- 02-09-2012, 12:52 PM #12
- 02-09-2012, 01:02 PM #13
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: Need help to develop a web based application using awt,swing,sql etc
"OP" = "Original Post(er)".
- 02-09-2012, 02:12 PM #14
Member
- Join Date
- Feb 2012
- Posts
- 43
- Rep Power
- 0
Re: Need help to develop a web based application using awt,swing,sql etc
This is what i want to make-
An "e-diary" which stores all of your phone no.,address books,personal details,it should be a web based application so that all of your data is stored safely in a remote server.
what i want to know:-
1. can i develop an application using awt,swing for the client side(no need of browser),which will be install at client's side?
2. then to store and access data from database server..what exactly has to be done ?
And i appreciate all of your suggestions above.
Regards,
Adiotrox
- 02-09-2012, 02:29 PM #15
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: Need help to develop a web based application using awt,swing,sql etc
OK.
Yes you can.
For security purposes you do not want to expose your database to the internet directly, so you'll want a webapp between, probably a simple web service. Up to you whether it's RESTful or SOAP.
Your client will talk to this service to access/update the data in the database.
So, that's Swing, JWS (or some other WS framework), JDBC, web server, database to learn. I've probably missed a technology or two there as well.
- 02-09-2012, 03:28 PM #16
Member
- Join Date
- Feb 2012
- Posts
- 43
- Rep Power
- 0
Re: Need help to develop a web based application using awt,swing,sql etc
@Tolls Thanks.
I Thinks i can drop the RESTful or SOAP part as i am a newbie and is JWS necessary??(might increase the complexity for me :) ).
1.Is it possible to make the application for client side using swing and then directly connect the application with the web server and web server to the database using jdbc??
*How to connect the swing application with the web server?
2.If i just go for a desktop application then only swing,jdbc and database is sufficient?
note:can you become my mentor?
- 02-09-2012, 04:04 PM #17
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: Need help to develop a web based application using awt,swing,sql etc
So how are you going to talk to the web server then?
That's my point.
You talk to web servers via Http. So you can go straight Http (which would be a case of roll-your-own REST), or use pre-existing frameworks (eg one of the JWS bits, which are a web service framework).
I was going to suggest 2 anyway, as a start point if nothing else.
Write a desktop app that does what you want, talking to a database on the same machine.
Write it such that you can "unplug" the database access parts (as a separate package).
Then you can unplug that bit and plug in something that talks to a web server instead for the database access.
If this sounds like a lot of gobbledigook then that's because (as I said earlier) you were asking to do rather a lot for someone new to Java.
- 02-09-2012, 05:53 PM #18
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
Re: Need help to develop a web based application using awt,swing,sql etc
When people rob a bank they get a penalty; when banks rob people they get a bonus.
- 02-09-2012, 06:14 PM #19
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: Need help to develop a web based application using awt,swing,sql etc
Ours just leave unencrypted laptops and pen drives filled with state secrets lying around on trains and park benches.
Who needs exposed databases?
- 02-09-2012, 08:29 PM #20
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
Re: Need help to develop a web based application using awt,swing,sql etc
When people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
How to develop a standalone application using java
By santhoshkeleti in forum New To JavaReplies: 2Last Post: 11-15-2011, 06:21 PM -
How to loop forever in Swing-based Java app
By GuiRitter in forum AWT / SwingReplies: 10Last Post: 04-28-2011, 10:16 AM -
Error in running swing based sample application.
By adityadham in forum SWT / JFaceReplies: 3Last Post: 10-20-2010, 04:24 AM -
Error in running swing based sample application.
By adityadham in forum AWT / SwingReplies: 2Last Post: 10-19-2010, 04:04 PM -
Can some one suggest me, which is the best framework to develop desktop application?
By nanaji in forum Advanced JavaReplies: 7Last Post: 12-10-2008, 05:24 AM


5Likes
LinkBack URL
About LinkBacks
Reply With Quote


Bookmarks