This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes fake path error in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "fake path error in jsp" Watch "fake path error in jsp" New topic
Author

fake path error in jsp

vasanth raman
Greenhorn

Joined: Aug 13, 2009
Posts: 24
<html>
<head>
</head>
<script type="text/javascript">
function play()
{
var file=document.upload.vpath.value;
alert(file);
}
</script>
<body>
<form name="upload">
<input type="file" name="vpath">    <input type="button" value="play" onclick="play()">
</form>
</body>
</html>

this code perfectly work in windowsxp but not working in vista it shows the fackepath in java script
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Please UseCodeTags when posting code or configuration. Unformatted code and configuration is very difficult to read. You can edit your post to include them by using the button.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

is it the same browser?

In any case, what do you mean by "fake path"?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60739
    
  65

There is no JSP dimension to this question. Moved to the HTML forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
vasanth raman wrote:this code perfectly work in windows xp but not working in vista it shows the fackepath in java script


Windows XP or Windows Vista are red herring in your case. Most likely you have a problem with IE8, look at value property
Anbarasu Aladiyan
Ranch Hand

Joined: Jun 02, 2009
Posts: 182

Try after adding to your form tag.


A.A.Anbarasu
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: fake path error in jsp
 
Similar Threads
No scrolling in text input after uppercase ?
servlet problem
CSS is not coming into effect
Need Help With Dynamic text box in JSP
Value in dropdown from servlet