Ratheesh Narayanan

Ranch Hand
+ Follow
since Oct 30, 2004
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 Ratheesh Narayanan

Hi,

Is there any possibility to override Weblogic's Connection Pooling implementation with Apache commons DBCP?

I would like to make use of the "removeAbandoned", "removeAbandonedTimeout" & "logAbandoned" properties of DBCP, which prevents any connection pool 'leak' and that is the only intention why we have to consider DBCP instead Weblogic's default connection pooling.

In Weblogic is there any way to prevent connection pool leak if I fail to close the connection? Also I would like to know this can be done in JBoss too.

Thanks in advance!

Ratheesh Narayanan
13 years ago
I am sorry I didn't understand what did you mean by message. The mail contents or the object MimeMessage?

I am using templates (.emt files) to keep the mail contents and using Velocity (Velocity.evaluate(...) method)to process the template.

I have my own object which extends from MimeMessage that is the message to use as an argument in Transport.send(...) method.
14 years ago
Hi,

I am writing a small Java component which will send emails with the help of Velocity 1.4 and JavaMail 1.3. When I run the program I am getting an error like:

javax.mail.MessagingException: 554 Message is not RFC compliant

I had spend my several hours in Google searching this, but no luck.
Kindly help me to resolve this.

Thanks
Ratheesh
14 years ago
This can be achieved only through Ajax.
(I am writing an add-on framework to Struts-Tiles framework, which loads the tile content with the help of Ajax)
14 years ago
Add "fileData" to the request as an attribute. Use JSP expression syntax (<%= ... %> to get the data filled in textfield.

OR

You can make a bean with the file information (fileName, fileSize, fileData etc..) and set that bean in request and use syntax like:<jsp:getProperty name="fileBean" property="fileData"/>

Or you can make javascript variable in the action to set the data in the field.

Hope there more better ways. Its pretty simple I guess.

-Ratheesh
14 years ago
Hi,

I am creating an extension tag to Struts-Tiles InsertTag(org.apache.struts.taglib.tiles.InsertTag), so that I can use Ajax to load the tiles contents instead simply inserting the contents.

I have successfully written a tag by extending InsertTag and used Ajax to load the tiles contents. But, I need to write extension classes to other tags also (from same package) if they does exactly similar to what InsertTag is doing.

Please help me to find out the similar ones of InsertTag.

What about PutTag? Will it do the same job what InsertTag does?

I know there are serveral tutorials which explains this in the internet but I am bit confused with the usage of these tags. If somebody who has experience in using PutTag (or similar ones), kindly help me.

Thanks in advance.
Ratheesh
[ August 04, 2008: Message edited by: ratheesh narayanan ]
14 years ago
Yes, it's a good decision!

Even I was thinking of maintaining this in a static field, but it was not primary solution for me, till I see your reply. You made me to re-think.

Thanks a lot!
14 years ago
Hi,

How costly is it, to retrive a string data from ServletContext on every request?

I have a RequestListener which will retrive two string values from a ServletContext on every request and data in these strings will be same across all the requests, it doesn't change. What would you suggest? Write a raw code to fetch out the strings on every request or a wrapper data object which maintain the strings once its initialized?

Thanks in advance!
Ratheesh
14 years ago
Hi,

I have a scenario where I have to override a method; but the method which I have to override resides as complicated!

Please find the class design below:

public class A{

protected class B{

public void doSomething(){
//Override this method
}
}
}

I have to override doSomething() in an another class. Kindly explain me with code example.

Thanks in advance

Ratheesh
Hi,

I have to analyse and recommend the best way to configure Hibernate, start from scratch for our new project.

I googled and found out some methods but I am not sure whether any other best way exists. We are looking for the most easy way to implement Hibernate in our project (using some tools).

Kindly put your views/experience here.

Thanks in advance..

Ratheesh
Hi,

I am trying to display a request variable using struts c ut tag, code below:
<c ut value= "${subHeaderText}" escapeXml="false"/>

Nothing gets display, but I am sure that the value is not null in the request as I could display the text using plain JSP scriptlet..

Please help me.. Thanks in advance..
~Ratheesh
14 years ago
Hi,

I am assigned to make an architecture diagram for a J2EE project which was already built. Can you please provide some useful information about how to approach to it and some sample architecture diagrams / URLs will be helpful.

I was spending quite lot time at google but couldn�t find anything exactly.

Thanks in advance
Ratheesh
Hi,

I myself found a solution for this issue..

The problem is: whenever you execute a query against a table where a column name is space seperated you will face this problem.

So put the column names in a square brackets and execute; the query will be executed successfully.

Ratheesh
Hi,

I have an application which needs to be connected MS Access Database and fetch the information. I am using JDBC-ODBC Driver for that.

I have a Prepared Statement like below:
update product1 set DescriptionOne='20$ Off on next purchase' where ProductCode='0001'

When I am executing the statement I am getting an error mentioned below:
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2.

If anyone came across the same error please let me know...

Thanks,

Ratheesh
Hi,

Can you help me to find out an open-source type 4 driver for MS Access?

I tried with "HTTX Access" but that is a licenced one and I couldn't find one even after a long time search.

If you know any free or open-source drivers please let me know.

Thank you,

Ratheesh