Download - Svetlin Nakov
Download - Svetlin Nakov
Download - Svetlin Nakov
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
scriptable="true"<br />
fileNameField="uploadFile"<br />
certificationChainField="certChain"<br />
signatureField="signature"<br />
signButtonCaption="Sign selected file"><br />
<br />
<br />
Smart card signing applet can not be started because<br />
Java Plugin 1.5 or newer is not installed.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
В страницата е указано, че трябва да има инсталиран Java Plug-In версия 1.5<br />
или по-нова. Ако това не е така, браузърът на потребителя автоматично се<br />
препраща към страницата, от която може да се изтегли последната версия на<br />
Java Plug-In.<br />
Клас за съхранение на данните от двете уеб форми<br />
Зад Struts-формата за изпращане на подписан файл стои съответен Struts<br />
action form клас, който се използва за съхранение на данните от нея:<br />
package demo;<br />
SignedFileUploadActionForm.java<br />
import org.apache.struts.action.ActionForm;<br />
import org.apache.struts.upload.FormFile;<br />
/**<br />
* Struts action form class that maps to the form for uploading signed files<br />
* (SignedFileUploadForm-PFX.jsp or SignedFileUploadForm-SmartCard.jsp). It is<br />
* actually a data structure that consist of the uploaded file, the sender's<br />
* certification chain and the digital signature of the uploaded file.<br />
*<br />
* This file is part of <strong>Nakov</strong>DocumentSigner digital document<br />
* signing framework for Java-based Web applications:<br />
* http://www.nakov.com/documents-signing/<br />
*<br />
* Copyright (c) 2003 by <strong>Svetlin</strong> <strong>Nakov</strong> - http://www.nakov.com<br />
* National Academy for Software Development - http://academy.devbg.org<br />
* All rights reserved. This code is freeware. It can be used<br />
* for any purpose as long as this copyright statement is not<br />
* removed or modified.<br />
*/<br />
public class SignedFileUploadActionForm extends ActionForm {<br />
private FormFile mUploadFile;<br />
private String mCertChain;<br />
private String mSignature;<br />
116