I'm using the above JSP code to view the photos uploaded. I'm able to successfully upload the photos. The photos are being saved in a drive of my system. Can somebody help me out with this problem as to how i will view the photos uploaded. If i put the code for downloading between the the above lines of code the code does not run properly. I cannot also redirect the upload page to download page since it's a dynamic website and the user views the photos at his will, the constraint of viewing the photo directly after uploading is quiet unfriendly and it will show the photo you just uploaded. We are trying to develop a hyperlink to each image so that the user is able to view all the photos uploaded so far.
Please i'll be extremely thankful if somebody helps me get out of this problem.
View Answers
April 24, 2010 at 11:26 AM
Hi Friend,
Have you insert the uploaded file into the database?
Do you want to retrieve all the files?
Please clarify this.
Thanks
April 24, 2010 at 5:37 PM
no the uploaded file has been saved in a drive of my pc only the name of the file is being saved in the table. The name of the file is exactly the same as that of the photo uploaded. <%=res.getString(1).toString()%> by using the following lines we extract all the records from the table and display it in tabular form.
Related Pages:
EXT JS
EXT JS i want to create a grid in extjs to display data from mysql and if i want to edit the data i must update through extjs only and must update in mysql database. please help me with sample code. thank you
Lightbox JS
Lightbox JS/font>
Lightbox JS is a simple, unobtrusive script used to overlay images on the
current page. It`s a snap to setup and works on all modern browsers.
Read full
xls to js using javascript
xls to js using javascript ![how can we convert a xls file in js file using javascript][1
js,,mysql - JSP-Servlet js,,mysql Hi,
I want a jsp code for editing,deleting data retrieved from from the mysql database and displayed in a html page .Can anybody provide me a code for including edit and delete options with the following code
calling servlet from JS and return response from servlet to JS
calling servlet from JS and return response from servlet to JS hello all,
I am working on JSP-servlets n MVC.I am facing a problem.
on the web...";
response.setContentType("text/plain");
response.getWriter().write(url);
in js function
Ext Js form example.
;
In this simplified application and easy to learn Ext Js Tutorial I will show
you how to develop a form in Ext Js framework. The Ext Js form will take...; framework
in shortest possible time.
Ext JS provides UI elements for developing web
Create a input button inside js function
Create a input button inside js function I call my js function from HTML code from another file. Now I would like to create a input button on page... is the right way
I call my js function from HTML code from another file
Ext
Ext
Ext Js form example
In this simplified application and easy to learn Ext Js Tutorial I will show
you how to develop a form in Ext Js framework. The Ext Js form
JS-Sorcerer: JavaScript Development Tool JS-Sorcerer: JavaScript Development Tool
JavaScript Reporter
finds problems in JavaScript files in a single step, letting you spend more time
improving your website
Downloading and Installing jQuery
for developing our demo application. jQuery comes as single js file. So, its very easy...://jquery.com/
and download jquery-1.2.6.min.js and add into js directory
Ofbiz framework - Java Beginners
Ofbiz framework Hi All,
Im new to Ofbiz framework.Can anyone please tell me how to pass a particular div id in a ftl to a js through the js call in that particualr ftl
PHP/HTML/AJAX Question
PHP/HTML/AJAX Question I have a PHP/HTML program that sends a parm to a .JS program using Ajax logic (onchange) and it returns it. It returns... should the code to do it be (in the .js or as a html or PHP statement
how to access javascript in mozilla - Java Beginners
in .js file and i am calling that file in .jsp file as
but the script... that both the html file and the js file should be in same location.
HTML file
JS file
function onPress(){
alert("i m in another
q - JSP-Servlet
and at runtime it save in .js file from that we show data in html control like... of data is save in .js file though repititive value is shown in dropdown control... it should first clear the data from .js file and then reload the data again
 
Web Page Transaction
Web Page Transaction Hello sir, i want to add an Effective page transaction when i go to my home page to other page in js...plllzzz help me...rppy soon
javascript - XML
javascript HI,
Greetings....
I want to call javascript file i.e. ".js" from xml file. If it is possible tell me how to do that. and i want to know how to call javascript function from xml...
Please help me in this regard
java - Java Beginners
java
how to include crystel report to a java web project.I am using eclipse ide,
my friend give some files(.js files) to me ,but don't know how to use it.
can any one help me
XSS attack
XSS attack I wish to know about XSS attack. At our server the some of the web pages such as index.php and login.php are getting infected with malicious script. Some script / JS is getting injected. I clean the file uploaded
Try it Editor
Try it Editor Hello sir...actually i want to add an html,css & js editor like in w3 school try it editor 1.5....can you tell me how i can add it..pllz plzzz rppy soon
JSLT, alternative to XSLT
structure is: template[js]template{inline-xpath}[js]template. All
code (13kb js/390
Spring MVC JQuery Integration
your js file in your view JSP file or adding any
jQuery plug in using... locate the .js file
SOLUTION
You can eliminate the above problem by adding .js
script problem - Java Beginners
script problem Even though both .js file and .jsp file present in the same location,script is not working in mozilla but working in Internet Explorer.
eg:
new.js------
function onPress
Multiarray concept
Multiarray concept i have 4 text box in html page, when i click new it would want to add another 4 like that ,i will go on like this? when i click delete last four buttons want to delete from it. how i can do this using js
filter and display html table data using ajax - Ajax
filter and display html table data using ajax Hi
i am stuck up at a situation where i have a jsp page from where the control goes to the .js file calling the ajax function called retrieveURL.from here goes
Displaying different portions of a page subsequently on the basis of action
Displaying different portions of a page subsequently on the basis of action Suppose in Report.jsp there are two text fields From Date: and To Date: with js calender beside these and a SEARCH Button(When the page initially loads
QuTags - PHP Style AJAX
QuTags - PHP Style AJAX
PHP & C Module that is AJAX for PHP, with no JAX. You don't even have to
know what AJAX or JavaScript is about. QuTags requires no knowledge of JS/XML
Convert To Java Program - Java Beginners
the value you want delete: ");
scanf("%d",&s);
for(j=0; jro;js--)
{
array[js]=array[js-1];
}array[ro]=don;
main();
}
}
void