Hello all.. I am developing an application where I use struts 2 and an
applet based client side...
>From the applet, I create an ObjectOutputStream to write the parameters to
the struts action.. and for invoking the struts action, I create an
ObjectInputStream by specifying the URL in the following way..
*
servletURL = new URL("
http://172.24.30.15:8084/Chapter1/displayCustDetails");
servletConnection = (HttpURLConnection) servletURL.openConnection();
returnFromServlet = new ObjectInputStream(servletConnection
.getInputStream()); *
My web.xml file is as follows...
*<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
*
My struts.xml is as follows...
*
<struts>
<package name="default" extends="struts-default">
<action name="displayCustDetails"
class="com.common.web2.UserDetailsAction">
</action>
</package>
</struts>
*
Now, whenever I try to invoke my code, it gives the below error message..
java.io.FileNotFoundException:
http://172.24.30.15:8084/Chapter1/displayCustDetails
I have the same application, where struts 1.1 is used in combination with
swing. Problem comes when I try to migrate this to struts 2. Any suggestions
are appreciated. Thanks in advance.