Monthly Archives: March 2011
While reading Programming Challenges I thought of implementing the path of 3n+1 for a given number. Here is my first stab in Java. I am not trying to solve the problem, however I thought it is interesting to print the … Continue reading
Many of us build war files as part of the project, however some projects stilll use jar and copy ant tasks to assemble war file. However ant has a built-in war task which takes care of web.xml, classes, libraries etc., … Continue reading
One of the benefits of using Struts framework is declarative validation mechanism and error reporting. Struts provides validation hook so that you can implement your own validation logic in action classes. The validation can be turned on/off in action mapping … Continue reading
How do you internationalize your struts 1.1 application? Here are simple steps: Prepare you language speicific resource bundles. Provide default resource bundle in struts-config.xml using message-resources Include struts bean tag lib in your web.xml using taglib In JSP, include your … Continue reading
In JSP you can get access to the following implicit objects: request – HttpServletRequest response – HttpServletResponse Session – HttpSession out – JspWriter application – ServletContext config – ServletConfig pageContext page exception (available only to error pages).