i wd like to add one more question..

what is the diff between <@ include> and <jsp:include>  tags??

regds & thnx in adv,
ANoop

-----Original Message-----
From: vijay [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 11:18 AM
To: [EMAIL PROTECTED]
Subject: Re: Some JSP Questions..


hi Ramesh,

    THANKS FOR UR ANSWERS...IT CLEARED MY DOUBTS..

thanks & regards
vijayanand.R

    (),,,()
   ( (.  .)     .-''''''''''-.
  (    o  ) ) (    'o'   )
=(,,)=(,,)=(,,)==(,,)=
----- Original Message -----
From: "Kesav, Ramesh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 14, 2002 10:31 AM
Subject: Re: Some JSP Questions..


    I have some questions in JSP. Could any one one has answers for these
questions..

    1. Difference between Include and Forward tags.?
       action :
       <%@ include file = filename>
       Include action is used to include resources at runtime. The file
included is parsed at translation time.
       Most jsp containers keep track of included file and recompile if it
changes.
       if you change the included file then you need to recompile the
includer file also to get the result on the page.

        directive
        <jsp:include page=pagename flush = true/false />
         you can use this  if your resource is not going to change
frequently

        <jsp:forward>
         teh resource to which you are forwarding should also have the same
jsp context
         execution in the current jsp page is stopped when it encounters
this tag , buffer is cleared
         if output stream is not buffered then IllegalStateException is
thrown

    2. Difference between Class and beanName in UseBean tag.?

        class is the name of the class name fully qualified
        beanName - name as you would suypply to instantiate() method in
                        java.bean.Beans class
                        you can have type and bean Name and omit class
attribute
        eg: <jsp:useBean  id="languageBean" class="LanguageBean"
scope="Page">
        you should have a class called
        public Class LanguageBean{}
        id is basicaly to refer this bean in the page

    3. Does a bean has to be put in a package to be used from a JSP page.?
         need not be always but as such java language prefers to have a
class in a package
         package serves like the directory service in JNDI.

   hope this helps


Regards

Ramesh Kesavanarayanan

* [EMAIL PROTECTED]

===========================================================================
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

===========================================================================
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

Reply via email to