About viralpatel.net
Hey 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
nice blog buddy keep up the good work , this site is really useful.
Very helpful blog for beginners on technologies you cover. Great work!
wow…nice blog patel..i liked your blog…very informative…good work..keep rocking…
Hello Viral,
its pleasure to hve friendship with u.
nice work dude……keep it on …
hi pal,
very good site… i too want to use the same template for my site… can u help me in this….
Jsn viral,
Its me, Hitesh Saliya, your classsmate.
Good blog….
Keep it up!!!!!!!!!!!!
Hey Dude
Good to hear from you! Hope you doing well.
Yes… Enjoying here in Gujarat …
Settled in gandhinagar.
Did the progress : 2 childs
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)
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
really super tutorial
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?
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
Hi Viral,
I liked your site and tutorials.
Whihc template you use for this site!
Thanks
Swadeep
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..
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??
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
nice work dude keep on.
.
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
Nice work
Best tutorial ever found.Very helpful in understanding the concepts.Provided with a lot of examples.Thank you very much.
hai
I want to develop an android app to send sms messages with speech recognising interface. Could you please help me to develop it.
Nice blog Viral.. i love eazyDiary, thanks!
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
Hi Viral,
Is the feature of importing existing bookmarks to eazyBookmark is available. If yes, then plz tell the steps to follow….
Hi Viral Patel
Nice
Blog
Buddy
,
Cool
keep up the good work
this site is really useful
Thanks A Lot
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..
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
nice blog viral… keep it up…
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
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
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
sir i am creating “e-shopping” project on J2EE so give me guide for “how to online transaction ? ” .
sir help me …..
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
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.
You are doing a good job and many of the beginners like me are referring this blog for some references.
Thank you !
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
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
Truly very informative and really helpful, great job!
Thanks,
Ram
Hello,
Nice website and a different one for IT people.
So any plain to work on .net and ms-sql.