red phoenix wrote:
I want to know how to get directory information in struts2 action,when I run
following action:
http://localhost:8080/struts2-blank-2.0.9/example/HelloWorld.action

I want to get the path value http://localhost:8080/struts2-blank-2.0.9 in
HelloWorld.action,such as:
   public String execute() throws Exception {
        String path=....//get path value
        return SUCCESS;
    }

how to do it?

Using the standard Servlet API:

http://tomcat.apache.org/tomcat-5.0-doc/servletapi/javax/servlet/http/HttpServletRequest.html
http://struts.apache.org/2.x/docs/how-can-we-access-the-httpservletrequest.html

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to