Policy failures:

Code warning
- failed on resource SArticleController.java. Reason: The method toURL() from the type File is deprecated, line 6
Override reason:   
o
This commit is contained in:
Maxime Dagnicourt
2008-02-06 22:49:33 +00:00
parent 46ec59cd5c
commit 10ac04aded
4 changed files with 1303 additions and 1284 deletions

View File

@@ -0,0 +1,12 @@
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
</body>
</html>

View File

@@ -0,0 +1,5 @@
package org.yacos.web.PCmember.controller;
public class ListDispatchArticleController {
}

View File

@@ -5,10 +5,12 @@ import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.util.List;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.validation.BindException;
@@ -16,12 +18,12 @@ import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.SimpleFormController;
import org.springframework.web.servlet.view.RedirectView;
import org.yacos.web.system.session.SessionService;
import org.yacos.core.article.Article;
import org.yacos.core.article.IArticleManager;
import org.yacos.core.conferences.Conference;
import org.yacos.core.users.User;
import org.yacos.web.author.form.FormSubmission;
import org.yacos.web.system.session.SessionService;
public class SArticleController extends SimpleFormController {
@@ -43,7 +45,7 @@ public class SArticleController extends SimpleFormController {
String theme = ((FormSubmission) command).getTheme();
//String mainauthor = ((FormSubmission) command).getMainauthor();
//String secondaryauthor = ((FormSubmission) command).getSecondaryauthor();
List<String> listeSecondary = ((FormSubmission) command).getListe();
ArrayList<String> listeSecondary = (ArrayList<String>)((FormSubmission) command).getListe();
String nomFile="";