<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>felicitas and beatitudo</title>
	<atom:link href="http://ashwinrayaprolu.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ashwinrayaprolu.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 12 Jan 2009 12:40:45 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='ashwinrayaprolu.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/78faffa53f5b02e348f4dc490c268f94?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>felicitas and beatitudo</title>
		<link>http://ashwinrayaprolu.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ashwinrayaprolu.wordpress.com/osd.xml" title="felicitas and beatitudo" />
		<item>
		<title>Mail Send With Attachments</title>
		<link>http://ashwinrayaprolu.wordpress.com/2009/01/12/mail-send-with-attachments/</link>
		<comments>http://ashwinrayaprolu.wordpress.com/2009/01/12/mail-send-with-attachments/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 12:39:35 +0000</pubDate>
		<dc:creator>ashwinrayaprolu</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[Attachment]]></category>
		<category><![CDATA[Java Mail]]></category>
		<category><![CDATA[Send]]></category>

		<guid isPermaLink="false">http://ashwinrayaprolu.wordpress.com/?p=74</guid>
		<description><![CDATA[Sample Program To Send Mail from Java

/**
 *
 */
package com.webaging.utils;
import java.util.Iterator;
import java.util.List;
import java.util.Properties;
import javax.activation.DataHandler;
import javax.activation.DataSource;
import javax.activation.FileDataSource;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Multipart;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;
/**
 * @author Ashwin
 *
 */
public class MailSender {
	/**
	 * @param from
	 * @param to
	 * @param subject
	 * @param message
	 * @throws Exception
	 */
	public static void sendMail(String host, String [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=74&subd=ashwinrayaprolu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<br /><p>Sample Program To Send Mail from Java</p>
<p><code></p>
<p>/**<br />
 *<br />
 */<br />
package com.webaging.utils;</p>
<p>import java.util.Iterator;<br />
import java.util.List;<br />
import java.util.Properties;</p>
<p>import javax.activation.DataHandler;<br />
import javax.activation.DataSource;<br />
import javax.activation.FileDataSource;<br />
import javax.mail.Message;<br />
import javax.mail.MessagingException;<br />
import javax.mail.Multipart;<br />
import javax.mail.Session;<br />
import javax.mail.Transport;<br />
import javax.mail.internet.AddressException;<br />
import javax.mail.internet.InternetAddress;<br />
import javax.mail.internet.MimeBodyPart;<br />
import javax.mail.internet.MimeMessage;<br />
import javax.mail.internet.MimeMultipart;</p>
<p>/**<br />
 * @author Ashwin<br />
 *<br />
 */<br />
public class MailSender {</p>
<p>	/**<br />
	 * @param from<br />
	 * @param to<br />
	 * @param subject<br />
	 * @param message<br />
	 * @throws Exception<br />
	 */<br />
	public static void sendMail(String host, String fromAddress,<br />
			List toAddresses, String subject, String messageContent,<br />
			String[] attachments) throws Exception {<br />
		// Create empty properties<br />
		try {<br />
			Properties props = System.getProperties();<br />
			props.put("mail.pop3.host", host);<br />
			Session session = Session.getInstance(props, null);</p>
<p>			MimeMessage message = new MimeMessage(session);<br />
			InternetAddress from = new InternetAddress(fromAddress);<br />
			message.setFrom(from);<br />
			message.setSubject(subject);</p>
<p>			for (Iterator it = toAddresses.iterator(); it.hasNext();) {<br />
				message.addRecipient(Message.RecipientType.TO,<br />
						new InternetAddress((String) it.next()));<br />
			}</p>
<p>			Multipart multipart = new MimeMultipart();<br />
			MimeBodyPart messageBodyPart = new MimeBodyPart();<br />
			messageBodyPart.setContent(messageContent + "</p>
<p>", "text/html");<br />
			multipart.addBodyPart(messageBodyPart);</p>
<p>			// add any file attachments to the message<br />
			addAtachments(attachments, multipart);</p>
<p>			message.setContent(multipart);<br />
			// Now Send the message<br />
			Transport.send(message);</p>
<p>		} catch (Exception e) {<br />
			throw e;<br />
		}</p>
<p>	}</p>
<p>	/**<br />
	 * @param attachments<br />
	 * @param multipart<br />
	 * @throws MessagingException<br />
	 * @throws AddressException<br />
	 */<br />
	protected static void addAtachments(String[] attachments,<br />
			Multipart multipart) throws MessagingException, AddressException {<br />
		for (int i = 0; i &lt;= attachments.length - 1; i++) {<br />
			String filename = attachments[i];<br />
			MimeBodyPart attachmentBodyPart = new MimeBodyPart();</p>
<p>			// use a JAF FileDataSource as it does MIME type detection<br />
			DataSource source = new FileDataSource(filename);<br />
			attachmentBodyPart.setDataHandler(new DataHandler(source));</p>
<p>			// assume that the filename you want to send is the same as the<br />
			// actual file name - could alter this to remove the file path<br />
			attachmentBodyPart.setFileName(filename);</p>
<p>			// add the attachment<br />
			multipart.addBodyPart(attachmentBodyPart);<br />
		}<br />
	}</p>
<p>}</p>
<p></code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashwinrayaprolu.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashwinrayaprolu.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashwinrayaprolu.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashwinrayaprolu.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashwinrayaprolu.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashwinrayaprolu.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashwinrayaprolu.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashwinrayaprolu.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashwinrayaprolu.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashwinrayaprolu.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=74&subd=ashwinrayaprolu&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://ashwinrayaprolu.wordpress.com/2009/01/12/mail-send-with-attachments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2339c64fc4c9cf6f51db535a5ad89259?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ashwinrayaprolu</media:title>
		</media:content>
	</item>
		<item>
		<title>Read Mail Java</title>
		<link>http://ashwinrayaprolu.wordpress.com/2009/01/12/read-mail-java/</link>
		<comments>http://ashwinrayaprolu.wordpress.com/2009/01/12/read-mail-java/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 12:37:15 +0000</pubDate>
		<dc:creator>ashwinrayaprolu</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[Java Mail]]></category>
		<category><![CDATA[Read]]></category>

		<guid isPermaLink="false">http://ashwinrayaprolu.wordpress.com/?p=72</guid>
		<description><![CDATA[Sample Program to Read Mail

package com.ashwin;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import javax.mail.Address;
import javax.mail.Authenticator;
import javax.mail.Folder;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Multipart;
import javax.mail.Part;
import javax.mail.Session;
import javax.mail.Store;
import javax.mail.event.FolderListener;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
public class MailReaderUtility {
	public static void main(String[] args) {
		Authenticator auth = null;
		Folder folder = null;
		Store store = null;
		String comment = "";
		String subject = "";
		String from = "";
		try {
			auth = new SMTPAuthenticator(args[0],args[1]);
			// Create [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=72&subd=ashwinrayaprolu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<br /><p>Sample Program to Read Mail</p>
<p><code></p>
<p>package com.ashwin;</p>
<p>import java.io.IOException;<br />
import java.util.ArrayList;<br />
import java.util.HashMap;<br />
import java.util.List;<br />
import java.util.Map;<br />
import java.util.Properties;</p>
<p>import javax.mail.Address;<br />
import javax.mail.Authenticator;<br />
import javax.mail.Folder;<br />
import javax.mail.Message;<br />
import javax.mail.MessagingException;<br />
import javax.mail.Multipart;<br />
import javax.mail.Part;<br />
import javax.mail.Session;<br />
import javax.mail.Store;<br />
import javax.mail.event.FolderListener;<br />
import javax.mail.internet.InternetAddress;<br />
import javax.mail.internet.MimeMessage;</p>
<p>public class MailReaderUtility {</p>
<p>	public static void main(String[] args) {<br />
		Authenticator auth = null;<br />
		Folder folder = null;<br />
		Store store = null;<br />
		String comment = "";<br />
		String subject = "";<br />
		String from = "";</p>
<p>		try {</p>
<p>			auth = new SMTPAuthenticator(args[0],args[1]);</p>
<p>			// Create empty properties<br />
			Properties props = System.getProperties();<br />
			props.put("mail.pop3.host", args[2]);<br />
			// get session<br />
			Session session = Session.getDefaultInstance(props, auth);<br />
			// Get the store<br />
			store = session.getStore("pop3");<br />
			store.connect();<br />
			// Get folder<br />
			FolderListener arg0;<br />
			// store.addFolderListener();</p>
<p>			// store.addFolderListener();<br />
			folder = store.getFolder("INBOX");<br />
			folder.open(Folder.READ_WRITE);<br />
			// Get directory\\<br />
			Message message[] = folder.getMessages();<br />
			for (int i = 0, n = message.length; i &lt; n; i++) {<br />
				Map dataStore = new HashMap();<br />
				Address[] addresses = message[i].getFrom();<br />
				InternetAddress address = (InternetAddress) addresses[0];<br />
				from = address.getAddress();<br />
				subject = message[i].getSubject();<br />
				dataStore.put("from", from);<br />
				dataStore.put("subject", subject);</p>
<p>				if (((MimeMessage) message[i]).getContent() instanceof String) {<br />
					// content is texText<br />
					// System.out.println(((MimeMessage)<br />
					// message[i]).getContent());<br />
					comment = ((MimeMessage) message[i]).getContent()<br />
							.toString();<br />
					dataStore.put("comment", comment);<br />
				} else if (((MimeMessage) message[i]).getContent() instanceof Multipart<br />
						|| ((MimeMessage) message[i]).getContent() instanceof Part) {<br />
					Multipart multiPartcnt = (Multipart) ((MimeMessage) message[i])<br />
							.getContent();</p>
<p>					Object content = message[i].getContent();<br />
					if (content instanceof Multipart) {<br />
						handleMultipart((Multipart) content, dataStore);<br />
					} else {<br />
						handlePart(message[i], dataStore);<br />
					}</p>
<p>					comment = multiPartcnt.getBodyPart(0).getContent()<br />
							.toString();<br />
					// recursively iterate over container's contents to<br />
					// retrieve<br />
					// attachments<br />
				} else if (((MimeMessage) message[i]).getContent() instanceof Message) {<br />
					// message content could be a message itself<br />
				}</p>
<p>				System.out.println("From: "+dataStore.get("from"));<br />
				System.out.println("Subject: "+dataStore.get("subject"));<br />
				String testComment = (String)dataStore.get("comment");<br />
				if(testComment.length() &lt; 15){<br />
					System.out.println("Data: "+testComment.substring(0, testComment.length()));<br />
				}else{<br />
					System.out.println("Data: "+testComment.substring(0, 14));<br />
				}<br />
				System.out.println("------------------------------------");<br />
			}<br />
		}catch(Exception e){<br />
			e.printStackTrace();<br />
		}</p>
<p>	}</p>
<p>	public static void handleMultipart(Multipart multipart,<br />
			Map dataStore) throws MessagingException,<br />
			IOException {<br />
		for (int i = 0, n = multipart.getCount(); i &lt; n; i++) {<br />
			handlePart(multipart.getBodyPart(i), dataStore);<br />
		}<br />
	}</p>
<p>	public static void handlePart(Part part, Map dataStore)<br />
			throws MessagingException, IOException {<br />
		String disposition = part.getDisposition();<br />
		String contentType = part.getContentType();<br />
		// System.out.println("In Handle Part : " + contentType);<br />
		if (disposition == null) { // When just body<br />
			// System.out.println("Null: " + contentType);<br />
			// Check if plain<br />
			if ((contentType.length() &gt;= 10)<br />
					&amp;&amp; (contentType.toLowerCase().substring(0, 10)<br />
							.equals("text/plain"))) {<br />
				// part.writeTo(System.out);<br />
				dataStore.put("comment", part.getContent().toString());<br />
			} else { // Don't think this will happen<br />
				// System.out.println("Other body: " + contentType);<br />
				dataStore.put("comment", part.getContent().toString());<br />
			}<br />
		} else if (disposition.equalsIgnoreCase(Part.ATTACHMENT)) {<br />
			// System.out.println("Attachment: " + part.getFileName() + " : "+<br />
			// contentType);<br />
			List fileNames = (List) dataStore.get("attachment");<br />
			if (fileNames == null) {<br />
				fileNames = new ArrayList();<br />
			}<br />
			fileNames.add(part.getFileName());<br />
			dataStore.put("attachment", fileNames);<br />
			//saveFile(part.getFileName(), part.getInputStream());<br />
		} else if (disposition.equalsIgnoreCase(Part.INLINE)) {<br />
			// System.out.println("Inline: " + part.getFileName() + " : " +<br />
			// contentType);<br />
			//saveFile(part.getFileName(), part.getInputStream());<br />
		} else { // Should never happen<br />
			// System.out.println("Other: " + disposition);<br />
		}<br />
	}<br />
}</p>
<p></code></p>
<p>SMTP Authenticator</p>
<p><code><br />
/**<br />
 *<br />
 */<br />
package com.ashwin;</p>
<p>import javax.mail.Authenticator;<br />
import javax.mail.PasswordAuthentication;</p>
<p>/**<br />
 * @author ashwin<br />
 *<br />
 */<br />
public class SMTPAuthenticator extends Authenticator<br />
{<br />
	String masteruser = null;<br />
	String masterpswd = null;</p>
<p>	SMTPAuthenticator(String user, String password)<br />
	{<br />
		masteruser = user;<br />
		masterpswd = password;<br />
	}<br />
	public PasswordAuthentication getPasswordAuthentication()<br />
	{</p>
<p>		return new PasswordAuthentication(masteruser, masterpswd);<br />
	}<br />
}<br />
</code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashwinrayaprolu.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashwinrayaprolu.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashwinrayaprolu.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashwinrayaprolu.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashwinrayaprolu.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashwinrayaprolu.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashwinrayaprolu.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashwinrayaprolu.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashwinrayaprolu.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashwinrayaprolu.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=72&subd=ashwinrayaprolu&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://ashwinrayaprolu.wordpress.com/2009/01/12/read-mail-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2339c64fc4c9cf6f51db535a5ad89259?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ashwinrayaprolu</media:title>
		</media:content>
	</item>
		<item>
		<title>Signature Capture In Java</title>
		<link>http://ashwinrayaprolu.wordpress.com/2009/01/12/signature-capture-in-java/</link>
		<comments>http://ashwinrayaprolu.wordpress.com/2009/01/12/signature-capture-in-java/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 12:12:37 +0000</pubDate>
		<dc:creator>ashwinrayaprolu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Capture]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Signature]]></category>

		<guid isPermaLink="false">http://ashwinrayaprolu.wordpress.com/?p=70</guid>
		<description><![CDATA[Want to create paint like application where we can capture signature in java. Here is sample code to do it

/**
 *
 */
package com.pos;
import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GridLayout;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import javax.imageio.IIOImage;
import javax.imageio.ImageIO;
import javax.imageio.ImageWriteParam;
import javax.imageio.ImageWriter;
import javax.imageio.stream.ImageOutputStream;
import javax.swing.JApplet;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JSplitPane;
import javax.swing.JTextArea;
/**
 * @author Ashwin
 *
 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=70&subd=ashwinrayaprolu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<br /><p>Want to create paint like application where we can capture signature in java. Here is sample code to do it</p>
<p><code></p>
<p>/**<br />
 *<br />
 */<br />
package com.pos;</p>
<p>import java.awt.BorderLayout;<br />
import java.awt.Button;<br />
import java.awt.Color;<br />
import java.awt.Component;<br />
import java.awt.Container;<br />
import java.awt.Graphics;<br />
import java.awt.Graphics2D;<br />
import java.awt.GridLayout;<br />
import java.awt.Point;<br />
import java.awt.event.ActionEvent;<br />
import java.awt.event.ActionListener;<br />
import java.awt.event.MouseEvent;<br />
import java.awt.event.MouseListener;<br />
import java.awt.event.MouseMotionListener;<br />
import java.awt.image.BufferedImage;<br />
import java.io.File;<br />
import java.io.IOException;<br />
import java.util.Iterator;</p>
<p>import javax.imageio.IIOImage;<br />
import javax.imageio.ImageIO;<br />
import javax.imageio.ImageWriteParam;<br />
import javax.imageio.ImageWriter;<br />
import javax.imageio.stream.ImageOutputStream;<br />
import javax.swing.JApplet;<br />
import javax.swing.JPanel;<br />
import javax.swing.JScrollPane;<br />
import javax.swing.JSplitPane;<br />
import javax.swing.JTextArea;</p>
<p>/**<br />
 * @author Ashwin<br />
 *<br />
 */<br />
public class PaintApplet extends JApplet {</p>
<p>	public BufferedImage image = null;<br />
	private JPanel canvas = new JPanel();<br />
	private JPanel colorPanel = new JPanel();<br />
	private Point lastPos = null;<br />
	private Button captureButton = new Button("Capture");<br />
	private Graphics gc;<br />
	Graphics2D imageG = null;</p>
<p>	/*<br />
	 * (non-Javadoc)<br />
	 *<br />
	 * @see java.applet.Applet#init()<br />
	 */<br />
	@Override<br />
	public void init() {<br />
		// TODO Auto-generated method stub<br />
		super.init();</p>
<p>		setSize(600, 200);</p>
<p>		image = new BufferedImage(getWidth(), getHeight(),<br />
				BufferedImage.TYPE_INT_ARGB);</p>
<p>		// get the image Graphics object<br />
		imageG = image.createGraphics();<br />
		colorPanel.setLayout(new GridLayout());<br />
		canvas.setSize(getWidth(), getHeight());</p>
<p>		captureButton.setSize(100, 50);<br />
		getContentPane().add(captureButton);<br />
		getContentPane().add(canvas, BorderLayout.CENTER);<br />
		setVisible(true);</p>
<p>		// get the Graphics Context<br />
		gc = canvas.getGraphics();<br />
		canvas.setBackground(Color.GRAY);<br />
		gc.setColor(Color.GRAY);<br />
		gc.fillRect(0, 0, image.getWidth(), image.getHeight());<br />
		gc.setColor(Color.BLACK);</p>
<p>		imageG.setBackground(Color.GRAY);<br />
		imageG.setColor(Color.GRAY);<br />
		imageG.fillRect(0, 0, image.getWidth(), image.getHeight());<br />
		imageG.setColor(Color.BLACK);</p>
<p>		captureButton.addActionListener(new ActionListener() {</p>
<p>			public void actionPerformed(ActionEvent a) {<br />
				try {<br />
					Container cp = getContentPane();<br />
					final Component comp = cp.add(new JSplitPane(<br />
							JSplitPane.HORIZONTAL_SPLIT, new JScrollPane(<br />
									new JTextArea()), new JScrollPane(<br />
									new JTextArea())));<br />
					// cp.add(canvas);</p>
<p>					File filetoSave = new File("c:\\temp\\test4.jpeg");</p>
<p>					// If the file does not exist or the user gives permission,<br />
					// save image to file.</p>
<p>					ImageWriter writer = null;<br />
					ImageOutputStream ios = null;</p>
<p>					try {<br />
						// Obtain a writer based on the jpeg format.</p>
<p>						Iterator iter;<br />
						iter = ImageIO.getImageWritersByFormatName("jpeg");</p>
<p>						// Validate existence of writer.</p>
<p>						if (!iter.hasNext()) {<br />
							return;<br />
						}</p>
<p>						// Extract writer.</p>
<p>						writer = (ImageWriter) iter.next();</p>
<p>						// Configure writer output destination.</p>
<p>						ios = ImageIO.createImageOutputStream(filetoSave);<br />
						writer.setOutput(ios);</p>
<p>						// Set JPEG compression quality to 95%.</p>
<p>						ImageWriteParam iwp = writer.getDefaultWriteParam();<br />
						iwp.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);<br />
						iwp.setCompressionQuality(0.95f);</p>
<p>						// Write the image.</p>
<p>						writer.write(null, new IIOImage((BufferedImage) image,<br />
								null, null), iwp);<br />
					} catch (IOException e2) {<br />
						e2.getMessage();<br />
					} finally {<br />
						try {<br />
							// Cleanup.</p>
<p>							if (ios != null) {<br />
								ios.flush();<br />
								ios.close();<br />
							}</p>
<p>							if (writer != null)<br />
								writer.dispose();<br />
						} catch (IOException e2) {<br />
						}<br />
					}</p>
<p>				} catch (Exception e) {<br />
					System.err.println(e);<br />
				}<br />
			}<br />
		});</p>
<p>		canvas.addMouseMotionListener(new MouseMotionListener() {<br />
			public void mouseDragged(MouseEvent m) {<br />
				// the mouse(pen) was dragged, so the pixels at coords found in<br />
				// MouseEvent m must be updated with current color<br />
				Point p = m.getPoint();<br />
				gc.drawLine(lastPos.x, lastPos.y, p.x, p.y);<br />
				imageG.drawLine(lastPos.x, lastPos.y, p.x, p.y);<br />
				lastPos = p;<br />
			}</p>
<p>			public void mouseMoved(MouseEvent m) {<br />
			}<br />
		});<br />
		canvas.addMouseListener(new MouseListener() {<br />
			public void mouseClicked(MouseEvent e) {<br />
			}</p>
<p>			public void mousePressed(MouseEvent e) {<br />
				lastPos = e.getPoint();<br />
			}</p>
<p>			public void mouseReleased(MouseEvent e) {<br />
				lastPos = null;<br />
			}</p>
<p>			public void mouseEntered(MouseEvent e) {<br />
			}</p>
<p>			public void mouseExited(MouseEvent e) {<br />
			}<br />
		});<br />
	}</p>
<p>	/**<br />
	 *<br />
	 */<br />
	public PaintApplet() {<br />
	}</p>
<p>	public static void main(String[] args) {<br />
		PaintApplet p = new PaintApplet();<br />
	}<br />
}</p>
<p></code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashwinrayaprolu.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashwinrayaprolu.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashwinrayaprolu.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashwinrayaprolu.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashwinrayaprolu.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashwinrayaprolu.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashwinrayaprolu.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashwinrayaprolu.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashwinrayaprolu.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashwinrayaprolu.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=70&subd=ashwinrayaprolu&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://ashwinrayaprolu.wordpress.com/2009/01/12/signature-capture-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2339c64fc4c9cf6f51db535a5ad89259?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ashwinrayaprolu</media:title>
		</media:content>
	</item>
		<item>
		<title>Taking Screen Shot in Java</title>
		<link>http://ashwinrayaprolu.wordpress.com/2009/01/12/taking-screen-shot-in-java/</link>
		<comments>http://ashwinrayaprolu.wordpress.com/2009/01/12/taking-screen-shot-in-java/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 12:04:28 +0000</pubDate>
		<dc:creator>ashwinrayaprolu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ashwinrayaprolu.wordpress.com/?p=68</guid>
		<description><![CDATA[
/**
 *
 */
package com.pos;
import java.awt.Dimension;
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import java.io.File;
import javax.imageio.ImageIO;
/**
 * @author Ashwin
 *
 */
public class Screenshot {
	public static void main(String[] args) throws Exception {
		// make sure we have exactly two arguments,
		// a waiting period and a file name
		if (args.length != 2) {
			System.err.println("Usage: java Screenshot "
					+ "WAITSECONDS OUTFILE.png");
			System.exit(1);
		}
		// check if file name is valid
		String [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=68&subd=ashwinrayaprolu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<br /><p><code></p>
<p>/**<br />
 *<br />
 */<br />
package com.pos;</p>
<p>import java.awt.Dimension;<br />
import java.awt.Rectangle;<br />
import java.awt.Robot;<br />
import java.awt.Toolkit;<br />
import java.awt.image.BufferedImage;<br />
import java.io.File;</p>
<p>import javax.imageio.ImageIO;</p>
<p>/**<br />
 * @author Ashwin<br />
 *<br />
 */<br />
public class Screenshot {<br />
	public static void main(String[] args) throws Exception {<br />
		// make sure we have exactly two arguments,<br />
		// a waiting period and a file name<br />
		if (args.length != 2) {<br />
			System.err.println("Usage: java Screenshot "<br />
					+ "WAITSECONDS OUTFILE.png");<br />
			System.exit(1);<br />
		}<br />
		// check if file name is valid<br />
		String outFileName = args[1];<br />
		if (!outFileName.toLowerCase().endsWith(".png")) {<br />
			System.err.println("Error: output file name	must "<br />
					+ "end with \".png\".");<br />
			System.exit(1);<br />
		}<br />
		// wait for a user-specified time<br />
		try {<br />
			long time = Long.parseLong(args[0]) * 1000L;<br />
			System.out.println("Waiting " + (time / 1000L) + " second(s)...");<br />
			Thread.sleep(time);<br />
		} catch (NumberFormatException nfe) {<br />
			System.err.println(args[0] + " does not seem to be a "<br />
					+ "valid number of seconds.");<br />
			System.exit(1);<br />
		}<br />
		// determine current screen size<br />
		Toolkit toolkit = Toolkit.getDefaultToolkit();<br />
		Dimension screenSize = toolkit.getScreenSize();<br />
		Rectangle screenRect = new Rectangle(screenSize);<br />
		// create screen shot<br />
		Robot robot = new Robot();<br />
		BufferedImage image = robot.createScreenCapture(screenRect);<br />
		// save captured image to PNG file<br />
		ImageIO.write(image, "png", new File(outFileName));<br />
		// give feedback<br />
		System.out.println("Saved screen shot (" + image.getWidth() + " x "<br />
				+ image.getHeight() + " pixels) to file\"" + outFileName<br />
				+ "\".");<br />
		// use System.exit if the program hangs after writing the file;<br />
		// that's an old bug which got fixed only recently<br />
		// System.exit(0);<br />
	}<br />
}</p>
<p></code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashwinrayaprolu.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashwinrayaprolu.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashwinrayaprolu.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashwinrayaprolu.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashwinrayaprolu.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashwinrayaprolu.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashwinrayaprolu.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashwinrayaprolu.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashwinrayaprolu.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashwinrayaprolu.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=68&subd=ashwinrayaprolu&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://ashwinrayaprolu.wordpress.com/2009/01/12/taking-screen-shot-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2339c64fc4c9cf6f51db535a5ad89259?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ashwinrayaprolu</media:title>
		</media:content>
	</item>
		<item>
		<title>HTML Buttons as Tabs</title>
		<link>http://ashwinrayaprolu.wordpress.com/2009/01/12/html-buttons-as-tabs/</link>
		<comments>http://ashwinrayaprolu.wordpress.com/2009/01/12/html-buttons-as-tabs/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 11:54:08 +0000</pubDate>
		<dc:creator>ashwinrayaprolu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[tab]]></category>

		<guid isPermaLink="false">http://ashwinrayaprolu.wordpress.com/?p=61</guid>
		<description><![CDATA[Here is just a simple Implementation of HTML Buttons as tabs

DHTML Web Tab Control
&#60;!--
// Tab Name &#124; URL &#124; * (Default Selected Tab)
var tabs = new Array
(
	"MSDN&#124;http://msdn.microsoft.com",
	"CNN&#124;http://www.cnn.com",
	"NASA&#124;http://www.nasa.gov",
	"Google&#124;http://www.google.com&#124;*",
	"Forbes&#124;http://www.forbes.com"
);
// Align Tab: LEFT, CENTER, RIGHT
var tabAlign = "RIGHT";
/*********************************************/
function tabOnClick(ID)
{
	var oElement = null;
	for (var i = 0; i &#60; tabs.length; i++)
	{
		oElement = document.getElementById(i);
		oElement.className = "tabOff";
	}
	oElement = document.getElementById(ID);
	oElement.className = "tabOn";
	var [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=61&subd=ashwinrayaprolu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<br /><p>Here is just a simple Implementation of HTML Buttons as tabs</p>
<p><code></p>
<p>DHTML Web Tab Control</p>
<p>&lt;!--</p>
<p>// Tab Name | URL | * (Default Selected Tab)<br />
var tabs = new Array<br />
(<br />
	"MSDN|http://msdn.microsoft.com",<br />
	"CNN|http://www.cnn.com",<br />
	"NASA|http://www.nasa.gov",<br />
	"Google|http://www.google.com|*",<br />
	"Forbes|http://www.forbes.com"<br />
);</p>
<p>// Align Tab: LEFT, CENTER, RIGHT<br />
var tabAlign = "RIGHT";</p>
<p>/*********************************************/</p>
<p>function tabOnClick(ID)<br />
{<br />
	var oElement = null;</p>
<p>	for (var i = 0; i &lt; tabs.length; i++)<br />
	{<br />
		oElement = document.getElementById(i);<br />
		oElement.className = "tabOff";<br />
	}</p>
<p>	oElement = document.getElementById(ID);<br />
	oElement.className = "tabOn";</p>
<p>	var tab = tabs[ID].split("|");<br />
	divTabFrame.innerHTML = "";</p>
<p>	document.body.focus();<br />
}</p>
<p>function tabLoad()<br />
{<br />
	var HTML = "";</p>
<p>	HTML += "<P ALIGN="+tabAlign+">";<br />
	for (var i = 0; i &lt; tabs.length; i++)<br />
	{<br />
		var tab = tabs[i].split("|");<br />
		HTML += "&nbsp;";<br />
	}</p>
<p>	divTabButtons.innerHTML = HTML;</p>
<p>	for (var i = 0; i  </p>
<p><DIV ID="divTabButtons"></DIV><br />
<DIV ID="divTabFrame"></DIV></p>
<p></code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashwinrayaprolu.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashwinrayaprolu.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashwinrayaprolu.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashwinrayaprolu.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashwinrayaprolu.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashwinrayaprolu.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashwinrayaprolu.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashwinrayaprolu.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashwinrayaprolu.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashwinrayaprolu.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=61&subd=ashwinrayaprolu&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://ashwinrayaprolu.wordpress.com/2009/01/12/html-buttons-as-tabs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2339c64fc4c9cf6f51db535a5ad89259?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ashwinrayaprolu</media:title>
		</media:content>
	</item>
		<item>
		<title>Click Framework</title>
		<link>http://ashwinrayaprolu.wordpress.com/2009/01/12/click-framework/</link>
		<comments>http://ashwinrayaprolu.wordpress.com/2009/01/12/click-framework/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 11:50:31 +0000</pubDate>
		<dc:creator>ashwinrayaprolu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Component]]></category>
		<category><![CDATA[Dynamic]]></category>
		<category><![CDATA[J2ee]]></category>

		<guid isPermaLink="false">http://ashwinrayaprolu.wordpress.com/?p=57</guid>
		<description><![CDATA[Recently i was looking at some framework which can be of help to me in Java Web World that can create UI dynamically using component driven architecture.  Most of the projects these days are Metadata Driven. When we talk about metadata driven UI we need some component like framework where we can map metadata [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=57&subd=ashwinrayaprolu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<br /><p>Recently i was looking at some framework which can be of help to me in Java Web World that can create UI dynamically using component driven architecture.  Most of the projects these days are Metadata Driven. When we talk about metadata driven UI we need some component like framework where we can map metadata to some component. I had work on heavyweights like JSF but i dont think it gives whole lots of control to user to do what ever a developer wants that easily. Then i have come across this wonderful <a href="http://incubator.apache.org/click/">click </a>framework. </p>
<p>     We started building an application (Around september 2008) using this framework to one of our client where we define just some metadata and while website is built dynamically. Click framework made that possible. And i&#8217;m really happy to see that click has now be incorporated into apache. </p>
<p>Three cheers to click.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashwinrayaprolu.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashwinrayaprolu.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashwinrayaprolu.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashwinrayaprolu.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashwinrayaprolu.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashwinrayaprolu.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashwinrayaprolu.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashwinrayaprolu.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashwinrayaprolu.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashwinrayaprolu.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=57&subd=ashwinrayaprolu&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://ashwinrayaprolu.wordpress.com/2009/01/12/click-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2339c64fc4c9cf6f51db535a5ad89259?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ashwinrayaprolu</media:title>
		</media:content>
	</item>
		<item>
		<title>Rico Provides the All Power Full Ajax Table</title>
		<link>http://ashwinrayaprolu.wordpress.com/2009/01/12/rico-provides-the-all-power-full-ajax-table/</link>
		<comments>http://ashwinrayaprolu.wordpress.com/2009/01/12/rico-provides-the-all-power-full-ajax-table/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 11:43:44 +0000</pubDate>
		<dc:creator>ashwinrayaprolu</dc:creator>
				<category><![CDATA[DHTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Rico]]></category>

		<guid isPermaLink="false">http://ashwinrayaprolu.wordpress.com/?p=55</guid>
		<description><![CDATA[Hello All,
     I&#8217;m really impressed the way RICO has revolutionized the way we render table. Tables means Header + Data + Footer. But rico has changed the  idea we define a table. It made it Header + Footer + Dynamic JavaScript or a DataSource. It also added a very nice [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=55&subd=ashwinrayaprolu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<br /><p>Hello All,</p>
<p>     I&#8217;m really impressed the way RICO has revolutionized the way we render table. Tables means Header + Data + Footer. But rico has changed the  idea we define a table. It made it Header + Footer + Dynamic JavaScript or a DataSource. It also added a very nice functionality of progressive downloading. I.e Data can be downloaded while scrolling. It mixes the powerful feature of Ajax with object oriented javascript to provide this solution </p>
<p>Here is the example</p>
<p><code></p>
<p>Rico.loadModule('LiveGridAjax','LiveGridMenu','greenHdg.css');<br />
Rico.loadModule('LiveGridMenu');</p>
<p>Rico.onLoad( function() {<br />
  var buffer = new Rico.Buffer.AjaxXML('test.xml');<br />
    var opts = {<br />
    useUnformattedColWidth: false,<br />
    defaultWidth : 90,<br />
    visibleRows  : 'data',<br />
    frozenColumns: 1,<br />
canPrint: false,<br />
highltOnMouseOver: true,<br />
rowHighlightColor: '#c4c4c5',<br />
specFilterSort:   {type:'raw', canSort:true, canFilter:true, quotes:"'"},<br />
specFilter:   {type:'raw', canSort:false, canFilter:true, quotes:"'"},<br />
specSort:   {type:'raw', canSort:true, canFilter:false, quotes:"'"},<br />
columnSpecs   : ['specSort','specFilterSort','specSort','specSort','specFilterSort']<br />
  };<br />
  var grid = new Rico.LiveGrid('data_grid', buffer, opts);<br />
  grid.menu=new Rico.GridMenu();</p>
<p>});</p>
<p class="ricoBookmark"><span> </span></p>
<div id="data_grid"></div>
<p></code></p>
<p>Now Sample Data can be some thing like this</p>
<p><code></p>
<tr>
<td>5</td>
<td>Star Wars</td>
<td>Action</td>
<td>9.0</td>
<td>135001</td>
<td>1977</td>
</tr>
<tr>
<td>6</td>
<td>The Lord of the Rings: The Two Towers</td>
<td>Action</td>
<td>9.0</td>
<td>115175</td>
<td>2002</td>
</tr>
<tr>
<td>7</td>
<td>Star Wars: Episode V - The Empire Strikes Back</td>
<td>Action</td>
<td>9.0</td>
<td>104167</td>
<td>1980</td>
</tr>
<tr>
<td>5</td>
<td>Star Wars</td>
<td>Action</td>
<td>9.0</td>
<td>135001</td>
<td>1977</td>
</tr>
<tr>
<td>6</td>
<td>The Lord of the Rings: The Two Towers</td>
<td>Action</td>
<td>9.0</td>
<td>115175</td>
<td>2002</td>
</tr>
<tr>
<td>7</td>
<td>Star Wars: Episode V - The Empire Strikes Back</td>
<td>Action</td>
<td>9.0</td>
<td>104167</td>
<td>1980</td>
</tr>
<p></code></p>
<p>Rico Has Lots of Functionalitites which add dynamic Sorting Searching features to you your grid without you explicitly handling those features in UI. Only thing we have toi write is code to render data and filter data. Rico takes care of rest</p>
<p>Enjoy RICO at <a href="http://openrico.org/">http://openrico.org/</a><br />
It has got a live grid which is of a lot of help in many projects.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashwinrayaprolu.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashwinrayaprolu.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashwinrayaprolu.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashwinrayaprolu.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashwinrayaprolu.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashwinrayaprolu.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashwinrayaprolu.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashwinrayaprolu.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashwinrayaprolu.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashwinrayaprolu.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=55&subd=ashwinrayaprolu&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://ashwinrayaprolu.wordpress.com/2009/01/12/rico-provides-the-all-power-full-ajax-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2339c64fc4c9cf6f51db535a5ad89259?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ashwinrayaprolu</media:title>
		</media:content>
	</item>
		<item>
		<title>Properties Loader a Helper Class</title>
		<link>http://ashwinrayaprolu.wordpress.com/2008/11/06/properties-loader-a-helper-class/</link>
		<comments>http://ashwinrayaprolu.wordpress.com/2008/11/06/properties-loader-a-helper-class/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 17:36:27 +0000</pubDate>
		<dc:creator>ashwinrayaprolu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Paramerterize]]></category>
		<category><![CDATA[pass parameter]]></category>
		<category><![CDATA[property file]]></category>

		<guid isPermaLink="false">http://ashwinrayaprolu.wordpress.com/?p=53</guid>
		<description><![CDATA[Listed is the code for Property Loader a Helper class to load properties both from a file and from system.
This 

We can load file each time to read a property using getProperty(key)  Method
       
We can read properties loaded when class is loaded and are can be read from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=53&subd=ashwinrayaprolu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<br /><p>Listed is the code for Property Loader a Helper class to load properties both from a file and from system.<br />
This </p>
<ol>
<li>We can load file each time to read a property using getProperty(key)  Method
       </li>
<li>We can read properties loaded when class is loaded and are can be read from system properties where it is set
       </li>
<li>It also has utility where we can Cast Property Values to Custom Type like Long/Int..etc</li>
<li>It has implementation of adding parameters dynamically in property file by placing some placeholders</li>
</ol>
<p><code><br />
import java.io.IOException;<br />
import java.io.InputStream;<br />
import java.util.Iterator;<br />
import java.util.Properties;</p>
<p>import javax.servlet.ServletContext;</p>
<p>import org.apache.commons.logging.Log;<br />
import org.apache.commons.logging.LogFactory;</p>
<p>/**<br />
 * @author Ashwin Gets System variables that were loaded at server startup from<br />
 *         the server.properties file<br />
 */<br />
public class PropertyLoader {<br />
	private static final Log log = LogFactory.getLog(PropertyLoader.class);<br />
	private static boolean initializedFromFile = false;</p>
<p>	/**<br />
	 * Get the Property From Server.properties. This is used when we want to<br />
	 * read property from file each and every time<br />
	 *<br />
	 * @param key<br />
	 * @return<br />
	 */<br />
	public static String getProperty(String key) {<br />
		Properties props = new Properties();<br />
		InputStream stream = PropertyLoader.class<br />
				.getResourceAsStream("/server.properties");<br />
		try {<br />
			props.load(stream);<br />
		} catch (IOException e) {<br />
			// TODO Auto-generated catch block<br />
			e.printStackTrace();<br />
		}<br />
		return props.getProperty(key);<br />
	}</p>
<p>	/**<br />
	 * This is used when we just want to load all properties loaded and are sure<br />
	 * that those dont change while server is running thereby reducing load of<br />
	 * reading from file<br />
	 *<br />
	 * Get the value of the key passed.<br />
	 *<br />
	 * @param key<br />
	 *            the token<br />
	 * @return the value if there is one, otherwise null<br />
	 */<br />
	public static final String getSystemString(String key) {<br />
		String value = null;<br />
		try {<br />
			value = System.getProperty(key);</p>
<p>		} catch (NullPointerException e) {<br />
			// ignore just return null;<br />
		}<br />
		return value;<br />
	}</p>
<p>	/**<br />
	 * Gets the boolean value if the string equalsIgnoreCase true, otherwise<br />
	 * false.<br />
	 *<br />
	 * @param key<br />
	 *            the token<br />
	 * @return true if the value is ignorecase true all other values including<br />
	 *         null return false.<br />
	 */<br />
	public static final boolean getBoolean(String key) {<br />
		String token = getSystemString(key);<br />
		if (token == null) {<br />
			return false;<br />
		}<br />
		if (token.equalsIgnoreCase("true")) {<br />
			return true;<br />
		}<br />
		return false;<br />
	}</p>
<p>	public static final void loadSystemProperties() throws IOException {<br />
		loadSystemProperties("/server.properties");<br />
	}</p>
<p>	/**<br />
	 * Give the classpath qualified name of the filename to load, e.g.<br />
	 *<br />
	 *
<pre>
	 *  /config.properties
	 * </pre>
<p>	 *<br />
	 * @param file<br />
	 *            the classpath qualified filename of the file to load<br />
	 */<br />
	public static final void loadSystemProperties(String file)<br />
			throws IOException {<br />
		Properties props = new Properties();<br />
		InputStream stream = PropertyLoader.class.getResourceAsStream(file);<br />
		props.load(stream);</p>
<p>		Iterator iterator = props.keySet().iterator();<br />
		while (iterator.hasNext()) {<br />
			String key = (String) iterator.next();<br />
			String value = props.getProperty(key);<br />
			System.getProperties().setProperty(key, value);<br />
		}<br />
		initializedFromFile = true;<br />
	}</p>
<p>	/**<br />
	 * Sets the property and returns the previous value<br />
	 *<br />
	 * @param key<br />
	 * @param value<br />
	 */<br />
	public static final String setSystemProperty(String key, String value) {<br />
		if (!initializedFromFile) {<br />
			log<br />
					.warn("Attempting to set System Property "<br />
							+ key<br />
							+ " to "<br />
							+ value<br />
							+ " but the file System Properties have not yet been read.");<br />
		}<br />
		return System.setProperty(key, value);<br />
	}</p>
<p>	/**<br />
	 * Replaces all config parameters in the string with the actual values.<br />
	 * Parameters are in the form ${PARAM_NAME}. If a parameter tag is<br />
	 * encountered, and the corresponding value cannot be retrieved, an<br />
	 * exception will be generated.<br />
	 */<br />
	public static void resolveParameterTags(StringBuffer sb) {<br />
		int basePos = 0;<br />
		String rstr = sb.toString();<br />
		final String tagStartToken = "${";<br />
		final String tagEndToken = "}";<br />
		int pos = rstr.indexOf(tagStartToken);</p>
<p>		while (pos &gt;= 0) {<br />
			int endPos = rstr.indexOf(tagEndToken, pos);</p>
<p>			if (endPos &lt; 0) {<br />
				String msg = "Parameter tag not closed: " + rstr;<br />
				throw new IllegalArgumentException(msg);<br />
			}</p>
<p>			String pName = rstr.substring(pos + tagStartToken.length(), endPos);<br />
			String parameterValue = getSystemString(pName);</p>
<p>			if (parameterValue == null || "".equals(parameterValue)) {<br />
				String msg = "Missing configuration parameter " + pName<br />
						+ " for tag " + rstr;<br />
				throw new IllegalArgumentException(msg);<br />
			}</p>
<p>			// replace the parameter<br />
			sb.replace(basePos + pos, basePos + endPos + tagEndToken.length(),<br />
					parameterValue);</p>
<p>			// point base position to the rest of the string<br />
			basePos = basePos + pos + parameterValue.length();<br />
			rstr = sb.substring(basePos);<br />
			pos = rstr.indexOf(tagStartToken);<br />
		}<br />
	}</p>
<p>	public static long getLong(String key, long i) {<br />
		String token = getSystemString(key);<br />
		if (token == null) {<br />
			return i;<br />
		}<br />
		return Long.parseLong(token);<br />
	}</p>
<p>	public static int getInt(String key, int i) {<br />
		String token = getSystemString(key);<br />
		if (token == null) {<br />
			return i;<br />
		}<br />
		return Integer.parseInt(token);<br />
	}</p>
<p>	public static void loadSystemProperties(ServletContext servletContext,<br />
			String file) throws IOException {<br />
		// TODO Auto-generated method stub<br />
		Properties props = new Properties();<br />
		InputStream stream = servletContext.getResourceAsStream(file);<br />
		props.load(stream);</p>
<p>		Iterator iterator = props.keySet().iterator();<br />
		while (iterator.hasNext()) {<br />
			String key = (String) iterator.next();<br />
			String value = props.getProperty(key);<br />
			System.getProperties().setProperty(key, value);<br />
		}<br />
		initializedFromFile = true;</p>
<p>	}<br />
}</p>
<p></code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashwinrayaprolu.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashwinrayaprolu.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashwinrayaprolu.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashwinrayaprolu.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashwinrayaprolu.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashwinrayaprolu.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashwinrayaprolu.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashwinrayaprolu.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashwinrayaprolu.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashwinrayaprolu.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=53&subd=ashwinrayaprolu&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://ashwinrayaprolu.wordpress.com/2008/11/06/properties-loader-a-helper-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2339c64fc4c9cf6f51db535a5ad89259?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ashwinrayaprolu</media:title>
		</media:content>
	</item>
		<item>
		<title>Java Program to List Tables and Their Relationships in Database</title>
		<link>http://ashwinrayaprolu.wordpress.com/2008/11/06/java-program-to-list-tables-and-their-relationships-in-database/</link>
		<comments>http://ashwinrayaprolu.wordpress.com/2008/11/06/java-program-to-list-tables-and-their-relationships-in-database/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 17:22:35 +0000</pubDate>
		<dc:creator>ashwinrayaprolu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://ashwinrayaprolu.wordpress.com/?p=50</guid>
		<description><![CDATA[Here is sample Java Program to List all Tables and their relationships in database

/**
 *
 */
package com.research.sql;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
 * @author Ashwin
 *
 */
public class ObjectGrapher {
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			Connection con = DBUtils.getConnection();
			DatabaseMetaData metaData = con.getMetaData();
			ResultSet rs = metaData.getTables(null, null, "%", null);
			List tableNamesList [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=50&subd=ashwinrayaprolu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<br /><p>Here is sample Java Program to List all Tables and their relationships in database</p>
<p><code><br />
/**<br />
 *<br />
 */<br />
package com.research.sql;</p>
<p>import java.sql.Connection;<br />
import java.sql.DatabaseMetaData;<br />
import java.sql.ResultSet;<br />
import java.util.ArrayList;<br />
import java.util.HashMap;<br />
import java.util.List;<br />
import java.util.Map;</p>
<p>/**<br />
 * @author Ashwin<br />
 *<br />
 */<br />
public class ObjectGrapher {</p>
<p>	/**<br />
	 * @param args<br />
	 */<br />
	public static void main(String[] args) {<br />
		try {<br />
			Connection con = DBUtils.getConnection();<br />
			DatabaseMetaData metaData = con.getMetaData();<br />
			ResultSet rs = metaData.getTables(null, null, "%", null);<br />
			List tableNamesList = new ArrayList();<br />
			Map tableMap = new HashMap();</p>
<p>			while (rs.next()) {<br />
				String tableName = rs.getString(3);<br />
				tableNamesList.add(tableName);<br />
			}<br />
			if (rs != null) {<br />
				rs.close();<br />
			}</p>
<p>			// Iterate Throught the List<br />
			for (int i = 0; i &lt; tableNamesList.size(); i++) {</p>
<p>				for (int j = 0; j &lt; tableNamesList.size(); j++) {</p>
<p>					// If both are same tablename we dnt need to find any<br />
					// relation<br />
					if (i == j) {<br />
						continue;<br />
					}</p>
<p>					String primaryTable = (String) tableNamesList.get(i);<br />
					String foreignTable = (String) tableNamesList.get(j);</p>
<p>					rs = metaData.getCrossReference(null, null, primaryTable,<br />
							null, null, foreignTable);</p>
<p>					while (rs.next()) {<br />
						DBTable primaryDBTable = null;<br />
						DBTable foreignDBTable = null;</p>
<p>						String primaryTableName = rs.getString("PKTABLE_NAME");<br />
						String foreignTableName = rs.getString("FKTABLE_NAME");</p>
<p>						if (tableMap.get(primaryTableName) != null) {<br />
							primaryDBTable = (DBTable) tableMap<br />
									.get(primaryTableName);<br />
						} else {<br />
							primaryDBTable = new DBTable();<br />
							primaryDBTable.setTableName(primaryTableName);<br />
						}</p>
<p>						if (tableMap.get(foreignTableName) != null) {<br />
							foreignDBTable = (DBTable) tableMap<br />
									.get(foreignTableName);<br />
						} else {<br />
							foreignDBTable = new DBTable();<br />
							foreignDBTable.setTableName(foreignTableName);<br />
						}</p>
<p>						foreignDBTable.addRelations(primaryDBTable);</p>
<p>						tableMap.put(foreignTableName, foreignDBTable);<br />
						tableMap.put(primaryTableName, primaryDBTable);</p>
<p>						System.out.println("Primary Key Table Name :"<br />
								+ rs.getString("PKTABLE_NAME")<br />
								+ "  Primary Key Column :"<br />
								+ rs.getString("PKCOLUMN_NAME"));<br />
						System.out.println("Foreign Key Table Name :"<br />
								+ rs.getString("FKTABLE_NAME")<br />
								+ "  Foreign Key Column :"<br />
								+ rs.getString("FKCOLUMN_NAME"));<br />
						System.out<br />
								.println("--------------------------------------------------------------------");<br />
					}</p>
<p>					if (rs != null) {<br />
						rs.close();<br />
					}<br />
				}<br />
			}</p>
<p>		} catch (Exception e) {<br />
			e.printStackTrace();<br />
		}<br />
	}</p>
<p>}<br />
</code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashwinrayaprolu.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashwinrayaprolu.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashwinrayaprolu.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashwinrayaprolu.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashwinrayaprolu.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashwinrayaprolu.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashwinrayaprolu.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashwinrayaprolu.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashwinrayaprolu.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashwinrayaprolu.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=50&subd=ashwinrayaprolu&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://ashwinrayaprolu.wordpress.com/2008/11/06/java-program-to-list-tables-and-their-relationships-in-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2339c64fc4c9cf6f51db535a5ad89259?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ashwinrayaprolu</media:title>
		</media:content>
	</item>
		<item>
		<title>Passing Parameters To Callback Function In DWR</title>
		<link>http://ashwinrayaprolu.wordpress.com/2008/10/02/passing-parameters-to-callback-function-in-dwr/</link>
		<comments>http://ashwinrayaprolu.wordpress.com/2008/10/02/passing-parameters-to-callback-function-in-dwr/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 18:37:49 +0000</pubDate>
		<dc:creator>ashwinrayaprolu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[DWR]]></category>
		<category><![CDATA[DWR and Javascript]]></category>

		<guid isPermaLink="false">http://ashwinrayaprolu.wordpress.com/?p=48</guid>
		<description><![CDATA[DWR is one of Most Finest written libraries for web development which has made life of many developers easy. It made developers feel AJAX as Kids Langugage. It has created blanket over a rough path of Road Which Javascript Provides while manipulating Objects. Here i would explain how to pass Parameters to A callback function [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=48&subd=ashwinrayaprolu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<br /><p>DWR is one of Most Finest written libraries for web development which has made life of many developers easy. It made developers feel AJAX as Kids Langugage. It has created blanket over a rough path of Road Which Javascript Provides while manipulating Objects. Here i would explain how to pass Parameters to A callback function in DWR. I assume reader to be aware of how DWR works before reading this</p>
<p>I&#8217;m attaching code snippet which is self explanatory</p>
<p><code><br />
		// define an erasure function to store a reference to<br />
		// dataFromBrowser and to call dataFromServer<br />
		var callbackProxy = function(bucketMap) {<br />
		  fillBucketTypes(dataFromServer, dataFromBrowser );<br />
		};</p>
<p>		SystemDAO.getBucketTypes(callbackProxy);<br />
	}</p>
<p>        dataFromBrowser is the parameters which is passed here<br />
	function fillBucketTypes(bucketMap,dataFromBrowser ){<br />
		//alert("In Filling "+presentBucketTypeId);<br />
		var tempBucketTypeId = "bucketType" + String(dataFromBrowser );<br />
		dwr.util.addOptions(tempBucketTypeId, bucketMap, true);<br />
	}<br />
</code> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashwinrayaprolu.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashwinrayaprolu.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashwinrayaprolu.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashwinrayaprolu.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashwinrayaprolu.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashwinrayaprolu.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashwinrayaprolu.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashwinrayaprolu.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashwinrayaprolu.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashwinrayaprolu.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashwinrayaprolu.wordpress.com&blog=381084&post=48&subd=ashwinrayaprolu&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://ashwinrayaprolu.wordpress.com/2008/10/02/passing-parameters-to-callback-function-in-dwr/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2339c64fc4c9cf6f51db535a5ad89259?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ashwinrayaprolu</media:title>
		</media:content>
	</item>
	</channel>
</rss>