peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sometimes slow internet connection or poster inpatient (hitting submit button twice) can do such thing.

If you come across post and you think there is something wrong with the post please use "Flag Bad Post" and type short message as "Double post + link( to double) or "Spam please delete". Shouting in post is inefficient....

Alex Edwards commented: I didn't know that - thanks! +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Kindly give me some guidelines regarding below issue.
Why should we do so? You so many times asked for help to just get quick solution and completely ignored other suggestions (I know I made most of the suggestions).

@Database structure - re do it, what you provided is ineffective rubbish

The whole questions/exam database is incorrectly lay out.

Take example college or university

  1. It is unlike that all student will be studying for same same degree (bioscience, IT, art, music etc.)
  2. It is unlike that even if they study for same degree they will take all same modules (IT students - programming languages C, C++, C#, Java; web development - HTML, PHP, ASP, ASP.NET, etc)
  3. they are on different level of study ( college/ university, 1st, 2nd, 3rd year of study)

Therefore when student log in, from his account info you should be able to pick up degree he/she is working toward, what level/year is in, what modules is taking and offer only test/exam relevant to that person. Also once the student took that exam it should not be available again to that person

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

for loop from 1 to 19
if statement is num%2 == 1
yes, add to sum
no, next number
problem solved

Alex Edwards commented: Hah, you are quite the comedian =P +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Please read:

  1. the forum rules
  2. sticky on homeworks

after that reformulate your question

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

The more appropriate/correct way to do it is to put jar files required by project in PROJECT_DIRECTORY/WEB-INF/lib

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

SOlving question asked by yourself? Odd...

There are actually people around here that do like to search for the answer and if they find it they will post it. Only waiting to get your question answered is waste of time...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I do not understand what this has to do with database?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There can be only one primary key per table! However you can have multiple foreign keys...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Only people who can mark thread as solved is original poster or member of moderators team, but we usually leave it to poster

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Not sure if it is possible...
If you found something about it, please leave some info

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Dude you should be slapped on your back side, you should know better then re-open 3 and half year old post and provide ZERO solution just pointless comment

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Ouch IE, I thought they forbid the use of this nasty...

Problem A) Creating new site in Dreamweaver may be related to creating new folder structure for each separate project on local pc (it is not clear from original post what thawk1 meant by that)

Problem B) "See for public_HTML folder" this may not exist on the server due the server not being Apache (Tomcat and IIS use different structure) or may be replaced by something else which admin thought to be appropriate (for nearly 2 years freedom 2 surf internet service provider in UK used different folder structure, just before me moving to different ISP they been changing that)

It would be really nice if thawk1 come back and explained all dark are that come out of his post

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

Please provide error messages you got from server

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Netbeans IDE
Eclipse IDE
IntelliJ IDEA

Which from the above the the BEST, USER FRIENDLY, COMPLETE IDE to use to design/create GUI for Java based programs. Please advise. Thanks.

That is matter of personal opinion and everybody has his own. I will put these IDEs in order I like them

  1. IntelliJ IDEA
  2. NetBeans
  3. Eclipse
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Google is your friend "JSP+progress bar+tutorial"

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

This is the javascript forum, not Java.

Why don't you use the "Flag Bad Post" option and type sort message "Move this post to JSP section" let moderators know something may be wrong with the post, instead of shouting "This is JavaScript forum, not Java"

And here are some tutorials on iReport

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Have look at w3schools for tutorials on XML , XSL and XSLT. You will find there plenty of tutorials for the start

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
  1. Open XML first as it will tell you which XSLT/XSL it is using as it's "cascading style sheet"
    <?xml-stylesheet type="text/xsl" href="DOCUMENT_NAME.xsl"?>
  2. Read XSLT and read the nodes of XML as requested in XSLT
  3. Create HTML on the fly
  4. Save final document in desired destination

Google search on Java+XML+tutorial

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Did you use finally block in catch clause to finish the operation? Something like this?

try {
    // some data processing
    }
}
catch (XAException e) {
    e.printStackTrace();
}
finally {
    stmt.close();
    con.close();
    xaCon.close();
}

If you have in above manner then please post your code so we can have look at it

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There are just too many unknown variables here. Can you try to clarify with some screenshots of things like your FTP information and maybe links to the pages?

There is no need for FTP info

  1. It is private information
  2. He is able to able to upload files they just don't seems to work

When you log into your webspace what is the folder structure like htdocs, logs, errors perhaps cgi-bin? And where in this folder structure you uploaded your files?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Scanner is only able to read string or the whole line that will return string again. So what you can do is to read scanner, get the string and use the string in one or other way

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thank you for the reply,

I did try your suggestion without success.

What suggestion?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Java Sun website tutorial on JDBC(TM) Database Access

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Just did little bit of search on internet and seems to me there is more trouble with use of the root then you want to go through. Just replace it with html or html,body

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Can you please share solution with us? It may help somebody with similar problem in the future...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Can you please post the JSP file?

PS: Please use code tags here is small help

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I have (in frustration) created a number of new sites in the site manager hoping that I would be "starting clean". I even created a new site, then a new page with only 1 change to the original sample page and I still get the tutorial product after I attempt to 'put' the page online.

Are this new sites only local sites or you made changes to your web server and created there new directories? Just to clarify what you doing...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you can mark the points on the graph like put square/circle in the place the hotspot should go (just make them visually visible so the user do not need to search with the mouse over the graph) you can use image map and place the data in alt parameter of the area tag or use JavaScript pop up window option in href parameter

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Incorrect order of tag elements, it should be as

<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>

also make sure their are in correct directory (in your case together with JSP document)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Troy III - the post was moved before you view it and you may come across more of such as people commonly misinterpreter JavaScript belonging to Java section

@javaAddict - I would expect from you to know better then telling somebody "This is a java forum not a javascript forum"

I will repeat this once again, if you happen to come across post that is either in wrong section or it is in your opinion breaching any of the forum rules PLEASE do use "Flag Bad Post" option. Type short descriptive message ("Please move post to XY section of the forum", "This is spam") to let moderators know that something maybe be wrong with the post. By telling original poster that he/she posted in wrong section may trigger another action and that the person make another post in different section with same content. By doing so the person is breaching another important rule

Do not flood the forum by posting the same question more than once (ie in multiple forums).

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Exactly as to any other HTML based document, either use internal or external approach.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Instead of using method="get" in the opening form tag use method="post" . This the basic of HTML you should already know, if not have look at w3schools for more examples.
One more thing, you should be sending the username and password for validation to servlet not another page from which you attempt to connect with database

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thread moved to ASP.NET section

@kkeith29 - if you get across post and you think there is something wrong about it, please use the "Flag Bad Post" option to let moderators know about it. If the original poster made mistake in the forum he/she cannot move the post to correct forum, therefore if the person make a new thread it is just flooding forum that is not really welcomed.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I do not see the reason with all the programming fuzz to create appropriate URL with the long way, if simple configuration would be much easier to work and maintain.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Numerous, just check this result from google

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Ancient dragon - aarya wasn't here since last year, so it may be little pointless to ask for explanation. It is chackboom fault that this post was reopen as he keeps over the period of time nicely slip advertising of this web hosting company, which we may not know is his.
@ chackboom - unfortunately is not the cheapest one also has less to offer. As before due to fact chackboom is advertising, the link will be removed...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You need to replace documents(php/html) you wish to change. In this case it will be page witch holds the layout and CSS relevant to that page. Do not forget to check page's whole functionality!

If the blog is design well you should have structure model of pages with the layout, cascading style sheets for them and pages that hold pure logic (functions called by layout pages)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

can u return something in a void


I don't think that code will even compile.

That is not a real code, that is just a joke...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sorry narue, I did not know it is so old :'(

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes you can do it by reading Apache server documentation

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Are u going directly to your jsp page or your servlet first

I suggest calling your servlet which will then redirect to the jsp page, then your array should be filled.

  1. It is not me who need help so I do not know why did you quote me...
  2. It is obvious that there have to be something before servlet, even simple html document with redirect to servlet to solve the issue
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

What would be interesting to know is how do you start this whole thing? Why I ask? Because the JSP to which you forward these data from servlet is called index.jsp, which by common logic is starting point of any website (extension may be different html/php/asp depending on used technology). If you call this page first there is no way it will get any data from your servlet. Is there any other page that actually call this servlet? Or how do you run it?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If I'm correct you should use VS 2005 with SQL server 2005. Just download VS 2008 (or VS 2005 if you do not want to make big jump)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Moved to VB section

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Everybody, enjoy the freedom of the information

With compliments from my ::DFC:: friends

Ancient Dragon commented: LOL :) +33
jasimp commented: hilarious +7
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Java stand alone application would be better as it will cost you and your friends nothing.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
  1. Sending personal messages to members asking for private immediate help is not welcomed
  2. Why you using ODBC driver instead of JDBC?
  3. This line
    RequestDispatcher requestDispatcher = getServletContext().getRequestDispatcher("/Prism/web/index.jsp");

    should be

    RequestDispatcher requestDispatcher = getServletContext().getRequestDispatcher("/index.jsp");

    if I'm not mistaken

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
  1. That is what you should tell us
  2. You should not use JSP for DB connectivity
  3. Some stack error messages will really help to solved that mess of code
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Do you want to use it just for plain calculation on pre-defined formulas or you expect some other functionality out of this project? Retrieve data from a source, store the output in DB, forward data etc.