peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You can use MySQL

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Would be that because you have wrong idea about applet structure????

Read and learn

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thank you. Let me study more and get back to you later. Pls be ready to respond as soon as possible. Cheers

  1. I have no idea about VB at all, I'm Java fannboy and consider VB to be crap
  2. Pls be ready to respond as soon as possible - is rather arogant to say, each of us have their own life and we did not sign any contract to be here 24/7, therefore you not asked to pay for advice
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sorry, missed that VB in the process of reading other threads. Here are some examples for VB.NET in regards of databases

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Do you actualy care to explain your task properly??????????????????????
The "add staff to my database" can be done manualy or programaticaly with use of programming or scripting language. So explain what you want to do or I drop case, beside being urgent to you it is not urgent to me!

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Can you explain your chaotic post? Also what has Tomcat to do with ASP technology? Tomcat is used for Java web deployment.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Would you mind share your solution with others?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

This should do it for you Adobe website Opening a web page

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Pls, I just created tables in SQL and interface in VB. Waht next? I am new in programming

Why do you answer question with a question? You been asked what you trying to do with your database (view/edit/add/delete/compare data) or any other action for which database can be used... So what is your task or target?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Not possible as original post has a reply. Next time just click "Flag bad post" and type short message.
I will mark the post as solved now.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

The form have to be done in something like PHP/ASP.NET/JSP to validate data submited by user, authenticate and then send email back (often known as server side programming or scripting). MySQL is good solution and simple to connect with variety of languages

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Apache Tomcat FAQ plus learn from Java EE 5 Tutorial plus there are many good books specialy from O'Reilly

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

wikipedia provide short explanation what is error 404
Can you please post your folde structure of project you talking about plus web.xml file

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I think that tag is between script tag

please check once total code

Thanx,
sree

I think the post is over year old. Don't yoy think it is either solved or poster long forgoten about and moved on?
If you have no valuable information to pass, please do not re-open old threads!

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Few more things I just tried

  1. In Managment Studio open diagram, right click on diagram and select "Copy to Clipboard", fire up your favourite image editing tool and past it there. Save in any format you wish.
  2. Use PrintScr on your keyboard to take screenshot of the diagram, open image editing software save in any format you want.
  3. If you have full version of Acrobat you can use print option topush diagrams to Adobe Printer
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You can do that with bmp format no problem at all

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

That is obvious jwenting for bussiness side of things. However I think veledrom wants to learn Oracle so there is no reason for him to do it on old version. Do you agree?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Any reason for you to use version 9 when there is version 10 or the latest 11? Beside they do provide "readme" file that is good to read befor instalation...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Vector format, what you trying to do with them?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Try to clear your browser cache, it may still keep the all setings befor you corrected the problem

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You have to simply love w3schools.com and all the examples which provides, mixed frameset and iframe

OmniX commented: Thanks +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Have look at these scrippets more resources here from google search...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I have few books that I use as references for Java web development Java How to Program (6th edition as it is still using MySQL as main database, 7th edition went for Derby DB), Beginning JSP, JSF & Tomcat Web Development: From Novice to Professional and Tomcat: The Definitive Guide (2nd edition). Many of O'Reilly books are also available for free from their website

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Action requere direction (file name) where to go next so it can look like this

action="http://localhost:8080/ProjectDirectoryName/servlet/NameOfServletWithoutExtension"

, there is advanced way how to work with action element but for that you would have to know something about servlet mapping so leave it for now.
So now on submit button click you go to your servlet, that will initialize connection string, you should retrive values from JSP, validate them and then open connection to DB and do what ever you need. After that do not forget to close conection to DB and redirect process flow to appropriate page.
Note: Validation is part of your job, you have to design it.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Use the first code, the second one is a bad practice.

To your question what should you do with first code. This code is general bridge to setup connection, before this you should collect some data from the form and now you would try to put them in DB or somebody just pressed one of the buttons that has functionality based on some sort of DB communication (get total sum for monthly income in shop for example). So JSP provide input and pass it on the servlet from which you have the opening part. Servlet does form validation if neccesary, proces or retrieve data from DB and provide appropriate re-direction to next JSP (usualy).

Read the tutorials which I gave you link and apply that to what you already got. Also you may want to look at this too

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

This is correct

conn = DriverManager.getConnection("jdbc:mysql://localhost/"+ "visualogic UserName=admin&UserPwd=admin");

port number is only used when you connecting to IP address of server, however as DB is on local machine the keyword "localhost" is used. Secondly 8080 is port for Tomcat not for database

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Well then tell us what you do not understand

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

The "processing.jsp" is not supposed to be there. Connection string uses the database URL jdbc:mysql://localhost/ , database name database_name , database user name UserName=admin and password UserPwd=admin to establish connection with database.

Please read through these Java tutorials, just be aware they using Derby database instead of MySQL

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Your connection string

conn = DriverManager.getConnection("jdbc:mysql://localhost/processing.jsp"
			+ "visualogic?UserName=admin&UserPwd=admin");

VS


my connection string

conn = DriverManager.getConnection("jdbc:mysql://localhost/" 						+ "database_name?user=my_username&password=my_password");

Can you explain me what is the purpose of processing.jsp in your code?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Above example is servlet so it should ba save as java class

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

For once do not use JSP to connect to DB. JSP is for presentation and servlet is for logic. The order should be JSP collect data from user pass it on servlet. Servlet will validate data and if they correct it will attempt to connect to DB. If conection goes well DB operation is processed (insert/update/delete/chceck/retrieve) and servlet retrieve DB respond, after that servlet will either go to next page or return to previous

There is somewhere example how to do it that I posted about 2 years ago and it was recently re-open by somebody

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I also downloaded mysql-connector-java-5.1.6.tar.gz but not quite sure what to do with it.

Extract it, you will get few files one of them is JAR file (mysql-connector-java-5.1.6-bin.jar). Copy JAR file into TOMCAT_DIRECTORY/webapps/your_project_name/WEB-INF/lib , if you do not have lib directory then create one. And you done...

I think other guys can come with other solutions, but this is as simple as it can get

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Just curious as where you may be studing, and also sometimes I get accross same university students as me. In regards of IIS are you sure you looking in right place? See my attachment for what you should see if you wish to add new components to windows that are not part of default OS instalation

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Traicey the complex code is mainly not his. Original code provide nice PHP implementation which tefflox took it and loaded with various bits and pieces of JavaScript

PS: I'm marking it as solved based on original poster comment "I solved it myself"
PS2: Please try to use proper English as "leet" speak or "chatroom" peak is not welcome here. Thank you for understanding

tefflox commented: useless, dictatorial humiliation of two-year member +0
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes, element of page that travel with current page view. It is interesting feature but if is used to much it become iritating for user and unwelcome. Anyway, nice finding and thank you for sharing

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Is the image a background image or element of the page?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Any reason for this complicated approach, mix of PHP and JavaScript if you can do it better with PHP on its own?

PS after merge: Please do not flood forum with multiple posts!

tefflox commented: posted a non-useful response with an infraction....... +0
~s.o.s~ commented: Equlizer; one performing mod duties should never be needlessly penalized. +21
majestic0110 commented: Agree with ~s.o.s.~ there. Peter you always moderate fairly and efficiently! +3
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I have the same prob too :-( Any suggestions?

That problem description is very inacurate, you better provide full description of your problem...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You can install IIS in Windows XP from Control Panel (select Add or Remove Programs >> Add/Remove Windows Components and make selection of IIS, default seting would be OK. You will need XP instalation CD), but there is no official support for XP Home also there are no download links for IIS. Here is official link from Microsoft on How to on Vista

PS: Are you Westminster Uni student by any chance? Just curious as I seen other your's questions on the forum...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Here is nice tutorial http://kennybellew.com/tutorial/

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

This should solve your problem

this.onEnterFrame = function() 
{
    if (ASnative(800, 2)(1)) 
    {
        trace ("You have pressed or depressed the left mouse button");
    }
}

If you swap (1) for (2) you get right mouse press and if you swap it for (4) you can take care of middle mouse button

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

hello peter ..
this side jeet..
peter actully write now i am working on chatting programe.. so i need help about it ...if u have a script related chatting using java.... frowarded me ..
thannx..........

As per me original post, get your hands on the book and learn how to do it. Besides I do not have any scripts, but I had long time ago code examples from that book. You can actualy get examples if you register with deitel website. However without book explanation they are useless for beginner and your teacher will find it out

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Layouts are your friends

add(topPanel, BorderLayout.NORTH);

You should have go on these tutorials

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Threads joined.
sudhakary_rao please do not multipost for same problem, continue with original post just give updated details of the problem

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Your webhosting company will need details of your domain to set them on their system. In these days it is often free transfer and they will tell you what they need. Also you may need to make changes to DNS (Domain name server) don't know 123-reg com and co.uk are same company, but they support team should be able to help you. What they will need is the names of primary and secondary DNS given to you be webhosting company

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

FTP client need address where to connect that usually look like ftp.peterbudo.com , then the name of host directory often directory /public_html and username and password. It is common practice to set FTP client in passive mode

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Most of the hosting companies provides some way to upload, some better then other. However usually they will allow to use ftp client. It is realy up to you what is your preference.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Did you bought just domain or also web hosting space from the company?
How do you upload you documents to what ever provider you use?
Also file/31274683/5cd5c36e/index.html look like unwanted prefix you should remove to correctly display you index page. What I mean is that it does look like you uploaded whole folder structure from what evet editor you used to created your pages and you should upload only the level where are your HTML/PHP/ASP documents plus what ever attachment you got with them...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

JSP is for presentation only (meaning to provide interface for web page), servlet is proper component to setup connection with database. So the process should be as follows

  1. JSP - to collect data
  2. Servlet - execute logic
    • Data retrival
    • Validation
    • Connection to DB
    • Retriving any data from DB
    • Possibly saving in session
  3. JSP - to display outcome

Validation also can be done on the JSP befor submit, but then you have to know JavaScript or similar