No configuration found for the specified action: 'Login.action' in namespace: '/'''. Form action defaulting to 'action' attribute's literal value. Solution: To remove this warning you need to change following... See your struts.xml file what name you have specified... If you are using namespace / and your action name is 'Login' then replace Login.action to Login as given below... <s:form action=" Login.action " method="post" > Use below with namespace 1) <s:form action=" Login " method="post" namespace="/"> Or 2) <s:form action=" /Login " method="post" > Now you will not get this warning.
First do all required pre requiste as per google doc https://cloud.google.com/appengine/docs/java/googlestorage/ Now see the sample code for a csv file uploader using latest api public String uploadFileUsingGCSClient(String csvDate, String fileName, String dirName,String bucketName) throws IOException { // init the bucket access GcsService gcsService = GcsServiceFactory.createGcsService(RetryParams.getDefaultInstance()); GcsFilename filename = new GcsFilename(bucketName+"/"+dirName, fileName); GcsFileOptions fileOptions = new GcsFileOptions.Builder() .mimeType("application/CSV") .acl("public-read") //.addUserMetadata("myfield1", "my field value") .build(); GcsOutputChannel outputChannel = gcsService.createOrReplace(filename, fileOptions); // write file using this stream BufferedOutputStream outStream = new BufferedOutputStream(C
Comments
Post a Comment