This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Is there any class in struts that will convert an action path and look it up in struts-config and find the corresponding forward? for example, I have the following action-mapping: <action path="/viewReportSetup" type="com.xxx.ViewReportSetupAction"> <forward name="success" path="/assessment/ReportSetup.jsp"/> <forward name="failure" path="/assessment/ReportSetup.jsp"/> </action>
I want to be able to find the corresponding ActionForward given the string "viewReportSetup.do", can this be done? I found ConfigHelper class, i am not sure if it's the right class to use, and it requires PageContext to be passed it as an argument to the constructor. The available objects i have access to are HttpServletRequest request, HttpServletResponse response. thanks in advance.