Jaime Garcia

Ranch Hand
+ Follow
since Jan 07, 2003
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jaime Garcia

I am starting a new small project so I thought it would be a good idea to test a new framework so I decided to change to tapestry 5.

I read that the properties used on the page are cleared on each request. It seems that it is partially truth. If I use String or native properties this happens, I change the value on a form, receive the value correctly and when the page is displayed again it is cleared. If I use the Persist annotation I can keep the value.

The problem is when I use Object properties. For example, if I have on a Page:

private Address address=new Address;

public Address getAddress(){ return address;}
public void setAddress(Address add){this.address=add;}

And on the template page:
<input t:type="textfield" t:id="street" t:value="address.street"/>

if I submit the form and display the same page again, the property Address just keeps the street info. And even worst, if I open the same page on another machine, the application displays the values introduced by the first user :|.

I know that pages are pooled, so this may be the problem. In this particular case I am not using the beanformeditor because the Address object has a State Object as a property so the BeanFormEditor dose not display well the form.

Is there a way (maybe an annotation) to tell tapestry to treat this bean as the other properties ?.

Thank you (By the way, I hope I could explain my problem, my English is not good enough)
I upgrade from eclipse 3.1.1 to 3.1.2 and it seems to work better, and from WTP 1.0 to 1.0.2. I'm not sure if it was the eclipse core or the WTP plugin but works better.
I am using eclipse 3.1.1 too and I have the same problem with performance. Whe we started the project, 2 years ago, there were few files and It used to work fine, but now with all the classes and JSP It's really slow. I am using eclipse with WST plugin.
I got wrong sections of Garbage Collector and Declarations (access modifiers, declarations, etc), the easy part , at least that's what I thought.
16 years ago
Dose any body know if there a spcification from apache for the minimal requirements to install tomcat ? I can't find it.

17 years ago
Dose any body knows if Bea has a specification for the minimal hardware requirements to install WebLogic 8 ?

17 years ago
You are right, I think buying a good book is the cheapest and most of the times best way to get prepare. There are some guys that have never use Java, so the course it's just an introduction. I'll recomend the book so, if they really want to become a SCJP, they'll have an idea where to start. I'll get some copies but just of a couple of excersices (no copies from chapters) and, of course, giving the credits.

I took a course a couple of years ago and I lerned less than a half that reading the book, and the course was really expensive (but I have a Diploma :confused . So, the best way, I think, is reading and practicing or thaking courses If your Boss is going to pay .

Thanks all.
17 years ago
I am not making money for this course, just saving money to my Boss , I will take your advice and mail the authors.

17 years ago
My Boss want me to prepare a Java course, The course is only for guys at the office. I have already prepared the course but I need to prepare some excersises.

My Question is, I have some books of Java, one of them has exercises and questionnaires(Sun Certified Programmer & Developer for Java 2 Study Guide (Exam 310-035 & 310-027) by Kathy Sierra, Bert Bates) by the way, great book.

Is it legal to take some (not all, of course) exercises for the course ?.

Of course I'll tell them where I got the excersises and I will give them only a printed version of them and just a couple of exercises.

17 years ago
SCJP 1.4 dose not include GUI. Maybe that example is from SCJP 1.2
Hi, I live in Monterrey Mexico, I have been studing for the exam but I would like to know if any body Knows where to take the exam in Monterrey MX.

Thanks all.
I am using autocommit off. I do not think that the problem could be with commit becouse if I execute the statement executeBatch() after adding all batch (addBatch) I do not have any problem.
But if I use addBatch() (100 times, for example), executeBatch() and, with the same statement (with out closing the statemet) clearBatch(), addBatch() (100 time, for example) and again executeBatch() The problem apears.
If I close the statement after each executeBatch() I got no problem, like in the first case, using executeBatch() only at the end.
I am not sure if I was wrong or IBM driver. I used the batch like this:

so that each 10000 rows process the batch and continue with next rows.
I changed it to:

And it works. The JDBC API dose not say that you have to close a PreparedStatement after executing a batch. Maybe is a bug on DB2 JDBC, maybe i did not read all.
The section where I asign the values is:

The column that has the problem is:
stmt.setString(4, (String) nombreTrab.trim());
I am sure that it is asigned becouse if I change the stmt.addBatch() to stmt.executeUpdate() it works. A friend told me that he has the same problem with char columns, JDBC type 3 (net) from IBM DB2 7, I am not sure but it seems to be a bug on the driver. He told me that they had to contact IBM support, maybe I'll try this.
Hi. I am working with DB2 7.2 on NT. I use a preparedStatement to insert a lot of records so I use the addBatch statement. The performance is good when using addBatch but in some rows a column is changed :|, I mean, supouse record 1 as
column1_1 column1_2 column1_3
and record 2 as
column2_1 column2_2 column2_3
after the inserts using batch I got somting like
column1_1 column2_2 column1_3
column2_1 column2_2 column2_3
It happends with some rows only. If I use prepStmt.executeUpdate() instead of prepStmt.addBatch() it works ok, but slower
Any Idea ?.