Reputation: 29348
Im porting a project from php to java. The project is a web-app based on php and ajax techniques with a javascript front-end. What java-frameworks would you use for something like this?
Upvotes: 2
Views: 2057
Reputation: 1108
I would port it to GWT
Google Web Toolkit (GWT) is a development toolkit for building and optimizing complex browser-based applications. Its goal is to enable productive development of high-performance web applications without the developer having to be an expert in browser quirks, XMLHttpRequest, and JavaScript. GWT is used by many products at Google, including Google Wave and the new version of AdWords. It's open source, completely free, and used by thousands of developers around the world.
Upvotes: 0
Reputation: 140061
This question seems to come up alot. Related:
Upvotes: 1
Reputation: 87257
I really like Stripes.
There's a really good book out on it too. Stripes ... and Java Web Development is Fun Again.
Upvotes: 1
Reputation: 346506
Does the result have to be written in Java, or does it just have to run on the JVM? In the latter case, you might want to consider Grails, which uses Groovy, a Java-based dynamic language that compiles to Java byte code and has full access to the Java standard API.
Upvotes: 5
Reputation: 1418
It depends by the size of your project, the features and your resources.
If the project have'nt a lot of particular needs you can use Struts. Thsi is a stable framework, not really advanced but simple and powerfull for the development.
Another frameworks more recent and advanced are Spring and Wicket. Before you start, I recommend you to do a check-list of your need:
etc etc
good luck! :)
Upvotes: 0
Reputation: 16518
without seeing the source code - you will need a complete rewrite. just "porting" will probably not work.
out of all available frameworks i'd recommend two: wicket if you want clean lightweight technology. with ajax. jsf/seam if you are in a corporate environment where it it easy to get tons of experienced developers.
Upvotes: 1
Reputation: 37177
In my opinion you would still do the same but generate the html with JSP and javabeans instead of php. javascripts and ajax will still work without a problem if the outputed html is the same.
Upvotes: 0
Reputation: 11212
Apache Wicket is a possible java based web framework you might consider. The default would be the java servlet and jsp frameworks.
Upvotes: 1
Reputation: 309008
How well do you know Java?
Why are you porting it?
I can't really tell based on your description, but there are lots of Java web frameworks out there. Pick one. I prefer Spring.
I fear that you're about to be very disappointed. I anticipate a lot of questions like "Why can't I do X in Java? It's easy in PHP!"
Upvotes: 3