RE: Question regarding getRequestURI()

2006-07-31 Thread Adam Gordon
uly 2006 12:13 To: Struts Users Mailing List Subject: Re: Question regarding getRequestURI() One could say that operating on File objects, directly, infringes on the concept of a "container", depending on how draconian you are. On 7/31/06, Adam Gordon <[EMAIL PROTECTED]> wrote:

Re: Question regarding getRequestURI()

2006-07-31 Thread Monkeyden
sage- From: Monkeyden [mailto:[EMAIL PROTECTED] Sent: Friday, 28 July 2006 12:50 To: Struts Users Mailing List Subject: Re: Question regarding getRequestURI() Actually, the mapping parameter may give you something. Try mapping.getPath () On 7/28/06, Monkeyden <[EMAIL PROTECTED]> wrot

Re: Question regarding getRequestURI()

2006-07-31 Thread mosho
Thanks for your replies. This solution works for me, mapping.getpath(). -- View this message in context: http://www.nabble.com/Question-regarding-getRequestURI%28%29-tf2016924.html#a5576221 Sent from the Struts - User forum at Nabble.com

Re: Question regarding getRequestURI()

2006-07-31 Thread Puneet Lakhina
String requestUri = request.getRequestURI(); String resourceName = requestUri.substring(requestUri.lastIndexOf("/"), requestURI.length-1); String resourceName = requestUri.substring(requestUri.lastIndexOf("/"), requestURI.length()-1); just in case you din notice -- Puneet

RE: Question regarding getRequestURI()

2006-07-31 Thread Adam Gordon
if it's more or less efficient than what Monkeyden suggested. -Adam -Original Message- From: Monkeyden [mailto:[EMAIL PROTECTED] Sent: Friday, 28 July 2006 12:50 To: Struts Users Mailing List Subject: Re: Question regarding getRequestURI() Actually, the mapping parameter may give you

Re: Question regarding getRequestURI()

2006-07-28 Thread Monkeyden
etRequestURI(), I can get /testproject/process.do but I just > need > process.do. > Is there any way to get this? > > Thanks > -- > View this message in context: http://www.nabble.com/Question-regarding-getRequestURI%28%29-tf2016924.html#a55

Re: Question regarding getRequestURI()

2006-07-28 Thread Monkeyden
t the process.do from the url. For example if I have http://11.1.30.222:1001/testproject/process.do By using getRequestURI(), I can get /testproject/process.do but I just need process.do. Is there any way to get this? Thanks -- View this message in context: http://www.nabble.com/Question-regarding-

Question regarding getRequestURI()

2006-07-28 Thread mosho
in context: http://www.nabble.com/Question-regarding-getRequestURI%28%29-tf2016924.html#a5544941 Sent from the Struts - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL