File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Migrate ASP to Java environment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Migrate ASP to Java environment" Watch "Migrate ASP to Java environment" New topic

Migrate ASP to Java environment

Daoyue Ming

Joined: Oct 04, 2004
Posts: 26
our client is going to replace its ASP (old one, not in .net) website to java environment with concerns of security and performance.

we are going to add in transaction control, and connection pooling for security and performance, so decided to use Spring to control the transaction, and use iBatis to leverage existing SQL operation in ASP.

Now we are hesitating in web layer, as old ASP doesn't have MVC in mind, lots of web layer control and navigation are done by request parameters within the ASP itself. We have two options, one is use MVC framework like struts, but it requires rework all the ASP. Another option is just translate ASP logic to JSP, and move business logic and database operation to Spring service and iBatis.

Anyone has any suggestion how to do it?
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I can sympathise with how tedious it will be to go through the pages one by one and extract some logic to an Action class while leaving other logic in the page. I expect, though, that one of the reasons you're doing this whole exercise in the first place is to have a more organized, more maintainable application. As I see it, unless you go all the way and make this into a real MVC application, you won't accomplish your goal of having a more maintainable application. This means taking the time to separate business logic out of the pages themselves.

There are lots of frameworks out there. You may want to do more research before deciding on one. If you use the search function in this forum, you will find many threads comparing them. If you want a "tried and true" solution that does a good job of encouraging MVC principles, I don't think you'd go too far wrong by choosing Struts.

Consultant, Sima Solutions
Daoyue Ming

Joined: Oct 04, 2004
Posts: 26
i have worked with Struts, but not familiar with other frameworks.
as i am from a MNC, it's quite ugly that what we have done for migration is only translate ASP to JSP for presentation layer, and if use framework, it's easy to control safety and performance issues.
Vivek Abhichandani

Joined: Oct 18, 2008
Posts: 1
I know that this post is old, but just in case if you went ahead with the migration, can you give some idea on how you went about it.

Actually, our project is going through a similar exercise. We have already decided to use struts on top of spring framework. We have planned to document existing functionalities of the application and port them from the asp page to spring/struts layer.

Can you give some pointers on the difficulties you faced in the migration process?

I agree. Here's the link:
subject: Migrate ASP to Java environment
It's not a secret anymore!