<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root
	xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:og="hybs-taglib.tld" 
	version="2.0">
<jsp:directive.page language="java" contentType="text/html; charset=UTF-8" />

<jsp:directive.page import="org.opengion.fukurou.util.QrcodeImage" />
<og:head headType="result" />
<jsp:directive.include file="/jsp/custom/result_info.jsp" />
<og:comment
	system	= "GF:エンジンサンプル"
	pgid	= "GF6310"
	title	= "二次元バーコード"
	date	= "2008/10/27"
	author	= "Hiroki.Nakamura"
	text	= ""
	version	= "001"
/>

<og:columnCheck
	nullCheck = "TEXT"
/>

<jsp:scriptlet>
	String text			= request.getParameter( "TEXT" );
	String saveFile		= request.getParameter( "SAVE_FILE" );
	int version			= Integer.valueOf(request.getParameter( "VERSION" )).intValue();
	char encodeMode		= (request.getParameter( "ENCODE_MODE" )).charAt(0);
	char errorCorrect	= (request.getParameter( "ERROR_CORRECT" )).charAt(0);
	String imgType		= request.getParameter( "IMAGE_TYPE" );
	int pixel			= Integer.valueOf(request.getParameter( "PIXEL" )).intValue();

	QrcodeImage.EncMode encMode = QrcodeImage.EncMode.get( encodeMode );
	QrcodeImage.ErrCrct errCrct = QrcodeImage.ErrCrct.get( errorCorrect );

	QrcodeImage qrcode = new QrcodeImage();
	qrcode.init( text,saveFile,version,encMode,errCrct,imgType,pixel );
	qrcode.saveImage();

</jsp:scriptlet>

<og:text>
<img src="{@SYS.CONTEXT_URL}/filetemp/{@USER.ID}/rqcode.png" alt="{@TEXT}" />
</og:text>

<jsp:directive.include file="/jsp/common/htmlend.jsp" />
</jsp:root>
