473,320 Members | 1,600 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Web development help needed?

Sl1ver
196 100+
say i add a textbox in html and a button, how do i assign functions to it

e.g. how will i write a piece of code that will know when the button has been pressed and will set a label to what was typed in the textbox?
Sep 9 '09 #1
12 1573
r035198x
13,262 8TB
You can do all that using Javascript which is not Java. So you want to ask that in the Javascript forum.
Sep 9 '09 #2
Frinavale
9,735 Expert Mod 8TB
It would be a good idea to describe what you've tried so far to solve the problem.

Right now you're pretty much asking "how to write a program" and so we have no idea where to begin...

Please take the time to research the problem before you post your question. The experts here are more than willing to help you with a specific problem but you have to do your part to learn the basics.

I would recommend starting with some basic JSP tutorials (just google for some). Start with print "Hello World" into the web page and the move up to "Hello username" where username is retrieved from the textbox.

(here's an example of a tutorial that you could have found by googling)
Sep 21 '09 #3
Sl1ver
196 100+
Thanx for the reply and the tutorial. I created a username field on index.jsp
How do i call the webservice if the form is processed.
And i created a connection to the database using a function within netbeans. and it created a datasource. how do i connect the webservice to the datasource? just 2 very simple questions i need help with
Sep 22 '09 #4
Sl1ver
196 100+
thanx for the help everyone, i found the perfect example i needed @ http://www.netbeans.org/kb/55/mysql-webapp.html#
Sep 22 '09 #5
Frinavale
9,735 Expert Mod 8TB
I'm happy you found a resource that helped you!

I hope you understand that there's a difference between JSP pages and Web Services. If you have the time I'd recommend you research web services because they are really cool!

-Frinny
Sep 22 '09 #6
Sl1ver
196 100+
Yes, i do understand the difference. I just need a example of the basic of how they interact and how to do some basic stuff in web service. Im busy with a auction website as a project. but after that i will defenitly look deeper into web service as im very inetersted in web development
Sep 22 '09 #7
Frinavale
9,735 Expert Mod 8TB
They aren't really that basic...

I don't know what your experience is with Web Services so I'm not sure were to begin to help you.

What do you already know?
What have you tried to do so far with web services? What do you want to do with them?

-Frinny
Sep 22 '09 #8
Sl1ver
196 100+
I looked into a lil C# webservices never really worked with them until now that i have to do thisrpoject. with this tut i got now, i will know the basics. and it looks like most in Netbeans webservices is programmed in java. And i think the web service is there to make a website(application) more dynamic in forms of communicating. I just need to know how to connect to the database and perform basic query's asked from a jsp page and return a result, and the tutorial pretty much shows me that. Not looking into hectic webservices for now
Sep 22 '09 #9
Sl1ver
196 100+
Sorry, whent through the tut and doesn't use web services. Can you maybe just explain where to create a connection to the jdbc:odbc driver in netbeans and a simple method that uses the connection?
Sep 22 '09 #10
Frinavale
9,735 Expert Mod 8TB
Haha, I didn't understand what "tut" was 'til just now!

When should your application be connecting to the database?

-Frinny
Sep 22 '09 #11
Sl1ver
196 100+
lol, all data in the project should use web services, so i think the jsp pages should only call the web services and th webservice will make the connection. So i guess a connection should be made everytime the webservice is called(everytime a method from the service is called)
Sep 22 '09 #12
Frinavale
9,735 Expert Mod 8TB
I thought you said that you didn't want to get into the chaos of learning Web Services in Java right now?

You know what....you need to take a step back for a second and learn Web Services if it's a requirement in your application.

Just create a simple "Hello World" web service first and then modify it to do other things (like connect to a database).

You're just going to get overwhelmed if you start learning everything at the same time...well, at least I would.

My Java skills are a little rusty but you should probably check out the javax-jws package. It's used to create web services in Java.

Check out this tutorial on creating a web service with netbeans (found it on the netbeans site). It explains how to create, deploy, and consume a web service in detail.

Once you have a working web service we can look into connecting it to a database...however, it seems pretty straight forward to me on how to do this (use the jdbc driver to connect to your database, retrieve what you need, and return it...make sure you have the jdbc driver installed on the server).

-Frinny
Sep 22 '09 #13

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Doug Broadwell | last post by:
I'm getting ready to start a fairly large application to be hosted on SQL-Server. In the past I have used Access 2002 (as a front end, wasn't happy with the number of bugs I ran into),...
0
by: M.sajjad | last post by:
Five Steps to Rapid Development with TierDeveloper 3.0 Unlock the power of rapid development when you use TierDeveloper from AlachiSoft in your N-Tier application development. Follow the steps...
4
by: Jared Thirsk | last post by:
== Introduction to DAF == I am interested in the next generation of approaches to software development. Over the last decades, there has been an obvious shift in how our most complex software...
16
by: Linus | last post by:
Being a ASP developer for a consultant company thinking of starting developing with ASP.NET I have read literally hundreds of web pages and posts in discussion forums on the Internet to get an idea...
4
by: Collin Peters | last post by:
I have searched the Internet... but haven't found much relating to this. I am wondering on what the best practices are for migrating a developmemnt database to a release database. Here is the...
5
by: Steve | last post by:
Hi, I am sitting down to design our next set of internal apps. I would like to approach this in a way that would allow me to break logical parts of the application that handle specific tasks...
23
by: Steve Barnett | last post by:
Ok, I've never done n-Tier development and I'm getting confused... Assuming I have a business layer and a data access layer that may be running on different machines, how does my business layer...
4
by: Richard Levasseur | last post by:
(Forewarning, most of these problems and solutions come from being the only developer in a 1 server department with no budget, few resources, unresponsive IT, and non-technical managers, so thats...
4
by: MPA | last post by:
Hi, We are a small company with experience in client-server apps with PowerBuilder and most major databases. We have no internet experience. We are now looking into slimming our main application,...
9
by: abprules | last post by:
Can somehow tell me the best way for multi user development to occur in MS Access? The situation is: We are creating a new database for a small company. There are 2 of us who want to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.