S
Sebastian Stein
Sorry for this question, I think it is often asked, but I still can't find an
answer.
I have a Java webapp (using Tomcat) with a JSP and a class extending Action.
The user selects an option in the jsp. The input is forwarded to the class
using Struts. It is now the task of the class to store the setting in the
WEB-INF/ directory.
How does the class get the root path of the webapp? Or the path of the WEB-INF
dir? I guess there must be a way, but I can't figure out how.
Sebastian
answer.
I have a Java webapp (using Tomcat) with a JSP and a class extending Action.
The user selects an option in the jsp. The input is forwarded to the class
using Struts. It is now the task of the class to store the setting in the
WEB-INF/ directory.
How does the class get the root path of the webapp? Or the path of the WEB-INF
dir? I guess there must be a way, but I can't figure out how.
Sebastian