How to improve image quality in iTextSharp.
I was working in question paper project. in this project I need to generate PDF file from images. but when I generated the PDF file, image's quality was so bad. so to overcome this problem I have used listed below code.
System.Drawing.Image image = System.Drawing.Image.FromFile("myimage.jpg");
iTextSharp.text.Document...
Friday, November 15, 2013
Accept only numeric character with BACKSPACE and TAB button facility
Accept only numeric character with BACKSPACE and TAB button facility.
When you enter some numeric value in age or amount like textbox then you not need to enter any other character. there are lot of script available in the internet about this. but they don't support BACKSPACE and TAB button facility. here are listed below code will...
Sunday, November 10, 2013
Post multiple and return values from JSON in JSP
JSON is very lightweight than XML. Here is the some hard JSON example with multiple values post and
multiple return values.
I have used "json-simple-1.1.1.jar" , so you need to download it.
index.jsp
---------------------
<%@ page import="org.json.JSONObject"%>
<%@ page import="java.io.PrintWriter"%>
<script src="jquery-1.10.2.js"...
Simple JSON in JSP
Simple JSON in JSP
JSON is very lightweight than XML.Here is the simple example of JSON with java.
I have used "json-simple-1.1.1.jar" , so you need to download it.
index.jsp
---------------------
<%@ page import="org.json.JSONObject"%>
<%@ page import="javax.json.Json"%>
<%@ page import="java.io.PrintWriter"%>
<script src="jquery-1.10.2.js"...
Saturday, November 02, 2013
Show records without class in hibernate and struts
Show all records without pojo class in hibernate and struts
Struts and Hibernate if you need to show all records from database table then you need to create a pojo class...in some cases you not need to use pojo class then how can you achieve to show all records? I have faced the same problem and overcome it with listed below code.
In query.hbm.xml...