| Author |
access to the context path w/in Action class
|
J. Cartwright
Greenhorn
Joined: Sep 27, 2004
Posts: 16
|
|
Hello All, is there a way to access the context path w/in the Action class? I'd like the equivilent of the the JSP tag: <html:rewrite page=""/> Thanks! -- john
|
 |
Merrill Higginson
Ranch Hand
Joined: Feb 15, 2005
Posts: 4864
|
|
To get the context path: String path = request.getContextPath(); To perform URL rewriting: String newURL = response.encodeUrl(oldUrl);
|
Merrill
Consultant, Sima Solutions
|
 |
 |
|
|
subject: access to the context path w/in Action class
|
|
|