Call applet from MVC 3

I need to call a java applet from an MVC 3 application.

1. In the view, I put the applet tag:

<form action="/Home/FileStorage" method="post" enctype="multipart/form-data"> <applet code = "applet.AppletDemo.class" archive = "@Url.Content("~/Java/Applets/applet.jar")" + "," + "@Url.Content("~/Java/Applets/commons-codec-1.4.jar")" +","+ "@Url.Content("~/Java/Applets/commons-io-1.4.jar")" +","+ "@Url.Content("~/Java/Applets/commons-logging-1.1.1.jar")" +","+ "@Url.Content("~/Java/Applets/commons-httpclient-3.1.jar")" width = "700" height = "500"> <param name="tenantID" value="1"/> <param name="userID" value="1"/> <param name="siteID" value="1"/> </applet> </form> 

2. I placed the jar files in the Java/Applets .

3. But the applet does not start when going to this view.

Please help me by reporting me an error.

+4
source share
1 answer

Although his answer is ASP.NET, given that ASP.NET sits on the same base as ASP.NET MVC, look at that , successfully answered the question.

Here and here are other sources to look at.

See if this helps and let me know. Thanks you

0
source

Source: https://habr.com/ru/post/1413893/


All Articles