Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Adding web.xml in the classpath of eclipse

User_19BPUMar 20 2012 — edited Mar 20 2012
Hi,

I am doing to Struts Action class unit testing using MockStrutsTestCase.Where I need to load the web.xml explicitly or add it in the class path. I have choosen the second one by doing the below:-

Right click on the TestLoginAction - > Run as -> Run Configurations - > Classpath tab -> In the User Entries I have selected "Advanced" button and have added the folder(WEB-INF) where the web.xml resides.

But still web.xml is not loaded when i run the unit test case? How to add the web.xml in the classpath of TestLoginAction. Please clarify.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 17 2012
Added on Mar 20 2012
1 comment
233 views