No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
5 Posted Topics
Re: [code=html]<html> <head> <script> function raju() { document.getElementById("filess").innerHTML="<img src='"+document.r.files.value+"' width='100' height='160'>" return true; } </script> </head> <body> <form name='r'> <input type='file' name='files' accept="*.jpg" onmouseout="raju();"> <div id='filess'></div> <input type='button' onclick='raju();' value='click'> </form> </body> </html>[/code] this code use for u . | |
Re: [QUOTE=sarithak;916002]Hi frnds... Here i am going to uploading image from my system to ftp.. the below code works correctly in localhost...But, when i use FTP ,it doesnt work..it display error. [CODE] Warning: move_uploaded_file(photos/Endeavour123.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in..... Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'c:\WINDOWS\Temp\php4DA.tmp' to '..' … | |
I have installed on Linux Tomcat 5.5. I have no problem accessing jsp pages. However, I have problem accessing a test hellow world servlet. I tried the following url on my local tomcat on win xp and it worked. [url]http://localhost:8080/hw[/url] Attached is a copy of my web.xml file I used … | |
Re: [QUOTE=farahshafilla;891556]my code : ********uploadImage.jsp************* [code=JSP]<form action="UploadImage" method="post" enctype="multipart/form-data" name="productForm" id="productForm"><br><br> <table width="400px" align="center" border=0 style="background-color:ffeeff;"> <tr> <td align="center" colspan=2 style="font-weight:bold;font-size:20pt;"> Image Details</td>[/code] ******UploadImage.java****** [code=Java]import java.io.*; import java.sql.*; import java.util.*; import java.util.regex.*; import org.apache.commons.fileupload.servlet.ServletFileUpload; import org.apache.commons.fileupload.disk.DiskFileItemFactory; import org.apache.commons.fileupload.*; import javax.servlet.*; import javax.servlet.http.*; public class UploadImage extends HttpServlet { @Override public void … | |
|
The End.