• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

JSP vs Bean

Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I have a JSP application that connects to an app server thru API call. I have to open a connection for each user and I have implemented it in the following way:
login.jsp-- submits to -->processLogin.jsp
processLogin includes a file called incConnection.jsp (incConnection.jsp has a function that takes in the username/password and returns a connection object)
processLogin.jsp checks if the connection object is null or no and redirects based on that to either homepage.jsp OR login.jsp
Here are my questions:
1. Is it be better to implement the code in incConnection.jsp into a Bean?
2. Will using a Bean to handle the connection have different effect(+ve or -ve) on the jsp/servelet engine?
3. Either way, I assume I will need to keep trak of the individual connection object (in a session variable), I am right?
I am trying to find out the pluses of using a Bean vs. the jsp I have now.
Your help is appreciated.
    Bookmark Topic Watch Topic
  • New Topic