peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

On form validation can be done with JavaScript or AJAX. However after submit you do not want to send the page to a JSP for further processing, but you want to send it to servlet. Have look on the second post in this thread

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes, of course just make a post in VB 4/5/6 of the forum

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I am Coldfusion Expert with 3 year exp. I worked in various coldfusion versions Coldfusion5,Coldfusion6 MX,Coldfusion7 MX,Coldfusion 8. I am alos epert in various types of frame works such as Model_glue,Mvc,fuse box . I Have a good base in Different databases such as Db2,Sqlserver 2005,Sqlserver 2000,My Sql, Ms Access, Etc. I have also good base in different technologies such as Javascript,Java,Ext Js,Jquery, Ajax,Adobe AIR etc
I have Little Knowledge In flex too
If you are Interested Please contact me
mail:<EMAIL SNIPPED>

That post 3 years old...
Enjoy it ...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

since it is going to be a standalone non-web based application... why are you considering using html and applets?

Presumably because he is another drag&drop user of Dreamweaver...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Maybe when you read for example this you will get why

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

OK, I downloaded files, but first I will have to re-install NetBeans as I have the simplest package for Java coding and Mobility Pack

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Please fell free to search forum for project suggestions. Many ideas been already posted

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
  1. Use of code tag [code] YOUR CODE HERE [/code] while posting any code, even one line, is mandatory
  2. @"Above code is for JSP its not running please tell me the error and how to run this file." - it is up to you to tell us what sort of errors you getting, or you think we will flood ours servers with all error filed codes posted from everyone?
  3. Database connectivity from JSP is RUDE thing to do

PS: Can you explain what you are planning to do with JOptionPane.showMessageDialog() in JSP?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@james1700 - in this case it is OK

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I did not pay attention to first question, because of missing code tags therefore the Arrays.sort() is not best solution. I would recommend to get price and items in two dimensional array and use sorting algorithm like bubble sort on the price part of the array to get things in desired order

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

i tried using

import java.util.Arrays;

so as to use the method Arrays.sort(); but it only shows the highest instead, i would like the 2 lowest value plaease.

As it says in API "Sorts the specified array of doubles into ascending numerical order." that mean first two values in array are the lowest. If you look at the end you will obviously get the largest number

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes you can attach compressed copy (in ZIP) of your project.
And it would be possible to have one servlet handling all, but I would advice against it (Java file with hundreds lines doesn't look pretty either ) and recommend splitting on more servlets to handle similar requests

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Arrays class with its sort() methods is all you need

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Confused??? The website is nicely arranged in categories with similar topics. The whole three structure is visible at home page http://www.daniweb.com/
So if you still think you can not find something just let us know and we will guide you...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thread from JSP been moved to JavaScript section and merged with the one you created in JavaScript section.

brr - if somebody in the future tell you in wrong forum this does not mean you have to go there and create another post there. By doing so you breaching forum rule Keep It Organized - forum flooding. Just click on "Flag Bad Post" and type short message "Please move to JavaScript section" and moderators will take care of it as soon they seen it.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

It may not necessary webhost fault if you mess up with file privileges....

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I was just told you made another post in VB.NET section of the forum. It is not nice to flood forum with same questions in various sections of the forum. Please do not do so in the future as it is against rules. Please have look on forum policies

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Am I correct to say you using GET method instead of POST method?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Is this a VB or VB.NET coding?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

people say dreamweaver is powerfull.but as i see ,i can not edit php in it.

You better to explain your statement

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Actually, the source for that answer is right here

Sorry for linking, but this is just the "safe way" to do it.

wikipedia in general is non-problematic for external resource linking

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

This seems to be interesting tutorial (http://multimedia.journalism.berkeley.edu/tutorials/webdesign/flash/slideshow/), plus site holds some additional resources. I did not work with Flash for long time but I would be able to built it on these steps and adding mouseOver action listener would be only cherry on the top

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Now here is crucial question: "Do you want to submit only average project and forget about it or you want to get best out of your project and learn something?"
If

  1. answer is I want average project and forget about it, then continue as you started. Unfortunately I do not see many members want to help with such lousy coding...
  2. answer is I want to submit best project and learn in same time, then you will take this design to Database Design section and seek advice on current state of your DB design as there are serious flows in it. For example, aren't they supposed to be same?
    CREATE TABLE markedevent
    (
     userid   int(4)  NOT NULL ,
     eventid      int(4)  NOT NULL,
      PRIMARY KEY ( userid)
    );
    
    
    CREATE TABLE  Event
    (
      Eventid     int(4)  NOT NULL  AUTO_INCREMENT,
      Description   varchar (255)  NOT NULL,
      Publish       varchar(20)   NOT NULL,
      Questionid   int(4)    NOT NULL,
      Targetgroup   varchar(70)   NOT NULL,
       Anonymous  varchar(15)   NOT NULL,
       PRIMARY KEY (  Eventid )
    );
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Just few days ago some suggestions been made in this post http://www.daniweb.com/forums/thread136641.html. Please search the forum many questions are already answered...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sound like a game for small kids. Back home we call it "pexeso". You have set of cards with images in which each of the cards has it's pair. Mix the card, put them on the surface, face down (most commonly they will be put in some grid), and game can start. Player will choose 2 cards and turn them face up. If they have same image on then he will takes the cards, else he have to turn them face down again. Then is next player turn and so forward...
Is this the sort of the game you working on Motvel?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@hny_lyn

  1. Read the rules, no request for homework solutions to be send over by email or PM
  2. "i need the answer as soon as possible!!" is rude thing to say, we will help when we want, it doesn't matter to us that when you need to submit this home work
  3. a code that has exception attached to main method is one of the worst things and we do not like to see it

if you want it in JFrame then i've done it. Let me know if you still need it.

If you think you helping him, you are mistaken. By giving the code, hny_lyn will learn nothing. Copy & paste is not a solution when you learning

Ezzaral commented: Agree with all of this. +10
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

So people can help you with it! It wouldn't help you too much if I provided shopping cart in JSP, don't you think so?
Do you want this post to move into PHP section of the forum or ASP section? (Just to speed up process as Graphics and multimedia is for different things)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Can you get me full table descriptions with indication of primary keys? (Just table structure, not interested in data inside table)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

What are the major views that admin and student get?
Like admin will see some of these options

  • add
  • delete
  • modify

I want to know what exactly is available to them and in what kind of form (links, buttons etc)?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

HOw to get random number between 0 -35

Random rand = new Random();
int num = rand.nextInt(35);
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

For that you choose very bad example as I can do it in least two ways and it will have nothing to do with JSP scriplets

  • Each button in its own form where button click will trigger different action
  • Two images of buttons working as links, once you click on one of them you go to different page
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you provide more in detail description of your problem/project then "in my jsp project there are nearly 35 jsp pages" and explain how you got to that conclusion you may actually get some precious suggestions...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

It is YOUR school work/work project so deal with it if you ignore advice from others with more experiences!

stephen84s commented: Now is this a rare sign of frustration from the Tiger ;-) +2
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

String array of A-Z characters and integers 0-9, which makes 36 elements (26 letters plus 10 numbers). Create random number generator between 0-35 with "i" loop to get password of certain length. Wouldn't be that the simplest solution?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

http://www.echoecho.com/applets01.htm

That was quick example with lousy explanation. For proper stuff go to Sun website Lesson: Applets

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

In your case there possibility of more then one answer

  1. 3 or 4 tables that will put together questionar
  2. combination of database and coding coordination. Database can hold question with possible answer/s but you can also have field for page/coding action "create text field/area", "sort" that will trigger certain actions on your page
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Would be nice to know what you intend to use PHP/ASP or ASP.NET/JSP....

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes, this one "The Java EE 5 Tutorial"

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@charles - welcome (your post been also moved to appropriate section)
@MakeMoneyOnline - would be nice if you in the future marked such post as this one "Flag Bad Post" and typed shorted message such as "Wrong forum" to let moderators to know. Thanx

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

save your file with the ext. of .css
if you give the css file name style.css

when you call the css style sheet in you html page give the code

<link rel="stylesheet" href="style.css" />

Man when do you start reading posts as whole, not just section you want!
Question asked was how do I save my external CSS in notepad, not how do I call my CSS in web site document!

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You have problem with yours prepareStatement.
Have look at this tutorial it will explain it to you. After that if you still have problems just post bellow.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Pl. help in handling button events in JSP like calling a servlet on Button click or executing java code.

What to do if more than 1 buttons are there??Plz help in that case..!

Description of the problem in both cases is inaccurate. Please provide better description and supporting examples of coding

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
  1. Create random generator between zero to five
  2. Get output number from it.
  3. The return number will be array position of a word to display
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

well guys i know you people are professional so can u plz recommand a best book of java which make me familier with java..thx

I'm not professional, I'm student! Still learning and working toward my next degree.
School library is always good place to look for start, however keep in mind that if the book is about Java older then 1.5 it has no real value to you as beginner. As jasimp said have look at that topic many valuable resources are recommended there...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@ r3dbranch & ThatsNotJack! this thread is over year old!

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Why do you use ODBC driver? Just curious, as Java programmer I use JDBC. Also many experienced members and programmers complained about ODBC being very badly written...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Why to write to file if you can handle click count nicer on server side?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

LOL, somebody is trying for clever. How about creating file through command line? Faster then extra click in dialogue menus. I can do that...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No, the new file which you create is outside the JAR file

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No you cannot update text file inside the JAR. You can only created one with help of jar and then you can update it. However you facing main problem, what if user delete that file? JAR will create new one, but then you not getting accurate count