cancel
Showing results for 
Search instead for 
Did you mean: 

How to redirec to a specific folder from within a webscript

gtj
Champ in-the-making
Champ in-the-making
Hi,
I am modifying the simple 'upload" webscript example so that it takes args which specify the place to put the file (path) and the filename itself. Users must authenticate themselves to use the script.  All are working fine. What I would like to do next is, upon successful; redirect to the screen Alfresco webclient screen and straight to the directory where the file is persisted.

Using the status code 303 such as below:
status.code = 303;
status.redirect = true;
status.location = "http://localhost:8080/alfresco/faces/jsp/browse/browse.jsp";

will only direct me to the top level of my home directory, not to the location where the file is saved. But then again how do I pass the file location into the URL? Or is there any other better way?

Thanks
Glenn
2 REPLIES 2

mikeh
Star Contributor
Star Contributor

gtj
Champ in-the-making
Champ in-the-making
Thanks for the tip Mike - it helped.