peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Forum rules are clear on what is allowed and expected in case of homework

Do provide evidence of having done some work yourself if posting questions from school or work assignments.

Secondly proper English something expected on anyone around here, meaning sentence starts with capital letter, there is nothing like "plz". I hope you get what I'm saying...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I have another query.

When i started learning Servlets and JSP, i come to know that whenever we make any changes in our website project files, then we need to restart our server to implement those changes.

Now suppose when my website is accessed by thousands of people each second/minute, at that time if I try to restart server then my website will become inaccessible for some minutes, isn't it a drawback and unhappy users??

Secondly to jwenting comment, it is usual practice that you will have development server and production. Dev is for continuous development bug fixing and production gets major or regular updates where you can notify users about any downtime.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I registered there, but I really don't like G+. I don't like its interface and look and feel...

I bet that reasons would be simple, it doesn't look and feel as facebook. Sorry your reasons are just weak. Example, any time Dani introduce new interface most of people hate it. Does it mean she will loose all these users. No.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Do provide evidence of having done some work yourself if posting questions from school or work assignments

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Set is just an interface that other classes if using it need to implement its methods. Not sure what you want to code there...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You can do it with Selenium

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thread closed!
Please follow further discussion here

@ali11 creating multiple entries with same question is unwelcome practice.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There is whole thread dedicated to learning and working resources in Java that includes recommended books also. Top of this forum Starting "Java" [Java tutorials / resources / faq]. Back at school I used to work with Java How to Program from Deitel & Deitel. It goes from basics to advanced topics, to collections and multithreading. Plus it does covers GUI, networking, database connectivity, applets and basics of Java web development (JSP, servlets, JSF)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Well done. My advise was leading you to this. Why? If you had first check for all entry are as expected sample

if(pass == confirmPass && email !=empty)

you would be curious why on earth is "==" not working and therefore you would have come to conclusion as many before that you need to use equal

if(pass.equals(confirmPass))

It is better if you search and learn instead of handling out you directly the answer (my opinion).

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

In your original code you used totalCredits += credits; that according to your come does algorithm for finding the GPA where earlier in the code you says that if/else statement String of if and else statements that set the number to the appropriate GPA
Therefore it was my understanding that if you want to get credits from given grade you need to run the grade through if/else statement that will provided you with a number that in my understanding is your credits.

If my assumption is not correct please correct me.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Turn around your validation, instead of checking if is empty and passwords not equal check for true of passwords equal and email not being empty (then you logged) after it run other checks such as passwords not equal and email empty.
In this simple(I say simple as in real life there will be more complex validations to do) always go for "pass" scenario and only after that work on possible fails

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Suggestion, move that long if/else statement to its own method with return of double(example private static double credits(String Grade) ), when you read in grade call this method as totalCredits += credits(Grade); . See how that works for you ;)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Though, when i click the button twice, it opens a new tab.

It will eventually be used in a loop to open different websites upon click.

is there anyway to stop it from opening a new tab and just open the next webpage on the current tab?

or close out the last tab before opening a new tab?

You would need to use library such as WebDriver or Selenium

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No attempt on homework. Thread closed!

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You should be connecting to MySQL database not to phpMyAdmin tool, which is just webalized GUI for your database. Use just plain localhost as con = DriverManager.getConnection("jdbc:mysql://localhost/bit5", "root", ""); or with MySQL default port number con = DriverManager.getConnection("jdbc:mysql://localhost:3306/bit5", "root", "");

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

First and last impression why on earth you want to collect dat from JSP and then handle it over to PHP for DB insert. Either use JSP and servlets, or just PHP

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

The interface is better than Facebook (not a difficult feat), but my prediction is that Google+ will fail miserably since Facebook has already hit critical mass and will be extremely hard to compete with.

Java developer hut on - nothing I can use it for
Photographer hut on - love it, I can share my photos with public and receive critique, follow and chat with other photographers

So for me it has specific usage

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thread locked! No effort

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You not only one, check this bug

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Poor problem description. You need to explain more what is your problem

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@BitBlt Ezzaral took care of them

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Wow sounds like you needed to vent.

i feel you pain though i'm playing battleField 3 at the moment and although you are put in squads there's not much point in them everyone runs around like headless chickens and with little to no tactics other than run forward untill you get shot.

One of the reason why people in FPS games create clans/clubs and talk over TeamSpeak etc. Nobody listen to public VoIP, not interested in rubbish language.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Moved to PHP section as this has nothing to do with JSP - Java Server Pages

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You can always test it on local installation of Tomcat/GlassFish/Jetty/JBoss App Server etc
If you still persist on free hosting then good luck with it

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Oii do not be so taught on guy. Beside stuff like this where you are establishing connection with something is more or less same for any code...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

depends on the extend. If the project/assignment is small you should reference it. However if you have some large piece and used something like quick sort, then it is not worth mentioning

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Doesn't seems to be possible with select & options. One of the way I seen suggested was with div and JavaScript

javaAddict commented: Thanks for the reply +13
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Unlikely some one can help with amount of code you shared. I can only suggest debugging and follow logic to find out why you getting null point exception

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

How are we supposed to help if you are providing zero to none info? No idea what is your project about, no idea what technologies are used, no idea in what sort of environment ou are trying to run it.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I'm not here to reinvent the wheel, so here you go:

  • learn how to upload file through JSP
  • use library such as SyntaxHighlighter
  • work on your project and if you have any problems post back, but in correct forum section
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There are many plot/chart libraries you can use, example JavaPlot

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Once you get SessionFactory you call for getCurrentSession() that will get you Session and through session you can save and update object

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You call java employee1 but error code says Employee1. Make sure that you use exact letters capitalization as java is not like html

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You need to look into JavaScript/Ajax area. JSP are just static pages with limited interaction

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Which version of Hibernate are you using?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I never asked about Java.

I also want it to make it onclick on the textbox, not a button.

When they click the textbox, if the value is "username" it will empty it for another value, else no changes happens.

You posted in JSP, that stands for Java Server Pages, which is miles away from JavaScript. Make sure you know where you posting next time. Post moved!

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You need to include Connector/J JAR file in your project and look up basic codes for java to db connectivity

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Honestly, I do not know anyone of this forum that can help you with this.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Download the rar of the project, open it in IDE, compile it and run it. Was that hard?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No, you need Tomcat or any other Java server/container, you have to provide proper folder structure for project to be deployed on server/container

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Did you ever considered that is not 24/7 coding solution, or that perhaps people do not want to do anything with coders that insist to do stuff directly from JSP or perhaps people do not know or are not interested.
Count me in the group "do not want to touch code with direct JSP manipulation". Word of advice, it is possible, I do use it often when I change CSS settings of my blog that is run on open source project called Pebble. There is your solution, go through code and find you solution there...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

It seems to be some sort of GUI with two text areas and some menu options. What can it do I have no idea and expect nobody else here. You seems to be given assignment and one of your classmates shared solution with you...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Can you post some screenshots what you actually seing, as from above description none would be any wise.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If it is project(you have source code) created with IDE (NetBeans) you just hit Run and that will take care of clean+compile+execute if there are no errors. However I'm not aware of possibility to run directly JAR from IDE

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Not enough info. Is the project you try to execute available online or is it private stuff?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thread closed!

Please follow any further discussion here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thread close as it has double here.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1) Failed to read forum faq and therefore failed on do not hijack old thread with your own question (now it is in new thread)
2) Failed to provide name of the manufacturer and model number so we can not check if device is actually able to run midlet and if it is able to run then which version

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Of course possible, see here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Two ints and a float are in a bar. They spot an attractive double on her own.

The first int walks up to her. “Hey, baby”, he says, “my VM or yours”. She slaps him and he walks back dejected.

The second int walks over. “Hey, cute-stuff, can I lick your Bean?”. After a quick slapping, he too walks back.

The float then ambles over casually. “Were those two primitive types bothering you?”, he remarks.

“Yes. I’m so glad you’re here”, she says. “They just had no Class!”