Tag Archives: Struts

Uploading / Retrieving Image from MySql database to Java Web Applications


Reading the Image from the MySql Database public class name  { //Connection with the database; byte baray[] = (get the image bytes from the database); response.setContentType(“image/jpg”); oImg = response.getOutputStream(); oImg.write(baray); oImg.flush(); oImg.close(); } Call this java class from JSP (Java Server Page), you will get the image displayed. On safe upload/retrieve use base64 in your […]

https://systemlanguage.wordpress.com/2015/08/03/uploading-retrieving-image-from-mysql-database-to-java-web-applications/

Simple Auto Layout in Swift


via Simple Auto Layout in Swift · The Main Thread.

I haven’t had much time to spend with Swift lately but with the release of Swift 1.2 it seemed like a good time to refresh my memory. I have one (very unfinished) project written entirely in Swift that helps me keep track of the changes in the language. This project has come to the point where I can no longer rely on storyboards and nibs for layout so the time had come to look seriously at writing Auto Layout code in Swift.

Now I know there are a few open source libraries that provide convenience methods and/or DSLs for working with Auto Layout in both Swift and Objective C and I’m sure they’re mostly brilliant. Regardless, I like to really understand the code I’m writing and as a rule I avoid any library I can write (the subset I require of) myself.

So what are the most common things we need to do when laying out views? This is roughly what I came up with:

  1. Place a view within a parent pinned relative to the parent (Struts!)
  2. Place a view within a parent pinned to opposite edges so that it resizes with the parent (Springs!)
  3. Set the explicit width and or height of a view
  4. Set the relative width and or height of a view based on a another view
  5. Place a view relative to another view in the hierarchy
  6. Align a view with another view within the hierarchy

Of course NSLayoutConstraint can do all of this (and a lot more) but this seemed to me to be the low hanging fruit, as it were, for simplifying layout code. So with these requirements in mind, and a goal of simplicity and readability above all else, I threw together some code this afternoon.

Available Resource: Java Developer


Click to Download Resume/ C.V

Renuka Santosh Kharangate is a Java Developer has 5 YEARS of IT Industry experience and 5 years of relevant experience. Her current location is Colorado, USA and She is willing to relocate anywhere in USA. Her area of expertise are Core Java, Servlets, JSP, JDBC, JPA, JMS, Web services (SOAP, RESTful), Apache Wink (REST), Struts, Spring, Hibernate, Apache Tomcat server, Websphere Application server, Apache ActiveMq. She is on H4 Visa and looking out for sponsorship. she is available Immediately. If interested please E-mail him at renukharangate@gmail.com or you can also call her at 720-402-1525

Struts 2 and Log4J Example


via Struts 2 and Log4J Example | Examples Java Code Geeks.

In this example we will learn how to integrate Struts2 application with Log4j logging framework. Apache Struts is a free, open-source, MVC framework for creating elegant, modern Java web applications.

It favors convention over configuration, is extensible using a plugin architecture, and ships with plugins to support REST, AJAX and JSON.

Log4J is Apache’s popular logging framework.

Tools and technologies used in this example are java 1.7, Maven, Intellij, Log4j-1.2.16, Struts-2.3.15.1, Tomcat-7.0.54