Ricardo Estafan

Ranch Hand
+ Follow
since Mar 29, 2004
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 Ricardo Estafan

Hi guys!

I have the following structure:


My web app is dependent on the modules (jar files) and for both I have configured the same profiles.
How can I ensure that if I build my web app, the related modules/jars are also build using the same profile?

Thank you!!
15 years ago
Hello all,

I have a web application in spring which initially was built using ant.
I now changed it to be built using maven.

However the problem is I extracted all the classes to be a separate module to be built as a jar file. Originally these class- and configuration files could be found under WEB-INF/classes. These classes are preliminary Spring classes and the application context file is also in there. When I build the webapp which has this jar file as a dependency, the application context file is not to be found under the WEB-INF folder anymore but is part of the jar file.

How can I reference the application context file if it resides in a jar file within the WEB-INF/lib folder? Or do you guys advise not to extract all logic as a separate jar? (NOTE: I do intend to use the same logic in more than 1 application)

Thanks for the help!!
Does anyone know if it's possible to log to a database using log4j?

How can i configure this?

Thank you for the help!!
Hi,

Does anyone know of a framework / api that i can use to implement a forum on a java coded website?

Something like phpBB but in java offcourse ;-)

Thanks for the help!!
16 years ago
Hi all,

i have a question regarding a website build using spring and struts.

Which has successfully been deployed on a tomcat server at a webhosting party.

However when connecting to the site e.g. http://www.company_name.nl will result in a base href of http://company_name.nl/war_file_name.

Not an issue you might think... We are very glad that it's all fully operational. However thinking of search engine optimazation etc. how do you deal with these issues. Google Pagerank for either index and further is 0. And the site can hardly be retrieved using a search engine.

Perhaps it's not the most appropriate forum to place this topic.
But I hope one of you can help me out or direct me to the correct forum.

Thanks a lot!!!

Ricardo
16 years ago
I had an issue related to deleting a product from the shopping cart. I allways received the wrong id in my action. I solved this issue by enclosing the delete submit within a form tag.

However a new issue arises ... <<sigh>>

Within the first form tag (which contains the delete submit) I declare the following :


At the bottom of the page i indeed have a checkout in my case order button.
However i also have an update button. The action uses the above declared Id and amount values to update the amounts contained by the shoppingcart.



When i try to obtain the values of Id and amount in my action both are null.
Probably because they are not contained within the same form tag as the submit.

Could anyone please help me out on this issue?
16 years ago
Ok this worked fine.
However a new issue arises ... <<sigh>>

Within the first form tag (which contains the delete submit) I declare the following :


At the bottom of the page i indeed have a checkout in my case order button.
However i also have an update button. The action uses the above declared Id and amount values to update the amounts contained by the shoppingcart.



When i try to obtain the values of Id and amount in my action both are null.
Probably because they are not contained within the same form tag as the submit.

Could anyone please help me out on this issue?
16 years ago
Ok thanks.

However i've tried to do so, but somehow the wrong value gets passed :



It somehow passes the id of the previous product...
16 years ago
Hi guys,

i have a problem concerning a dispatch action. I pass the method name with the submit. However i also need an extra parameter. I am not sure how to pass on this value.

So i stopped using the html:submit tag and instead used :


As you can see i experimented by setting the product id as the id of the button.

Now i would like to know how i can obtain the id of the clicked button in my action.

I know there are several javascript possibilities to set a certain value on click of the button. I would prefer not using javascript so can someone please help me out?!!
16 years ago
I am having some difficulties creating a hibernate query using both named parameters and the %.

For instance when i search for a certain product using a named query and named parameters it looks like this :

<query name="searchProducts">
<![CDATA[from Product where amount != 0 and namelike %:searchText% or title like %:searchText%]]>
</query>

I can't get it to work.

Can anybody help me out?

Thank you.
Hi all,

is there a convenient way to use a startup class in an ejb project?
I want to initialize log4j etc. like i would in a servlet using a ServletContextListener and respond to contextInitialized.

However in an ejb application offcourse one cannot use the ServletContextListener in this case.

Does anyone know how to deal with this issue (dealing with certain issues e.g. initialization on application startup)?

Thanks a lot!!
They tell they do...
They have tomcat in a cpanel environment...
But they don't know what they are doing...
17 years ago
Hello all,

we've tested our application multiple times on local system. Now we have it running with a hostingprovider. Upon aproaching the application we will see the jsp code instead of html. What could be wrong?!!

Thanks a lot for your help.
17 years ago
Hello all,

i've found a howto for logging in tomcat 5.5 here

But i would like to know how i can configure tomcat 5.0.28 to log with log4j.

You see the problem that i have is that the default catalina.out logfiles are becoming extremely large and i want to have more control over this. If anyone knows how to accomplish this, please let me know.

Can anybody help me on this one?

Thanks
[ May 31, 2005: Message edited by: Ricardo Estafan ]
17 years ago
You are exactly correct, i am not sure my self. I want to measure the performance of a java application. Client time and server time, but come to think of it preferably without changing the existing code. Perhaps i will post this question in another topic.