I'm learning struts 1. Ok, it's working.
And there is something I don't understand with tiles configuration.
On almost every tutorials on the net they say I only have to add the plugin org.apache.struts.tiles.TilesPlugin in the struts-config.xml.
But it's not working ... I have to add also the org.apache.struts.tiles.TilesRequestProcessor controller.
Why? Is there something wrong in my project? I'm using 1.3.10 struts dependencies.
Related
We a few legacy apps that are on Struts 2.3.x, which is EOL now and we are looking to upgrade:
Questions:
1) Any pointers to migration guide from Struts 2.3.x to Struts 2.5.x?
2) Has anyone here has gone thru the efforts of migrating from Struts 2.3.x to Struts 2.5.x? what challenges did they come across and the solutions that helped them overcome those challenges?
Yes there are only 3 steps to do that
1. change you dependency in pom.xml of struts from 2.3.x to 2.5.x
2. Change the top tag in struts.xml from 2.3.x to 2.5.x
3. import struts-2.5.dtd instead of 2.3.dtd
You dont have to make any specific change since there is not a big difference between struts2.3 and 2.5
In addition to changes in Aakashdeep Singh's answer, The StrutsPrepareAndExecuteFilter was moved from org.apache.struts2.dispatcher.ng.filter to org.apache.struts2.dispatcher.filter.
You may want to refer the migration guide provided by Struts to ensure you don't miss anything.
I am using a php dojo v1.4 project with mysql as backend.
The UI looks very basic.
I need to migrate this project to a standard bootstrap admin theme.
What are the steps I need to do?
If backend and general architecture of your application will remain the same, I'd suggest you to start building new UI from the scratch. When it finished, write missing functions, which were previously implemented with dojo using jquery (which comes with bootstrap) or whatever you like.
I assume, that you are not going to use dojo anymore.
If you are facing some specific difficulties, you'd better provide more details in your question.
Finally, I start to work with Aurelia. There is a starter kit available Here which facilitates initializing Aurelia. But it is a template which should be used within a Web Site template.
I have a pre-configured WebApi project and I want to use Aurelia in it. I've just added the starter kit files and folders to my project. But unfortunately it shows 27651 errors fo files in jspm_packages.
What am I doing wrong? Is there any Nuget bootstrapper for Aurelia available?
Start with the aspnetcore template from Here
You can use web api from the template.
You will be up and running in minutes.
If you are using Web API, starting from an MVC5 project might be faster.
The following link is an Aurelia starter kit with MVC5.
You will have to update it to the latest version of Aurelia, but I managed to make it work with web api 2 and oAuth authentication.
https://github.com/rmourato/Mvc5-Aurelia
A tutorial can be found here.
http://ruimourato.com/2016/01/26/running-aurelia-on-mvc5.html
Hope this helps.
Well you asked what the errors are from. First thing is that you should exclude the jspm_packages folder from VisualStudios solution explorer Right click on it and mark 'exclude from project'.
Next, setup your project on source control (git) if not already and add the following to your git .ignore file
jspm_packages/
node_modules/`
I would suggest creating a second project aside from your WebAPI project that can contain static html, css and js files and do your Aurelia application there separate from your Web API project but in the same solution.
I could possibly give you a solution that is already setup, that shows how to use web api along with aurelia. But it would take some time for me to setup.
For all of my projects using Aurelia, I use the aurelia-cli which you get through npm and I would also recommend this approach.
You can be up and running with hello world in under 5 minutes.
You will then be able to build all the appropriate bits and pieces to talk to your api.
http://aurelia.io/hub.html#/doc/article/aurelia/framework/latest/the-aurelia-cli/1
I want to integrate the Foundation (5) front-end framework with the Yii (1.1) PHP framework for developing a web application.
Since i am new to both of them and learning to use it as i move along with the development, I am unaware as to how will i be able to use both of them for the same project.
Logically speaking i understand that the Foundation 5 directory has to put into the Yii project directory structure. But i am not sure as to which directory to use in Yii project for that.
I tried researching on the web, but since i am new i am not able to understand which is the right way to go about achieving what i intent to.
Step by step instructions to do it would be appreciated. Thanks in advance.
First you have to realize that Foundation is just a collection of html, css and javascript. So you use it like every other html, css javascript in Yii.
Then if you are learning do not create something yourself for now. Use something that somebody else has done: http://bootstrap3.pascal-brewing.de/ Here are instructions for using twitter bootstrap (another kind of Foundation) in Yii. With examples and everything. Start using it, be happy that you manage to do stuff right away... study the code when you get stuck, understand what happens in there.
http://yiifoundation.2amigos.us/
They have done a good work in packaging it as an extension for yii.
I've been trying for days: http://forum.jogamp.org/JOGL-with-OSGi-td3773888.html#a4029139
This library has native dependencies embedded in jars.
http://search.maven.org/#artifactdetails|org.jogamp.jogl|jogl-all|2.0-rc11|jar
http://search.maven.org/#artifactdetails|org.jogamp.gluegen|gluegen-rt|2.0-rc11|jar
Can you provide detailed instructions to make osgified versions of this?
It would be nice if you can use bnd http://www.aqute.biz/Bnd/Bnd or bndtools http://bndtools.org/ in the process.
I've tried to make a gigantic bundle with everything embedded, but I cannot make karaf to find native libraries: I keep getting the error "no gluegen-rt in java.library.path"
I tried to make a fragment bundle but cannot make the pieces to match... Tried with bnd, tried with eclipse. Need help from more experienced people.
I have been trying to use that with Apache Karaf, so it would be excellent if you can make that work with Karaf 2.3.1
If you know how to do it with Eclipse RCP 4.2 then please help!
First of all this isn't a Karaf specific issue, you might want to start with a unit test first, using pax exam. For your issue you need to make sure the native libs don't have dependencies to each other.
You might be interested in the following links.
http://robertvarttinen.blogspot.de/2008/12/bundle-nativecode-in-osgi-manifest.html
http://holistictendencies.wordpress.com/2011/03/28/bundle-nativecode-using-platform-specific-dlls-from-osgi/
Load DLL (using JNA) inside an OSGi bundle