Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 5th, 2005, 01:49 AM
Registered User
Join Date: Apr 2005
Location: delhi, delhi, India.
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()">
Reply With Quote
  #2 (permalink)  
Old May 5th, 2005, 03:56 AM
Authorized User
Join Date: Mar 2005
Location: Pune, Maharashtra, India.
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.


Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 05:55 PM.

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