Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Migration of website pages in ASP to JSP

 
Naveen Chand
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are trying to migrate an ASP based website into JSP based site which will be hosted in a Linux environment.

We are struck about selecting the right approach for converting an ASP containing some web based methods into JSP. In the existing website many ASP files are calling some common methods from another ASP for displaying header, footer and content. How we can achieve the same in JSP?
[ March 19, 2008: Message edited by: Naveen Chand ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JSP, this is typically done by moving that functionality into beans or plain old Java objects and binding those objects to one of the scope objects (request, session, context, etc...).

It is also considered a best practice, with server side Java, not to respond to requests directly with JSP but to respond to them with servlets and then, when all processing is complete, forward to the JSP (view) for final markup and forwarding.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic