I have to make a simple JSP page that takes 2 inputs as file names and then when you hit submit these files a passed to another method that takes 2 file inputs. i just wante to know how to do this in the second page. the first page is pretty easy u just create 2 text boxes that take inputs and then hit dubmit but then how do i pass these two files to the method?? any help would be greatly appreciated. thanks
qaizaar
0
Newbie Poster
Recommended Answers
Jump to Postyou need to be more specific, as what you ask is not clear.
Do you want to only paste name of the files from page_one to page_two or you want to upload file from local machine to remote directory?
These are to very different tasks...
Jump to PostBut the question here is which method. You can always write a servlet which would handle the client request when the 'submit' button is pressed.
After that, its a simple thing of pulling out the text box values using
request.getParameter("textBoxName")
.
All 5 Replies
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
qaizaar
0
Newbie Poster
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
qaizaar
0
Newbie Poster
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.