About viralpatel.net

viralpatel-profileHey Everyone! I’m Viral Patel. Welcome to my technology blog!

I created this blog to narrate my coding and technology learning experiences. I like sharing my experiments and ideas with everyone by writing articles on latest technological trends.

I work for an IT company as Technology Lead and in my leisure time I bake new recipes for applications and try my hands on latest trends on programming.

Primarily I write about Java, JEE, Spring, Hibernate, jQuery, PHP, CakePHP, Maven, Web 2.0, Cloud and the list goes on…. Of late I am trying new technologies such as Google app engine, play framework etc and I love it.

Not all the articles that you find on this blog are written by me. Intermittently my friends / colleagues share some very useful tips and tricks.

I write simple apps / tutorials to learn a new technology in my spare time. Here’s a list of things that I’ve done in the past.

Taj Operating System – TAJ is India’s first Object oriented multitasking, multithreading operating system created from scratch. It is written in C++ and assembly. Its 32-bit Protected mode Operating System. Read more about Taj on its homepage.

eazyDiary – Easy way to write / manage your personal diary online without any hassels and manage all your events and people you share your day with. This app is created using Play! framework in Java and hosted on Google’s very own cloud – Google App engine.

eazyBookmark – An easy way to synchronize your bookmarks between different computers. All you need to do is to add your links in eazyBookmark. Also you can login into eazyBookmark using your Google Account. So no hassle of rememberring passwords. The application is being hosted on Google app engine.

Realtime search – A real time search experience using purely Javascript and Google Search API

Spring 3 article series – A series of 7 articles on Spring 3 MVC which explains different aspects such as form handling, tiles plugin integration, internationalization / localization, themes in spring mvc etc.

Struts 2 article series – A series of 7 articles on Struts 2 which explains different features such as Validations, Interceptors, Tiles plugin integration, Ajax on Struts 2 etc.

Articles cited by other websites

Springsource
http://www.springsource.org/node/2997

DZone
http://java.dzone.com/users/viralpatel

Theserverside.com
http://www.theserverside.com/discussions/thread.tss?thread_id=61080

I’d love to hear from you! Say hello to me in comments section below, or if you’re shy then email me on viralpatel.net(at)gmail.com or follow me @viralpatelnet


101 Comments

  • Anurag 5 July, 2012, 19:35

    nice blog buddy keep up the good work , this site is really useful.

  • GB (London) 8 July, 2012, 22:25

    Very helpful blog for beginners on technologies you cover. Great work!

  • phphunger 9 July, 2012, 11:03

    wow…nice blog patel..i liked your blog…very informative…good work..keep rocking…

  • Amit 26 July, 2012, 14:21

    Hello Viral,
    its pleasure to hve friendship with u.

  • prabhat 26 July, 2012, 15:13

    nice work dude……keep it on …

  • Suyash Jain 15 August, 2012, 10:22

    hi pal,

    very good site… i too want to use the same template for my site… can u help me in this….

  • Hitesh Saliya 1 September, 2012, 19:39

    Jsn viral,

    Its me, Hitesh Saliya, your classsmate.

    Good blog….

    Keep it up!!!!!!!!!!!!

    • Viral Patel 1 September, 2012, 19:44

      Hey Dude :) Good to hear from you! Hope you doing well.

      • Hitesh Saliya 19 October, 2012, 18:47

        Yes… Enjoying here in Gujarat …
        Settled in gandhinagar.
        Did the progress : 2 childs :)

  • Torsten 4 September, 2012, 18:49

    Hey Viral,
    you really helped me a lot realizing my damned JQuery Autocompletion-jsp! Thanks a lot for that!
    I really like the way you restrict your example-code to the most important, then it’s very easy to see how it works and what is crucial!
    Keep on helping the world!
    Torsten (from Germany)

  • Gaurav Dighe 4 October, 2012, 20:03

    Hello Viral, Nice tutorials.

    I have some queries with regards to Hibernate 3.6.10. Please follow the below link for the querry
    https://forum.hibernate.org/viewtopic.php?f=1&t=1024472

    Do reply on the thread or else you can mail me at gauravdighe@yahoo.com

  • subbbiah 10 October, 2012, 15:10

    really super tutorial

  • Prashant 12 October, 2012, 17:17

    Hi Patel,

    I am looking for a Google CSE customizing and have not found a reliable answer and hence checking with you…

    The customization that I am looking for on google CSE is to give the user three different options of searching from the same search box.

    a. Custom Search the Site..
    b. Custom Search a list of URLs
    c. Search the web.

    The idea is to have a radio button so that the user can choose if he wants to search the site, the list of links or the web.

    Is this possible?

  • amit 22 October, 2012, 21:52

    Hi viral,
    amazing work ….. I wanted to be your friend.. can we ?
    i like your attitude …. how old are you ? ur work is too good

    send me email

    tc

  • Swadeep 25 October, 2012, 2:58

    Hi Viral,
    I liked your site and tutorials.
    Whihc template you use for this site!

    Thanks
    Swadeep

  • Abhilash sharma 26 October, 2012, 10:56

    Hii Viral,
    Your blog is really very helpful for beginners.You understand the areas of beginners where to focus and starting from very basic you make the learner comfortable and confident.your blog about struts helped me a lot to work on struts.thnx buddy.keep it up….thnx a lot..

  • Vishal Patel 26 October, 2012, 16:19

    Hi i am trying to check boolean value true or false in if condition inside tag in struts2. My code is as below

    But every time its goes into else condition. can anyone help me out??

    Can u pls mail me solution??

  • Behzad 27 October, 2012, 0:54

    Dear viralpatel,

    I’m beginner in web programming.
    I’m looking for the best IT institute in India to learn java and JEE and some good frameworks.
    For this reason I would ask you that where is the best place for learning which i mentioned ? and why is good there?

    Regards
    Behzad from Iran

  • sharman 9 November, 2012, 17:49

    nice work dude keep on.
    .

  • Berni 20 November, 2012, 16:29

    Thank you for your pages. I stumbled in with your “20 very useful Java code snippets for Java Developers” and ended up surfing most of your stuff. I especially like that it all is well written and almost all of it has good code examples and links to where you got it from.
    Is it procrastination if I end up coding stuff inspired by your site that I don’t need in my current project? I don’t think so. Who knows when I’ll need QR-Codes ;-)

  • Shamshul 3 December, 2012, 1:53

    Nice work

  • nishanthjohn 10 January, 2013, 15:36

    Best tutorial ever found.Very helpful in understanding the concepts.Provided with a lot of examples.Thank you very much.

  • Adil 17 January, 2013, 13:33

    hai
    I want to develop an android app to send sms messages with speech recognising interface. Could you please help me to develop it.

  • Dolly 17 January, 2013, 23:48

    Nice blog Viral.. i love eazyDiary, thanks!

  • Prasad 18 January, 2013, 9:22

    Hi Viral,

    I m trying to find information about deploying a Favicon Icon to my application.
    Could you please pass on the detailed information about how this icon is added to your application ?

    Thanks

  • sunny 21 January, 2013, 17:35

    Hi Viral,
    Is the feature of importing existing bookmarks to eazyBookmark is available. If yes, then plz tell the steps to follow….

  • tushar 24 January, 2013, 7:19

    Hi Viral Patel :)
    Cool :) Nice :) Blog :) Buddy
    keep up the good work :) ,
    this site is really useful :)
    Thanks A Lot

  • Gopi Shiva Krishna 30 January, 2013, 11:32

    Hi Viral patel,

    Your blog is amazing, it answered all my questions.

    Best tutorial ever found.Very helpful in understanding the concepts.Provided with a lot of examples.Thank you very much.

    Thanks a ton ViralPatel.. :-)

  • shweta 7 February, 2013, 7:44

    hey i want make image processing app in android . want to effects (sepia,blur,snowwhite etc……)
    .there is inbuilt class in android i.e. media.EffectFactory ,it contains string functions . can u tell me how to implement those functions in my code

  • Prashant 8 February, 2013, 10:09

    nice blog viral… keep it up…

  • Aditya B 21 February, 2013, 23:57

    hey,
    Viral, This is really a gr8 blog. I had some problms in struts, but now they are clear. Wow cant believe that learning struts wud be so easy..!
    Anyways Thanks a Lot..!
    Bye.
    Aditya B

  • Chiranjiv 7 March, 2013, 0:23

    Hi Viral Patel,
    I have jsp view in which value from controller are displayed using display tag I want to add a new column with check box, so when i check a particular check box and click update , defined controller should be able to get that particular selected row corresponding value and process it further. Please suggest me the way to do it

    Thanks in Advance
    Chiranjiv

  • Rajesh 7 March, 2013, 1:28

    Hi Viral,

    Im new bee to IT industry. Currently i joined in a small concern as a java developer. Many of my troubles in development has been solved by your tutorials. Thanks a lot. And im here for asking you a favor? Since im a new bee i know Java,J2ee,Servlets, Jsp. I want to add up stuffs. can you help me out like den vat i hav 2 learn? which r all useful for my career. Im very passionate towards coding. Thanks in advance

  • lalit 7 March, 2013, 20:03

    sir i am creating “e-shopping” project on J2EE so give me guide for “how to online transaction ? ” .

    sir help me …..

  • Taichiseal 16 March, 2013, 22:33

    Hi Viral
    I came across your blog/post while searching for a way to replace the Google Reader Shared Items widget on my blog ahead of the death of GR on 01July2013. I am thinking perhaps I can “save” the items I want to share on Feedly, then find a way to push them onto a Blogger widget. Or push “Archived” items from Pocket. Do you think that will work? If so, how can I do the “pushing” to Blogger ?
    Regards
    Taichiseal / Singapore

  • Abhijit 27 April, 2013, 1:47

    Viral

    I am stuck with this one for a long time and cannot find a way out. Please help me out.

    I have two tables applicant and DS_1350. One applicant will have one ds1350 record and the applicant_id (auto generated) in the applicant is foreign key to the ds1350. When I try to populate the Applicant class with DS1350 data in it and save, the foreign key in the ds1350 table is getting saved as null, the row is created though. Parent is fine.

        @Entity
        @Table(name = "applicant")
        public class Applicant implements Serializable {
            	private static final long serialVersionUID = -8634638904962909584L;
            	// Primary id required by Hibernate
        	@Id
        	@GeneratedValue(strategy=IDENTITY)
        	@Column(name = "applicant_id", nullable=false, unique=true)
                private Long applicantId; // Unique id for each applicant
            	@OneToOne(cascade = CascadeType.ALL)
        	@Fetch(value = FetchMode.SELECT)
        	@JoinColumn(name = "applicant_id", referencedColumnName= "applicant_id")
        	private DS1350 ds1350;
        }
        @Entity
        @Table(name = "ds_1350")
        public class DS1350 implements Serializable {
        	private static final long serialVersionUID = -7370747595057569296L;
            	// Primary id required by Hibernate
        	@Id
        	@GeneratedValue(strategy=IDENTITY)
        	@Column(name = "ds_1350_id", nullable=false, unique=true)
        	private Long ds1350Id;
        
        	@Column(name = "applicant_id", unique=true, nullable=false)
        //    @GeneratedValue(generator="gen")
        //	@GenericGenerator(name = "gen", strategy = "foreign", parameters = @Parameter(name = "property", value = "applicant"))
        	private Long applicantId; // Unique id for each applicant
        
        	@Column(name = "ds1350_no", length = 50)
            private String ds1350Number;    
        }
         public class ApplicantDaoTest {
        	@Autowired
        	private ApplicantDao applicantDao;
        	private Applicant applicant;
        	private DS1350 ds1350 = new DS1350();
        	@BeforeClass
        	public static void beforeClass() {
        	}
            	@AfterClass
        	public static void afterClass() {
        	}
            	@Before
        	public void setup() {
        		this.initApplicant();
        	}    	
        	@After
        	public void teardown() {
        	}
        	private void initApplicant() {
        		applicant = new Applicant();
        		
        		applicant.setFirstName("John");
        		
        		Calendar calendar = Calendar.getInstance();
        		applicant.setDob(calendar);
        		
        		applicant.setSsn("123456789");
        		applicant.setCreatedBy("JUNIT");
        		applicant.setCreatedDate(Calendar.getInstance());
        		applicant.setModifiedBy("JUnit");
        		applicant.setModifiedDate(Calendar.getInstance());
        		
        		this.initDS1350();
        		
        	}    
        	private void initDS1350 () {		
        		ds1350.setDs1350Number("ds1350Number");
        		ds1350.setCreatedBy("JUNIT");
        		ds1350.setCreatedDate(Calendar.getInstance());	
        		
        		applicant.setDs1350(ds1350);
        	}    	
        	@Test
        	public void testSaveApplicant() {
        		Long applicantId = applicantDao.saveApplicant(applicant);
        		applicant = applicantDao.getApplicantByPrimaryKey(applicantId);
        		assertTrue("ds1350Number".equals(applicant.getDs1350().getDs1350Number()));
        	}
            
        }
    

    Applicant table (Parent)

    Ds1350 table (child)

    The applicant_id is null here which should have been 6000386 and that’s the issue.

  • rambabu narava 1 May, 2013, 15:22

    You are doing a good job and many of the beginners like me are referring this blog for some references.

    Thank you !

  • vishal jain 3 May, 2013, 10:23

    Hi Viral,
    You are doing a great job by sharing so much useful information.
    Recently I’ve also started blogging, my links are in:
    https://en.gravatar.com/jvishal
    People like you are always kind of inspiration to me.

    Thanks,
    Vishal

  • H Thaker 13 May, 2013, 10:14

    Hello,

    Content on your blog is very informative.

    This is really a kind of “Knowledge Sharing” platform.

    Keep up the good work…

    Thanks,

    H Thaker

  • Ram 23 May, 2013, 7:16

    Truly very informative and really helpful, great job!

    Thanks,
    Ram

  • Rohit Kapdi 24 May, 2013, 16:39

    Hello,
    Nice website and a different one for IT people.
    So any plain to work on .net and ms-sql.

Leave a Reply

Your email address will not be published. Required fields are marked *

Note

To post source code in comment, use [code language] [/code] tag, for example:

  • [code java] Java source code here [/code]
  • [code html] HTML here [/code]