> -----Original Message-----
> From: Hari Krishnan [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, August 11, 2002 4:06 AM
> To: [EMAIL PROTECTED]
> Subject: Please clarify the doubts.....
>
>
> Hi guys,
>
> I am having doubt regarding the following questions.
> Please clarify.
>
> 1.)what is the maximum amount of data
> that we can store in session ?
There is no limit. You can store how much you want. But the more you store
in session the more you are using your memory. Taking the memory
consideration into account you should store your contents into session.
Follow these thumb rules :
* Do not store anything in the session that is either needed only once,
or can be retrieved so quickly that it does not affect response time
in any material way.
* Do not store complete data structures that are large and complex,
unless they really represent shared application data (in which case
they should probably be in the servlet context attributes instead).
* Hide the caching choice you are making inside the get methods of your
user object, so you can change your mind later without modifying all
the code that uses the data.
> 2.)consider we are having two servlets A and B.
> syntax for calling a method in servlet A from B.
Check the RequestDispatcher interface.
The syntax is:
RequestDispatcher rd = getServletContext().getRequestDispatcher("/A");
rd.forward(request, response);
> 3.)Difference between portal and website?
yahoo is a portal and www.gtllimited.com is a website. Portal is one which
gives you many things in one, customization of your site, etc. Website is
just to display and impart information.
Do a search on google for more info.
>
> Regards
> HariKrishnan.
>
Vikram.
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com