masijade 1,351 Industrious Poster Team Colleague Featured Poster

It seems to me you have everything you need, except "teh codez", of course, but those you're going to have to make yourself.


Now that that comment is out of the way, what do you need help with here? What about those requirements do you not understand?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

And yet, in those lists, both Java and J2EE (should be JEE BTW), of which JSP is only a small part of, and I used "JSP" to mean JEE before, rank above PHP, by a fair margin. And Java, alone, a fair margin above ASP.NET.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Completely wrong.

JSP holds a much larger share of all sites that are more than "hobby" sites, as compared to PHP and ".NET" anything.

And where did you get the idea that PHP and ".net" anything are "where the jobs are at"?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Well, concentrate on the first one and try to fix that, then compile again, and again, concentrate the "new" first error, repeat the process.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Please describe "doesn't work".

masijade 1,351 Industrious Poster Team Colleague Featured Poster

cross-post

And, according to a post in that thread, he's very happy to let people waste their time.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Go to http://java.sun.com/ and go to the "Training->Certification" menu item.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

By following the instructions contained in the plug-in's documentation.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

double :sigh:

masijade 1,351 Industrious Poster Team Colleague Featured Poster

And roseindia is not a good suggestion for anything. A worse collection of outdated "tutorials"/examples and bad programming techniques I have never seen or even heard of.

Aside from the fact that this thread is 2 and half years old.

Closing thread.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

PHP is very good for small projects. It is not all that scalable, however, and is not suited to large projects. JSP/Servlets are, generally, also faster (when written with comparable quality, whatever that may be).

masijade 1,351 Industrious Poster Team Colleague Featured Poster

thnks,,

i kno about packages but with it i hv another problem,,,


see here http://www.daniweb.com/forums/thread297979.html

Then, obviously, you do not know about packages, nor proper use of classpaths. And those are two topics that I am not going to get more involved in on a forum as it only leads to frustation on all sides. Find a tutor who can personlly stand beside you and go through all of this truely basic stuff. You'll never "get it" on a forum.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

And you are still in the wrong. This entire "setup" is so far out of whack it's not even funny anymore. Oh well, whatever works. You can also jam a knife into your eye in order to scratch the back of your head, but is it worth it?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Read this entire tutorial.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

What link? There is no need for a link. What the heck do you need a link for? Like I said (and quoted), write an application (a stand-alone command line application not a JSP) that performs the actions that you currently have this JSP doing (which is wrong anyway, a JSP should do nothing but deliver HTML) and use cron to execute that application. How is it so hard to understand that?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

If JSP is not the right tool for this task, can you tell me which is the right tool for this task?
Thanks

a stand-alone application ... and ... a cron-job

regardless of the language in which the app is written in. Java, C/C++, perl, even a shell script.

masijade 1,351 Industrious Poster Team Colleague Featured Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster

:sigh:

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Is there any methods or solution in MySQL?

Yes. As I said, already, use a better query. And/Or don't do this encoding before writing to the DB (of which there is no need, neither HTML nor XML needs that URL encoding of content).

masijade 1,351 Industrious Poster Team Colleague Featured Poster

By writing a stand-alone application to do this and using a cron-job to "run it daily". A JSP is not the right tool for this task and it never was. Use the right tool for the task.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Uhm, like 2 and not like \%20, maybe?

IOW, define a better query.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

So search on the forum. This question has been asked literally hundreds of times. Usually ridiculed, but there are some suggestions. If you feel you absolutely must ask, then start a thread, but be prepared to be ridiculed.

Closing this thread.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

And your question is?

And were you not allowed to use the addAll/removeAll methods? Or did you simply not try, or did you simply not check that the methods exist at all and assumed something else from what I said?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Aach, yeah. Idiot. I was thinking of the valueOf method. Still applies that new String is useful when you have a byte[] or char[]. ;-) Oh, well. One of those days I guess.

Also, I was not advocating using a StringBuffer. I was listing the steps that are taken by the JVM when someone does "" + primitive (and the system does use StringBuffer). Much better to use String.valueOf(primitive) (which the "" + primitive also uses, but using it directly avoids the interned String and StringBuffer).

I.E.

String.valueOf(boolean)

rather than

"" + boolean

or

Boolean.valueOf(boolean).toString()

although that is still better than "" + boolean process.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

EDIT -----------------------
Please ignore the primitive "advice" here. It was a bad day. See two posts further.
EDIT -----------------------

That is, you'll never need to write

String thisString = new String();

Someone please correct me if I'm wrong, but I can't think of a case where you'd need to use that form.

Yes you will, just not with another String. If you have a byte[] or char[] you should use new String. Also, to get a String representation of any primitive type (unless it is simply part of another String) you should ue it.

I.E. if you have a boolen and you want to create a String that has "This boolen is true", you do

String str = "This boolean is " + booleanVar;

But, if all you want is "true" then you should do

String str = new String(booleanVar);

rather than what many novices do

String str = "" + booleanVar

as that form is horribly ineffecient. It creates an "interned" empty String, then it creates a StringBuffer using that interned String, then creates a String of the value of booleanVar adding that to the StringBuffer, then creates a String using that StringBuffer. That's a lot of steps as compared to simply creating a String using the booleanVar as

new String(booleanVar);
masijade 1,351 Industrious Poster Team Colleague Featured Poster

Because a SimpleDateFormat is a SimpleDateFormat not a String.

new Date() will give you the current Date. and SimpleDateFormat's format method will allow you to format a String representation of that Date in any format you want.

Now, armed with that info and the API docs try it again.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

So look at what that function does.

It's probably no more than a post request. And, if you don't know what I mean by that, then you need to study HTML and Http in general before you continue here.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

thn s ggle nd lrn hw t tp bcs ths sms spk s rl pn.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

And as a "diploma" student you don't learn how to write? Creativity is also not desired, it seems (i.e. you can't even think of a possible "topic"). Self-reliance is also not found in the class description or you'd have used Google and found a million other threads that ask this same question.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

args[0] is already a String, there is no reason to wrap it in a new String call (the same with the literal string in the earlier code). Actually, there is, pretty much, no good reason to use "new String(string)". If you don't want to refer to the String using args[0], but rather with str1 then do "String str1 = args[0];"

What is it that you don't understand here? What is it that you are trying to figure out? I'm not at all sure what it is you're asking here.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

HttpUrlConnection or HttpsUrlConnection. It is possible to use Cookies and post requests and authentication with both of them. Search for some tutorials concerning them.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

With interned Strings, yes, of course, but that "new" call creates a new String with its own char array. Now, if both statements used literal strings where one had a 100% match in the other (which they currently don't) then only two objects would be created, one literal interned string and one from the "new" call. As it is, since both Strings are different and there is no 100% overlap, three Strings are created, two interned Strings and one on the heap.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Literal Strings are "interned" and exist only once regardless of how many times they are used in a program. new String(...) creates a String that is not interned and is completely independent to anything else (and doing it with a literal string in the constructor means that two string get constructed, the interned literal string and the object created by the call to new).

javaAddict commented: Good knoledge +6
masijade 1,351 Industrious Poster Team Colleague Featured Poster

decoding is a process of encoding?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

If all you are ever going to do is make "skins" for display, no, otherwise, yes. There is much more to "JSP" than just the syntax of the actual jsp pages. And, even if you do only ever make "skins" it is still helpful to understand "what is going on around you".

masijade 1,351 Industrious Poster Team Colleague Featured Poster

No. Read my post again, read the api docs, and give it a try. This is not a homework service.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

- Clone the first arraylist into a third arraylist
- Call removeAll on the third arraylist using the second arraylist
- Clone the second arraylist into a fourth arraylist
- Call removeAll on the fourth arraylist using the first arraylist
- Call addAll on the third arraylist using the fourth arraylist
The third arraylist is now your end result. That is, if you need to retain the original two list.

If you not need to retain the original lists
- Clone the first arraylist to a third arraylist
- Call removeAll on the third arraylist using the second arraylist
- Call removeAll on the second arraylist using the first arraylist
- Call addAll on the third arraylist using the second arraylist
The third is, again, the result.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

And doesn't, say, display the same Icon in every row in that column?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Does it work?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

getColumnClass is part of TableModel not TableCellRenderer. If you mean to override methods then use the @Override annotation that things like that don't happen. See the examples/tutorials that that Google search throws up.

masijade 1,351 Industrious Poster Team Colleague Featured Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster

As in what part? Retreiving data from a DB? See the JDBC tutorials. Creating an image from the InputStream retrieved from the BLOB read from the DB? See the Swing tutorials. How to do the comparison? A bit of Googling should provide you with an algorithm/theory, although probably not code. How to display the results? See the SWING and/or JEE tutorials, depending on the type of app. Once you have done all of that, start writing some code (even if only in "simple" forms at first). If you then need help with that code, due to errors or simply unexpected results, post that code, with all error/compiler messages and a complete, but concise, description of the problem and wee will help you correct, but the question you've asked, as is, is meaningless, especially since we are not a code service.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

What does that have to do with anything.

To ask a question, start a new thread.

Closing this thread.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Maybe we could if we had any idea what it is you want.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Start a new thread to ask a new question. Closing this thread.

masijade 1,351 Industrious Poster Team Colleague Featured Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster

echo "string" | grep "pattern"

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Well, look at the input and the output and then study the code and decide for yourself.

You were on the right track and should continue doing it on your own. You learn nothing when you simply grab code from somewhere else with no understanding of how it works (which that last post makes clear).

masijade 1,351 Industrious Poster Team Colleague Featured Poster

$column3 not %column3_num

Also, split works as long as there are no commas in any of the data fields. You would be better of using that CSV library.

Then, you also need to pull out keys from the hashmaps that relate to the maximum values.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

As in what?

You read the file, and for every line you pull the two column values you're looking for and then one up a hash entry with them.

i.e.

hashVariableForColumnThreeValues{columnThreeValueVariable}++;
hashVariableForColumnFiveValues{columnFiveValueVariable}++;