1

I am sending a url from bean class like this

 String url="/jsp/browse/browse.jsp";
    response.sendRedirect(url);

but in browser it want to call the url

http://localhost:8080/alfresco/faces/jsp/browse/browse.jsp

but it is calling

http://localhost:8080/jsp/browse/browse.jsp

please tell what may the problem

3 Answers 3

1

U could write as below:

String url="../jsp/browse/browse.jsp";
0

Maybe writing

String url="jsp/browse/browse.jsp";

could solve the problem, because with /jsp/browse/browse.jsp you're passing an absolute path

0

Provide the full URL including protocol, host and port and you are save.

String url="http://localhost:8080/jsp/browse/browse.jsp";

Additionally you should replace the protocol/host/port part with some variable

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.