Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting the URL from the request using Struts?

843841Sep 28 2004 — edited Sep 28 2004
Hi,

I am using Struts and my urls look like this

http://server/action.do

All my actions extend a base action and I need to know what action is being called, e.g action.do. None of the request methods seem to return this part of the URL and I do not know whether i can determine this within struts.

I already tryed for example with the given the url

http://server/loadAction.do?a=b

getQueryString() = a=b
getRequestURI() = /path/to/page.jsp
getContextPath() = /path/to/page.jsp

page.jsp is the view that the struts framworks forwards to. What I am interested in is getting the loadAction.do part

Thank you very much!

Best regards,
Andr� Branco

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 26 2004
Added on Sep 28 2004
4 comments
413 views