Absolute Path for result
Dear List member, How can I give absolute path to my result page. web content - |---x |:-y | :-z |--w Eg: My namespace is /x/y/z and I want my error page which is in w folder in web content then i have to give relative path of ../../../w/error.jsp Can't i directly give w/error.jsp If current i give this path the struts searches it in x/y/z/w/error.jsp With Best Regards, Amol Ghotankar www.cursivetech.com
Re: Absolute Path for result
On 7/22/10 3:40 AM, Amol Ghotankar wrote: Can't i directly give w/error.jsp w/error.jsp is a relative path. What happens if you specify /w/error.jsp? -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Absolute Path for result
Dear Dale, i have used relative path of ../../../w/error.jsp Can't i directly give w/error.jsp - if i give so I struts searches it in x/y/z/w/error.jsp i.e relative to the namespace. I will have to try with /w/error.jsp Regards, Amol On Thu, Jul 22, 2010 at 7:38 PM, Dale Newfield d...@newfield.org wrote: On 7/22/10 3:40 AM, Amol Ghotankar wrote: Can't i directly give w/error.jsp w/error.jsp is a relative path. What happens if you specify /w/error.jsp? -Dale -- With Best Regards, Amol Ghotankar www.cursivetech.com
Re: Absolute Path for result
Dear Dale, Yes it works perfectly, thanks. So I can conclude if we give w/error.jsp it takes path relative to namespace. If we give /w/error.jsp it take absolute path from web content folder. Regards, Amol On Thu, Jul 22, 2010 at 7:54 PM, Amol Ghotankar ghotankaru...@gmail.comwrote: Dear Dale, i have used relative path of ../../../w/error.jsp Can't i directly give w/error.jsp - if i give so I struts searches it in x/y/z/w/error.jsp i.e relative to the namespace. I will have to try with /w/error.jsp Regards, Amol On Thu, Jul 22, 2010 at 7:38 PM, Dale Newfield d...@newfield.org wrote: On 7/22/10 3:40 AM, Amol Ghotankar wrote: Can't i directly give w/error.jsp w/error.jsp is a relative path. What happens if you specify /w/error.jsp? -Dale -- With Best Regards, Amol Ghotankar www.cursivetech.com -- With Best Regards, Amol Ghotankar www.cursivetech.com
Re: Absolute Path for result
On 7/22/10 10:59 AM, Amol Ghotankar wrote: So I can conclude if we give w/error.jsp it takes path relative to namespace. If we give /w/error.jsp it take absolute path from web content folder. This is true, but can be stated more generally, not related to struts: A path starting with / is absolute, and unambiguous. A path starting without / is relative, and has different meanings depending on what is considered to be the current working directory. -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org