The application I'm developing has a requirement for the user to click
on a button and a file is uploaded to a remote server. Furthermore,
the user is not to be aware of the location of the file on the client
machine. And on top of that the file to be uploaded can be one of
several files uploaded, depending on what the user is doing at the time.
From the
JSP page, I submit with an action that calls a function that
has the following in it:
ExternalContext context =
FacesContext.getCurrentInstance().getExternalContext();
context.redirect( "http://validator.w3.org/check?" );
I've tried several ways of putting post data in the header to no
avail. I think I read that when you do a redirect it makes a new
header and all your old header stuff is lost anyway. Is this right?
Also, HttpClient looks like it might be promising, but I think that it
might be a bit of an overkill. Has anyone in this forum had any
experience with this?
James