Reputation: 65
I'm very new to spring roo and I need help.
I have an applet that needs to be displayed to user.
Currently, without using spring roo, all .jar files are placed in the same folder as the html file. The applet is able to run.
In spring roo, I've tried to put the html and .jar files in a folder in src/main/webapp/WEB-INF/views. The page is accessible, but the .jar files isn't. The page displays a broken applet and it says that my Main class is not found.
I think adding resource files in views is not a proper way to write a webapp, but how do you do that properly in spring roo? I'm really clueless.
Upvotes: 0
Views: 557
Reputation: 14221
Place your applet's jar outside WEB-INF
folder. For example create applets
folder in {project_roo}/src/main/webapp
and pace your jar there (I mean {project_roo}/src/main/webapp/applets
). You can refer it from the web as http://{my_context_root}/applets/my-applet.jar
.
Hope this helps!
Upvotes: 1