Stephen Foster

Greenhorn
+ Follow
since Apr 23, 2009
Merit badge: grant badges
For More
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 Stephen Foster

Hi All,

I'm relatively new to writing JDO queries and am unsure if this functionality is possible. Basically I have an object that contains a List object that I persist in a database (google app engine).

i.e.



What I want to do is write a query that only retrieves results back where the size of the List is greater than 3. Is this remotely possible or have I missunderstood some of the capabilities of JDO queries.

I want to write something along the lines of:

That's a really good idea and would definitely make my HTML code more readable although I would lose the advantages of having a Java class behind my code. I will examine the code I've written and see if I can replace my custom tag with a tag file.

Its a shame that there isn't a way that combines the advantages of tag files and custom tags...

Thanks for your help Bear
12 years ago
JSP
Hi All,

I've wrote a couple of custom tags for my web app and I've noticed the more I add to the code the messier it becomes, jspWriter commands and escaped HTML tags as strings just look messy, does anyone know of a best practices guides to writing custom tags or have any tips to keep the code behind them readable? I wanna get it right from the start rarther than revisiting the code later on en doing a hell of alot of refactoring.

example of what I'm talking about


Steve
12 years ago
JSP
Thanks guys this was helpful, I think from what I've read the best approach is to ask your company upfront and get them to make a decision there and then, rather than finding out that they want to lay claim to your hard written code 6 months down the line!

I'm fairly certain they won't want anything to do with it anyway, will let you know how things go...
13 years ago
Hello Ranchers,

Was thinking about making a website in my spare time using spring 3.0 and google app engine, I'm full time employed software engineer and my contract has a section dedicated to IP rights. Do you think if I were to make a website outside of work hours that my employer could claim IP right to it? Even if it doesn't have anything to do with what the company makes?

I doubt what I'm making will ever earn any cash, just nice to know what I'm coding belongs to me!!! Grrrr

Advice Welcome!
13 years ago
Congratulations, I share the pain you've gone through The best feeling is knowing you don't have to study after you've passed! that is until the nagging urge to take a new certification takes hold.
13 years ago
After 5 Months of study I'm happy to say I passed my SCWCD last Friday with a score of 82%

I found this certification really helpful for my every day job writing J2EE web apps (no surprise there!)

My advice to anyone thinking of taking the test is really read through your learning materials. I used the HFSJ book and pretty much everything that was mentioned in the book was in the exam. I was particularly caught out by the design patterns.

I'm intending on going into contract work sometime next year so I'm hoping these certifications will help me in getting jobs.

Anyway thanks for everyone's help without the javaranch forum I would have really struggled.

13 years ago
Thanks for the quick reply! Hibernate/JPA API looks exactily what I'm looking for. I'll check it out thanks.

p.s. Who says my name isn't Beave Beave
Hey all,

I came across a Python Web framework called Django which has an interesting way of dealing with database access. You never actually write any SQL. Instead you query objects that map to database tables. The clever bit is that where in Hibernate you'd have to write some HQL to retrieve the data from the DB. Django writes the SQL for you in the background, executes it and returns it back as an object.

I've been using Hibernate and Ibatis for a couple of years now and I was wondering if theres a java framework that closely matches this behavoir?

If there aint then I might have a go at writing one!

http://www.djangoproject.com/
On Monday I passed my SCJP 5.0 with a score of 80%!

Big thanks to all the ranchers, this forums help has been invaluable during my studies.

My advice to all the people currently studying for the exam is read K & B till your blue in the face, take advantage of the master exams they provide and also I found the sun practice exams were very helpful and worth the money. The actual exams difficulty was somewhere between the K & B master exams and the Sun practice exams.
14 years ago