dcsimg
how to maintain consistancy and concurrancy in jsp applications
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   kishore_kasaraneni
Posted On:   Monday, February 20, 2006 05:17 AM

At first sorry for all I posted one query last week sdfsdf sdf jsp sdfsdf . It is just for know about this site.becuase Iam also doing one discussion forum application. For that I have some doubts regarding queries processing. At first I thaught the query will be posted to Administrator. If it is valid then we can see it. But there is no query checking. They just placed our query into List of questions. And now my problem is I did the same application like this discussion forum. but my application is not so much complex. So Iam facing many problems while dealing with multple users. Main problem is I have doubts in java beans while accessing with jsp. which is the best way in taking whole   More>>

At first sorry for all I posted one query last week
sdfsdf sdf jsp sdfsdf .
It is just for know about this site.becuase Iam also doing one discussion forum application. For that I have some doubts regarding queries processing.
At first I thaught the query will be posted to Administrator. If it is valid then we can see it.
But there is no query checking. They just placed our query into List of questions.

And now my problem is I did the same application like this discussion forum. but my application is not so much complex.
So Iam facing many problems while dealing with multple users.

Main problem is I have doubts in java beans while accessing with jsp.

which is the best way in taking whole user details as a Vector object from java bean.
public Vector getUserDetails()
{
Vector details;
Load driver..........
connection con=..........
Resultset rs=(select query)
while(rs.next())
{
details.add(rs.getString(1));
details.add(rs.getString(2));
}
return details;
}


or taking each details of user by get methods
like.........getUserName()
getUserId()

   <<Less

Re: how to maintain consistancy and concurrancy in jsp applications

Posted By:   ankush_purwar  
Posted On:   Monday, February 20, 2006 02:14 PM

Look at the MVC architecture.
It seems you have defined the db accessing code(Business logic) in JSP.
JSP should be primarily used for presentation not for business logic.
About | Sitemap | Contact