Samy Ganou

Greenhorn
+ Follow
since Oct 05, 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 Samy Ganou

Hello ,
did Spring DM is very used now on Enterprise Applications ? what are the benefits of this framework and why it seem like a dead technology

I'm working on a Spring Application , I want to do it as an SOA and i don't know if spring DM will be useful for me.

I have another question , we can integrate an open source solution ESB with Spring ? what's the best choice for ESB.

Thanks !
Hello ,

I'm searching a tool that can help me to Map CSV files to Objects that i save on my database. This tools must do the reverse also , by mapping from Objects to a CSV file.
I found this tool http://www.csvobjects.org/ but i 'm not sure that it do the mapping from objects to csv file. Also i don't find examples to use it.

Please Help,

Thank you.
13 years ago
I have a table containing records with a status = not_processed.
I have to do a job that take each record and try to call a workflow to get a value , update this record with the value and set status=Processed.
The processing of a record is independant of the other records .
So i will have to use one transaction for all records and commit it at the end of program or , a new transaction for each record and commit just after the update of the record ?

Thank you.

Andre Brito wrote:I believe Reflection is all you need. Nothing else but the reflection's API from Java.


Thank you , it's the best solution!
13 years ago

Nicola Garofalo wrote:Use escapeXml property of <c:out tag set to "false"

example



It work , thank you !! I have seen this property , but i thought that it's used for xml purpose and not html ..
13 years ago
JSP
I can not do that , beacause may data already exist on my Bean. I want ti get it from mu bean.
13 years ago
JSP
Hello ,
I work with a frame like struts.
I have bean :
MyBean{
private string htmlFlow;
..}

And i want that the content of my property htmlFlow will be writed on my jsp and interpreted as HTML content.
When i use c:out , it print all the text , exemaple : <table><tr>Hello..

I want to see 'Hello'and not all html.

Thank you in advance.
13 years ago
JSP
I found a solution : the Dozer can help me to do this .. i'm trying to implement ..

My problem by an example :
ObjectA : att1= a1 , att2 = a2 want to transform it to a HashMap containing : {key => "att1", value => a1} etc
13 years ago
I have an object of type ClassA , and I want to map it on a HashMap , Keys of the HashMap will be the attributes name of classA .
Thank you in advance.
13 years ago

I'm using a frame like struts , i want to get all the html message when I submit a form, my requirement is to get the html of the jsp page and send it by mail. I want to do it on my Action but how ?
Thank you in advance
13 years ago
JSP

Jan Cumps wrote:Changes to tables in Oracle are effective immediately for the current session, and are seen by other sessions after you commit.
Do you commit after inserting?



Yes i do the commit.
The problem does not appear when i make double query execution to select my data.
tResultSet = tPreparedStatement.executeQuery();
tResultSet = tPreparedStatement.executeQuery();
the first execution give me somtimes old data of the last loop query , but the second query give me the new data.

I dont know why does this occurs , though i free all statements , results and connection after every loop step .
Can you help me to find a more clean solution?
I have 2 databases DB1 and DB2,
On DB2 : table2 and a table3
on DB1 : table1 and a synonym of the table3 : SynTable3.

I have a java batch that make a loop to get records from DB1.table1 and insert it on DB2.table2 ,
The loop make a select of x record from table1, where records have not entries on Syntable3 , insert them on Table2 and insert entries on table3 .
then pass to the next x records ...
The problem is that somtimes the loop get x record treat them , and on the next loop it get the same records , but they already exist on the table3 , I don't know if the synTable3 is rapidely refreshed by the modification of the last loop.
there is a solution to be sure that Syntable3 is rapidely up to date when we insert data on table3 ?
I have a class :
class A {
public List<String> values;
}
I want to compare two instances .

A a1 = new A();
ArrayList<String> arr1 = new ArrayList<String>();
arr1.add("1");
arr1.add("2");
a1.values= arr1;

A a2 = new A();
ArrayList<String> arr2 = new ArrayList<String>();
arr2.add("1");
arr2.add("2");
a2.values= arr2;

a1 and a2 are equals but a2.equals(a1) give me false !
how i can compare ?
thank you in advance.
14 years ago

Campbell Ritchie wrote:That is because you are dealing with the two possible exceptions differently. You might use a single try block with two catch blocks, for ExceptionA and ExceptionB. And why are you throwing an Exception of the same type as you are catching? That looks very peculiar.



I can not make one try , because i want to call the method doSomethingB() only when an ExceptionA occurs.

I made an error , so i throw ExceptionD() on the second catch.
14 years ago
I have a method like this:

public voide methodA(){

try {
.........

} catch (ExceptionA a){
try{
doSomethingB();
}catch(ExceptionB b){
throw new ExceptionB(b)

}

}

The problem is that when an exception occur on doSomthingB() original stack trace will be lost. No chance to have information about exceptionA.

An idea ?
14 years ago