This content has been marked as final. Show 3 replies
But suppose you have 2 users access this JSP and first user uploaded a file and second user won't know until refresh the JSP again.
A better approach is validating on Servlet (or JSP if you like), and tell the user if upload is successful.
can you explain it a bit more ?
I have this html form button "proceed". If a user click proceed, then how can I relate the click event to the validation. I mean, previously, I had been using java script function. I was calling that function from proceed button as "onSubmit = java script method". How can I refer onSubmit to a JSP page ? Can I use the JSP page name in the onSubmit option ?
I would success you use something like AJAX.
But if make it simple, assume you have two frames (HTML), content and temp.
When the "submit" button is pressed in content, send the form in "temp".
But the simplest way is to submit the form and do validation on server.