Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 5th, 2005, 01:49 AM
Registered User
Join Date: Apr 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ruchilalla
Default problem with the script

by writing this code iam unable to store the xml file on to the location

<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
<%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
<%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
            Web Application Page
<script language="JavaScript">
function checkFileExtension(parafilevalue)
    var file=parafilevalue.split('.');

        return false;
    var fileext=file[1].toLowerCase();
    return validType

function validateForm()
    if(!checkFileExtension(document.myForm.myFile1.val ue))
        alert('Upload a file with extension xml');
        return false;
    return document.myForm.Submit();


       <FORM NAME="myForm"
   <INPUT type="file" name="myFile1" accept="text/xml" >

   <INPUT TYPE="button" VALUE="Upload File" onclick="validateForm()">
Old May 5th, 2005, 03:56 AM
Authorized User
Join Date: Mar 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to dadahonde Send a message via Yahoo to dadahonde

I think You have just applied the validations, but for uploading the file physically to the specified you need to write the upload script. Is it possible to upload file with just specifying the location?, of course not.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem when using script language c# rakesh XSLT 3 August 7th, 2008 02:00 AM
Problem calling a script from IE kwilliams General .NET 1 February 1st, 2006 04:37 PM
Problem With Script arimakidd Classic ASP Databases 1 March 11th, 2005 02:53 PM
Script src problem Snib Javascript 5 December 30th, 2003 03:33 PM
Problem with upload script jeremy108 BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 4 July 2nd, 2003 01:48 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.