Re: Bean and Servlet

2007-07-27 Thread Pid
est, I need to submit the same collection of questions to Results page. And so, i used session to store the questions ids'. On 7/27/07, Pid <[EMAIL PROTECTED]> wrote: Caldarale, Charles R wrote: From: Mohammed Zabin [mailto:[EMAIL PROTECTED] ] Subject: Re: Bean and Servlet My Proble

Re: Bean and Servlet

2007-07-26 Thread Mohammed Zabin
lts page. And so, i used session to store the questions ids'. > > > On 7/27/07, Pid <[EMAIL PROTECTED]> wrote: > > > > Caldarale, Charles R wrote: > > >> From: Mohammed Zabin [mailto:[EMAIL PROTECTED] ] > > >> Subject: Re: Bean and Servlet >

Re: Bean and Servlet

2007-07-26 Thread Mohammed Zabin
or multiple requests to have the same set of questions. On 7/27/07, Pid <[EMAIL PROTECTED]> wrote: > > Caldarale, Charles R wrote: > >> From: Mohammed Zabin [mailto:[EMAIL PROTECTED] > >> Subject: Re: Bean and Servlet > >> > >> My Problem is that, I

Re: Bean and Servlet

2007-07-26 Thread Pid
Caldarale, Charles R wrote: From: Mohammed Zabin [mailto:[EMAIL PROTECTED] Subject: Re: Bean and Servlet My Problem is that, I want to pass these numbers, Questions IDs, from the first page, which i have made it as a tag class, to Results page, which was made as servlet. Rather than

RE: Bean and Servlet

2007-07-26 Thread Caldarale, Charles R
> From: Mohammed Zabin [mailto:[EMAIL PROTECTED] > Subject: Re: Bean and Servlet > > My Problem is that, I want to pass these numbers, Questions > IDs, from the first page, which i have made it as a tag class, > to Results page, which was made as servlet. Rather than hanging

Re: Bean and Servlet

2007-07-26 Thread David Smith
ents please post it. On 7/26/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: From: Mohammed Zabin [mailto:[EMAIL PROTECTED] Subject: Re: Bean and Servlet What do you suggest to overcome this problem? In the seven messages you've posted in this thread, you've nev

Re: Bean and Servlet

2007-07-26 Thread Mohammed Zabin
l not work, but i think that storing these ids in a session is a good choice, isn't it? If you have any comments please post it. On 7/26/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > > From: Mohammed Zabin [mailto:[EMAIL PROTECTED] > > Subject: Re: Bean and Se

RE: Bean and Servlet

2007-07-26 Thread Caldarale, Charles R
> From: Mohammed Zabin [mailto:[EMAIL PROTECTED] > Subject: Re: Bean and Servlet > > What do you suggest to overcome this problem? In the seven messages you've posted in this thread, you've never really explained what this attribute is being used for; nor have you an

Re: Bean and Servlet

2007-07-26 Thread Mohammed Zabin
in <[EMAIL PROTECTED]> wrote: > > What do you suggest to overcome this problem? > > On 7/25/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > > > > From: Mohammed Zabin [mailto:[EMAIL PROTECTED] > > > Subject: Re: Bean and Servlet > > > >

Re: Bean and Servlet

2007-07-26 Thread Mohammed Zabin
What do you suggest to overcome this problem? On 7/25/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > > From: Mohammed Zabin [mailto:[EMAIL PROTECTED] > > Subject: Re: Bean and Servlet > > > > I will tell you the procedure; At each time the user clickes

RE: Bean and Servlet

2007-07-25 Thread Caldarale, Charles R
> From: Mohammed Zabin [mailto:[EMAIL PROTECTED] > Subject: Re: Bean and Servlet > > I will tell you the procedure; At each time the user clickes > the first page in the site, a random numbers will be generated > and stored in the session. You're missing the point. The

Re: Bean and Servlet

2007-07-24 Thread Mohammed Zabin
med Zabin [mailto:[EMAIL PROTECTED] > Subject: Re: Bean and Servlet > > Thank you I solve it using session, particularly: > pageContext.getSession().setAttribute("InQry", qry); Are you sure you want to do that? If multiple requests from the browser are being processed concurrently,

RE: Bean and Servlet

2007-07-24 Thread Caldarale, Charles R
> From: Mohammed Zabin [mailto:[EMAIL PROTECTED] > Subject: Re: Bean and Servlet > > Thank you I solve it using session, particularly: > pageContext.getSession().setAttribute("InQry", qry); Are you sure you want to do that? If multiple requests from the browser are bei

Re: Bean and Servlet

2007-07-24 Thread David Smith
This should really be in a separate thread, but I don't see any reason multiple resources for a single webapp shouldn't work. BTW, your solution implies the manner you were calling the servlet was in a separate request. If the servlet is called in a separate request, it won't share any of the

Re: Bean and Servlet

2007-07-24 Thread Mohammed Zabin
Thank you I solve it using session, particularly: pageContext.getSession().setAttribute("InQry", qry); and retreive it in the servlet like this: String inQry = (String)request.getSession().getAttribute("InQry"); But, I have a question regarding DBCP, it is not wrong to have more than one CP, isn

Re: Bean and Servlet

2007-07-24 Thread David Smith
Can you post the relevant parts of how/where you call this servlet? I've never had a problem retrieving a request attribute after it was added and before the end of the request. --David Mohammed Zabin wrote: Actually, I wanted to pass this list from within a Tag to be used inside another Ser

Re: Bean and Servlet

2007-07-23 Thread Mohammed Zabin
Actually, I wanted to pass this list from within a Tag to be used inside another Servlet class, (i.e. the tag class after finishing rendering its elements, goes to a servlet, so, i need to pass this list to that servlet. As i have stated above, i used the following to store the list in the request

Re: Bean and Servlet

2007-07-23 Thread David Smith
Typical design is servlet forwarding to jsp for view. Tags being jsp elements occur after servlets have executed. So you can see how your problem is a little curious in that jsps don't typically forward to servlets. If you are forwarding a request from jsp to servlet, let us know. However i

Re: Bean and Servlet

2007-07-23 Thread Mohammed Zabin
Thank you Johnny, To be specific this is my question Hi all I am trying to pass an object from a tag to a servlet. i did the following, 1. In the tag class, i put: pageContext.getRequest().setAttribute("QList", list); The above Tag will go to a servlet, i need to read the above request attri

Re: Bean and Servlet

2007-07-23 Thread Johnny Kewl
Hi Mohammed, Cant say I really understand the question In general this is what the Session Objects are for So say you have a servlet and a JSP page and say the servlet makes the bean with the Array List in it then if you session.setAttribute("MyBean", MyBean); you can get it (My