jsp - get path of deployed project on server -



jsp - get path of deployed project on server -

i want remote address or server address project deployed. allow suppose

http://www.myname.com/ : host deployedproj : deployed web app name foldername : there folder within web app want access address : http://www.myname.com/deployedproj/foldername

you can 1 thing using requestdispatcher...

1.in servlet action class: req.getrequestdispatcher("/your_webapp_name/folder_inside_project").forward(req,res); e.g req.getrequestdispatcher("/deployedproj/foldername").forward(req,res); 2. in jsp, <%=request.getrequesturl()%>

jsp servlets

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -