<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" 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/" > <channel><title>Comments on: Struts 2 File Upload and Save Tutorial with Example</title> <atom:link href="http://viralpatel.net/blogs/2009/12/struts-2-file-upload-save-tutorial-with-example.html/feed" rel="self" type="application/rss+xml" /><link>http://viralpatel.net/blogs/2009/12/struts-2-file-upload-save-tutorial-with-example.html</link> <description>Tutorials, Java, J2EE, Struts, AJAX, JavaScript, CSS, Web 2.0, MySQL, Articles</description> <lastBuildDate>Wed, 08 Feb 2012 10:36:26 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: eknath</title><link>http://viralpatel.net/blogs/2009/12/struts-2-file-upload-save-tutorial-with-example.html/comment-page-1#comment-25859</link> <dc:creator>eknath</dc:creator> <pubDate>Mon, 06 Feb 2012 06:56:39 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1969#comment-25859</guid> <description>Its Fine tutorial But i want to save that image to mysql database can u help me with the code</description> <content:encoded><![CDATA[<p>Its Fine tutorial But i want to save that image to mysql database can u help me with the code</p> ]]></content:encoded> </item> <item><title>By: Preeti</title><link>http://viralpatel.net/blogs/2009/12/struts-2-file-upload-save-tutorial-with-example.html/comment-page-1#comment-25231</link> <dc:creator>Preeti</dc:creator> <pubDate>Fri, 20 Jan 2012 09:41:28 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1969#comment-25231</guid> <description>Hi,viral this was a very nice tute..one help i need ,actually needs to design a dojo tree with the help of json and this json should be from action class of struts 2.can u help me out...sa soon as posible...thanks</description> <content:encoded><![CDATA[<p>Hi,viral this was a very nice tute..one help i need ,actually needs to design a dojo tree with the help of json and this json should be from action class of struts 2.can u help me out&#8230;sa soon as posible&#8230;thanks</p> ]]></content:encoded> </item> <item><title>By: Arun</title><link>http://viralpatel.net/blogs/2009/12/struts-2-file-upload-save-tutorial-with-example.html/comment-page-1#comment-25118</link> <dc:creator>Arun</dc:creator> <pubDate>Thu, 19 Jan 2012 06:26:19 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1969#comment-25118</guid> <description>the program is working fine. but pls tell me where the file is getting uploaded in the server. pls tell me how to change the file path where i upload the file in the server. thanks in advance. you are doing a great job.</description> <content:encoded><![CDATA[<p>the program is working fine. but pls tell me where the file is getting uploaded in the server. pls tell me how to change the file path where i upload the file in the server. thanks in advance. you are doing a great job.</p> ]]></content:encoded> </item> <item><title>By: ck</title><link>http://viralpatel.net/blogs/2009/12/struts-2-file-upload-save-tutorial-with-example.html/comment-page-1#comment-19805</link> <dc:creator>ck</dc:creator> <pubDate>Mon, 26 Dec 2011 15:09:24 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1969#comment-19805</guid> <description>Thanks so much Viral, with your tutorial, it help me to study struts2 very quick. Thank you very much</description> <content:encoded><![CDATA[<p>Thanks so much Viral, with your tutorial, it help me to study struts2 very quick. Thank you very much</p> ]]></content:encoded> </item> <item><title>By: GV</title><link>http://viralpatel.net/blogs/2009/12/struts-2-file-upload-save-tutorial-with-example.html/comment-page-1#comment-16857</link> <dc:creator>GV</dc:creator> <pubDate>Thu, 03 Nov 2011 04:36:04 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1969#comment-16857</guid> <description>Hi Pradeep,For testing,In web.xml instedof Login.jsp update it to UserImage.jsp and test updaload process.</description> <content:encoded><![CDATA[<p>Hi Pradeep,</p><p>For testing,In web.xml instedof Login.jsp update it to UserImage.jsp and test updaload process.</p> ]]></content:encoded> </item> <item><title>By: Gopikrishnan</title><link>http://viralpatel.net/blogs/2009/12/struts-2-file-upload-save-tutorial-with-example.html/comment-page-1#comment-16665</link> <dc:creator>Gopikrishnan</dc:creator> <pubDate>Mon, 17 Oct 2011 20:42:05 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1969#comment-16665</guid> <description>Hi, The error you have faced - &quot;I have problem with String filePath = servletRequest.getSession().getServletContext().getRealPath(“/”); .It allways return null .And I get a java.lang.NullPointerException plz I need your help&quot; can be resolved by adding the following interceptor in your struts.xml since the file upload action you are calling doesnt call the servlet class at that instance.Interceptor:example below is the one used in my application application/vnd.ms-excel &lt;!-- 10240 10KB --&gt; 2097152 fileUpload.def Footer.jsp </description> <content:encoded><![CDATA[<p>Hi,<br /> The error you have faced &#8211; &#8220;I have problem with String filePath = servletRequest.getSession().getServletContext().getRealPath(“/”); .It allways return null .And I get a java.lang.NullPointerException<br /> plz I need your help&#8221;<br /> can be resolved by adding the following interceptor in your struts.xml since the file upload action you are calling doesnt call the servlet class at that instance.</p><p>Interceptor:</p><p>example below is the one used in my application</p><p> application/vnd.ms-excel<br /> &lt;!&#8211; 10240 10KB &#8211;&gt;<br /> 2097152</p><p> fileUpload.def<br /> Footer.jsp</p> ]]></content:encoded> </item> <item><title>By: Pradeep</title><link>http://viralpatel.net/blogs/2009/12/struts-2-file-upload-save-tutorial-with-example.html/comment-page-1#comment-16629</link> <dc:creator>Pradeep</dc:creator> <pubDate>Fri, 14 Oct 2011 13:19:16 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1969#comment-16629</guid> <description>Hi, Can you help to debug the following error in my eclipse deployment. I have downloaded he source code and added the binaries as mentioned here. I&#039;m getting the following warningWARNING: No configuration found for the specified action: &#039;userImage&#039; in namespace: &#039;&#039;. Form action defaulting to &#039;action&#039; attribute&#039;s literal value. Oct 14, 2011 3:14:57 PM org.apache.struts2.dispatcher.Dispatcher getSaveDir INFO: Unable to find &#039;struts.multipart.saveDir&#039; property setting. Defaulting to javax.servlet.context.tempdirand the page gives following errorHTTP Status 404 - /StrutsHelloWorld/userImage--------------------------------------------------------------------------------type Status reportmessage /StrutsHelloWorld/userImagedescription The requested resource (/StrutsHelloWorld/userImage) is not available.</description> <content:encoded><![CDATA[<p>Hi,<br /> Can you help to debug the following error in my eclipse deployment. I have downloaded he source code and added the binaries as mentioned here.<br /> I&#8217;m getting the following warning</p><p>WARNING: No configuration found for the specified action: &#8216;userImage&#8217; in namespace: &#8221;. Form action defaulting to &#8216;action&#8217; attribute&#8217;s literal value.<br /> Oct 14, 2011 3:14:57 PM org.apache.struts2.dispatcher.Dispatcher getSaveDir<br /> INFO: Unable to find &#8216;struts.multipart.saveDir&#8217; property setting. Defaulting to javax.servlet.context.tempdir</p><p>and the page gives following error</p><p>HTTP Status 404 &#8211; /StrutsHelloWorld/userImage</p><p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p>type Status report</p><p>message /StrutsHelloWorld/userImage</p><p>description The requested resource (/StrutsHelloWorld/userImage) is not available.</p> ]]></content:encoded> </item> <item><title>By: adbeng</title><link>http://viralpatel.net/blogs/2009/12/struts-2-file-upload-save-tutorial-with-example.html/comment-page-1#comment-15534</link> <dc:creator>adbeng</dc:creator> <pubDate>Mon, 01 Aug 2011 03:11:20 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1969#comment-15534</guid> <description>hii kannan pay attention to FileUploadAction class :you have just to copy as its write here and its work very well.Good luck   .</description> <content:encoded><![CDATA[<p>hii kannan pay attention to FileUploadAction class :you have just to copy as its write here and its work very well.Good luck   .</p> ]]></content:encoded> </item> <item><title>By: kannan</title><link>http://viralpatel.net/blogs/2009/12/struts-2-file-upload-save-tutorial-with-example.html/comment-page-1#comment-15508</link> <dc:creator>kannan</dc:creator> <pubDate>Fri, 29 Jul 2011 13:02:48 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1969#comment-15508</guid> <description>Yes, I also have that same problem with String filePath = servletRequest.getSession().getServletContext().getRealPath(“/”); .It allways return null .And I get a java.lang.NullPointerException plz I need your help</description> <content:encoded><![CDATA[<p>Yes, I also have that same problem with String filePath = servletRequest.getSession().getServletContext().getRealPath(“/”); .It allways return null .And I get a java.lang.NullPointerException<br /> plz I need your help</p> ]]></content:encoded> </item> <item><title>By: adbeng</title><link>http://viralpatel.net/blogs/2009/12/struts-2-file-upload-save-tutorial-with-example.html/comment-page-1#comment-15502</link> <dc:creator>adbeng</dc:creator> <pubDate>Thu, 28 Jul 2011 22:57:33 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1969#comment-15502</guid> <description>I have problem with String filePath = servletRequest.getSession().getServletContext().getRealPath(“/”); .It allways  return null .And I get  a java.lang.NullPointerException plz  I need your help</description> <content:encoded><![CDATA[<p>I have problem with String filePath = servletRequest.getSession().getServletContext().getRealPath(“/”); .It allways  return null .And I get  a java.lang.NullPointerException<br /> plz  I need your help</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: viralpatel.net @ 2012-02-09 10:11:14 -->
