random thoughts

javax.servlet.ServletException: Path loginLayout Does Not Start With a "/" Character

… its been a year and a half , i have used Struts. A week back we got a project and we decided to use Struts 1.3.5 since Struts 2.0 is still in beta. While i was trying forward response to a Tile forward instead of directly redirecting to a jsp , i got an exception javax.servlet.ServletException: Path loginLayout doesnot start with a “/” character after googling for half an hour i got the solution pre-requsite : download Struts1.3.5-all.zip

Step 1. add chain-config.xml to WEB-INF folder inside your project you can find this file in /struts-1.3.5-all/struts-1.3.5/src/tiles/src /main/resources/org/apache/struts/tiles

Step 2. add the following init-param tag to Action Servlet configuration in web.xml ** chainConfig <param-value

/WEB-INF/chain-config.xml ** Step 3. add commons- chain-1.1.jar to your project library.

this should solve the problem.

Comments