Hi all,
I just want to know the same bean can be used to
generate the results from the database? I will have
bean which stores the results in a Vector and i pass
two inputs for that the index from the Vector has to
be read and stuff. Based on that i get the results.
Will that be possible? If this Vector thing is not a
feasible what else can i use for this sort of
display???
Thanks in advance,
Cheers,
Venu
--- Luis Javier Beltran <[EMAIL PROTECTED]> wrote:
> Well, not a must, but I thought you had to...
> Personally, I'd use a bean, I
> don't like leaving the programming and logic to the
> JSP, I only use it to
> generate an HTML page, but I almost associate a JSP
> to a bean where I can
> define variables and methods to process that data.
>
> LJ
>
> ----- Original Message -----
> From: "Antonio W. Lagnada" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, October 20, 2000 3:49 PM
> Subject: Re: Dynamic Array Storage
>
>
> > Is it a must that u use a bean? Why can't u just
> pass it as a session
> > object and then retrieve that object on another
> page.
> >
> > --
> > Antonio W. Lagnada
> > Ecommerce Consultant
> > [EMAIL PROTECTED]
> >
> > This email address is specifically
> > for JSP-Interest email list.
> > Remove _NOSPAM for the actual email.
> >
> >
> >
> > ---- Luis Javier Beltran <[EMAIL PROTECTED]>
> wrote:
> > > You can create a couple of get/set methods in
> your bean so that you
> > > can
> > > exchange data between the JSP, and the Servlet.
> Something like:
> > >
> > > <class> array[] ;
> > >
> > > public <class>[] getArray()
> > > {
> > > return array;
> > > }
> > >
> > > public void setArray(<class> array[])
> > > {
> > > this.array = array;
> > > }
> > >
> > >
> > > <class> = the class type you're using (String,
> Integer, etc...)
> > > ----- Original Message -----
> > > From: "Dennis Leary" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, October 20, 2000 1:04 PM
> > > Subject: Dynamic Array Storage
> > >
> > >
> > > > Here is what I'm doing.
> > > >
> > > > Have a form that has up to 10 records of input
> all of type text.
> > > >
> > > > I have written JSP that processes the form and
> checks a particular
> > > field.
> > > > if the record is good then it stores it into a
> dynamic array.
> > > >
> > > > Now that I have this array I need to store it
> in a bean somehow but
> > > I'm
> > > not sure how to go about it and then get the
> array back out later on.
> > > >
> > > > Any ideas or sample code to work with would be
> great.
> > > >
> > > > Thanks
> > > >
> > > >
> > >
>
===========================================================================
> > > > To unsubscribe: mailto [EMAIL PROTECTED]
> with body: "signoff
> > > JSP-INTEREST".
> > > > Some relevant FAQs on JSP/Servlets can be
> found at:
> > > >
> > > > http://java.sun.com/products/jsp/faq.html
> > > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > >
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > >
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > >
> > >
>
===========================================================================
> > > To unsubscribe: mailto [EMAIL PROTECTED]
> with body: "signoff
> JSP-INTEREST".
> > > Some relevant FAQs on JSP/Servlets can be found
> at:
> > >
> > > http://java.sun.com/products/jsp/faq.html
> > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > >
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > >
> >
> >
>
___________________________________________________________________
> > To get your own FREE ZDNet Onebox - FREE
> voicemail, email, and fax,
> > all in one place - sign up today at
> http://www.zdnetonebox.com
> >
> >
>
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff
> JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found
> at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> >
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf! It's FREE.
http://im.yahoo.com/
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets