Daily Archives: June 2, 2011

How To send Email with attachment in java with spring

1-add Emailtemplate.vm to class path of java i mean src/main/java <html> <body> <h3 >${subject} </h3> <div>   ${messageBody} </div> <h3>File ID=${FileID}    <br> Provider ID=${ProviderID} </h3> </body> </html> 2-then add dependency in pom file for volicity <dependency> <groupId>maven</groupId> <artifactId>velocity</artifactId> <version>1.5-20060721.044818</version> <exclusions> <exclusion> … Continue reading

Posted in java, spring | Tagged | Leave a comment

strategy design pattern

public interface Sender { public boolean Send(NotificationBean notificationBean,List … temp); } public abstract class sendEmailTemplate implements Sender { public abstract void preSend(NotificationBean notification,List … temp); public abstract void PostSend(); public abstract boolean TryToSend(); public abstract boolean IsSent(); public abstract boolean … Continue reading

Posted in Design Patterns, java | Leave a comment

cannot simultaneously fetch multiple bags

add this to collection @LazyCollection(LazyCollectionOption.FALSE)

Posted in spring | Leave a comment

Jquery slideshow with exllent transition

http://www.4shared.com/file/ViNcsCI7/nivo-slider252.html see it in action

Posted in Jquery | Leave a comment