Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP vs Bean  RSS feed

 
ismail ismail
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • 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.
Thanks,
iismail
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!