Re: Bean and Servlet

2007-07-27 Thread Mohammed Zabin
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 want to pass these numbers, Questions IDs, from the first page, which i have made

Re: Bean and Servlet

2007-07-27 Thread Mohammed Zabin
PROTECTED] wrote: 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

Re: Bean and Servlet

2007-07-27 Thread Pid
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 Problem is that, I want to pass these numbers

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 the first page in the site, a random numbers

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 David Smith
[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 never really explained what this attribute is being used for; nor have you answered

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 the first page in the site, a random

Re: Bean and Servlet

2007-07-26 Thread Mohammed Zabin
, 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 Servlet What do you suggest to overcome

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 answered the question of whether

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 user may click multiple times

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

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't

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

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 being processed concurrently, any

Re: Bean and Servlet

2007-07-24 Thread Mohammed Zabin
:[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, any data at session scope

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

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

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