Zach Fredrickson

Greenhorn
+ Follow
since Feb 18, 2010
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Zach Fredrickson

If you are going to go the Ajax route, do yourself a favor and use jQuery to do your Ajax for you.



I guess I'm not one of the cool kids because I took a look at jQuery and I'm confused.

I thought it would be a program of some sort. It's just a JavaScript file... I guess the crucial point I'm missing here is what it's purpose is...
12 years ago
JSP
OK cool. Thanks for the tips.
12 years ago
JSP

Two weeks is a rather aggressive schedule for any new technology.


That's how long it took me to learn enough Java to pass the SCJP6

Another possibility is to do everything via Ajax from HTML pages


This is what was originally suggested to me and it seems, when I was looking into it, that AJAX really just means JavaScript. Honestly, and I know this is off topic, but if you could clear this up I'd be eternally grateful, does "AJAX" use XML to talk to the database and if so, HOW? Every example I've seen uses ASP or PHP. It occured to me that if you could use ASP you could proabably use JSP and I know much more Java than VB, but from what I know about JSP wouldn't that eliminate the need for the XML part of AJAX? I suppose it's all in how you use it, but that's kind of where my question was directed in the first place. Is using AJAX and JSP an optimal solution for this small project, or should I look elsewhere? (Perl has some AJAX-like modules but that just looks complicated...)

Also, if this is the way to go, could you give me some links to good info about EL and JSTL?

Thanks,

Zach
12 years ago
JSP
Hey folks,

For my Capstone Project at school I am creating a web page to reserve tennis courts online. I'm trying to decide what to used as a go between from the database to the web page. From what I understand about JSP, it would be optimal for creating dynamic content inside of a web page. I also understand it's quite complicated and somewhat larger scale than I really need to be for a school project.

I plan to used JavaScript and MySQL and need something to make them play nice. What is the quickest, easiest way to do this? Does anyone have any suggestions?
I'd like to complete the project in the next two weeks and I don't know PHP but I do know some Perl.

Thanks for the help,

Zach
12 years ago
JSP
I didn't fail!!

Not as high a score as I would have liked, but that's the SCJP in the bag.

Thanks for all the help and tips!

go through two minutes drill in HeadFirst and Meditate



^ is there a book or website called Meditate, or are you advising me to calm down through meditation?

Thanks for the tips!
Hey folks,

I sit for the SCJP 6 tomorrow morning. Any last minute study tips from those who have passed the exam? I've mostly used the K&B book with a lot of code practice. Any tips of what I need to burn into my brain before I sit for the exam would be greatly appreciated.

Thanks!
Thanks. I knew I was just being thick.

Of course, after studying the K&B book until my eyes bleed, I'm bound to forget even the simplest of rules...
12 years ago
Hey, I'm playing around with TreeSet while studying for my SCJP and I wrote a small bit of code that didn't work and I'm curious if anyone can tell me what I'm missing here.



The errors I get when it's outside the main method are "<identifier> expected" and "illegal start of type" both pointing to "tree.add(42);"
It seems like I'm missing something obvious but for the life of me I can't put my finger on it.
12 years ago
I'm new here. Only 4 posts (well 5 now) so hopefully I'll get away with only a warning...

Database track huh? That sounds...

Thanks for the info.
12 years ago
Haha, thanks for the tip. I might do the Cattle Drive if I have time. My SCJP exam is in a week and a half and I also have the K&B book to study (again...) before I sit for the exam.

Also, I noticed you mentioned WGU in your signature line. Are you still a student? I am just finishing up the Programming track and I'm quickly becoming a cert collector as well. I just finished Perl and when I pass my SCJP, I'll only have my Capstone left until I'm finished (so close I can taste it...).

Anyway, I can find lots of people to mock and scorn me (a friend of mine is the author of an advanced Python book...) not to mention my compiler seems to enjoy screaming incomprehensible garbage at me as well...

I was just looking for someone to converse with about Java because I seem to learn better when I can explain it to someone else or just have a discussion about it.

12 years ago
Consider the case of a method that takes a primitive type and outputs the same primitive type (i.e. public int someMethod(int i) ) that you want to overload so it does it's job no matter what primitive type is fed to it.

When changing the argument/parameter list (overloading the method) to accept a different primitive type (i.e. boolean) you can also change the return type and return the value in kind. (i.e. public boolean someMethod(boolean b) )

If only the argument list was changed but not the return type, the method may try to return an int when a boolean is taken in the argument list, which may not make sense in your method.

If overloading in this way did not allow different return types, you would have to create a method with a unique name for each primitive type you wanted your method to accept and return.
12 years ago
Hey Peoples,

I'm a student right now studying for my SCJP cert and I am having a serious isolation problem. I don't know anyone who speaks Java. This site is a great help in answering questions and giving me practice material (I especially like the rules roundup. It makes me feel dumb for missing easy questions then insults me at the end... ) but sometimes I just need someone who speaks my language. (When I talk to my wife about Java her eyes glass over and I'm pretty sure she is either hearing seagulls or just static...)

Anyway, I'm on the west coast of the U.S. so if anyone is in this time zone and wants to chat occasionally about Java stuff let me know.

Thanks,

Zach
12 years ago
I am also about to attempt my second pass at the SCJP 6 (I got 51% last time...it hurt my pride a bit...). I found the MasterExams included in the SCJP Study Guide (Sierra/Bates) to be helpful in pointing out the gotchas and pitfalls of those new to Java. I have to say, I'm not a big fan of the misdirection employed by the test writers, but these tests help you spot them. There are others by ExamForce (CramMaster) that I am going to try next, I'll let you know how it goes.