Re: Some JSP Questions..
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
Re: Some JSP Questions..
include typesyntax done when includedcontent parsing -- --- - directive %@ inlcude compilation static parsed by container file=filename %time action jsp:includerequest processing static not parse page = pagename / dynamic but included in place Regards Ramesh Kesavanarayanan Electronic Data Systems India pvt Ltd [EMAIL PROTECTED] -Original Message- From: Anoop Kumar V [mailto:[EMAIL PROTECTED]] Sent: Friday, 14 June 2002 12:10 PM To: [EMAIL PROTECTED] Subject: Re: Some JSP Questions.. 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 === 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
SV: Some JSP Questions..
Hi, @include includes the file when jsp is compiled jsp:include includes the file at runtime Brgds Mathias -Ursprungligt meddelande- Från: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]För Anoop Kumar V Skickat: den 14 juni 2002 08:40 Till: [EMAIL PROTECTED] Ämne: Re: Some JSP Questions.. 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 === 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
Re: Some JSP Questions..
can u pls elaborate that a bit.. rgds, anoop -Original Message- From: Mathias Höggren [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 1:09 PM To: [EMAIL PROTECTED] Subject: SV: Some JSP Questions.. Hi, @include includes the file when jsp is compiled jsp:include includes the file at runtime Brgds Mathias -Ursprungligt meddelande- Från: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]För Anoop Kumar V Skickat: den 14 juni 2002 08:40 Till: [EMAIL PROTECTED] Ämne: Re: Some JSP Questions.. 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 === 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
SV: Some JSP Questions..
Hi! @include includes the file when jsp is compiled This means that the source of the included page is parsed into the including page when the page gets compiled. All variables and objects instantiated in either page are accessible on both pages. jsp:include includes the file at runtime The page is included dynamicly when a request is made. The different pages share request, response and session with the other but objects and variables instantiated on either page can't be accessed by the other. Brgds Mathias -Ursprungligt meddelande- Från: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]För Anoop Kumar V Skickat: den 14 juni 2002 11:43 Till: [EMAIL PROTECTED] Ämne: Re: Some JSP Questions.. can u pls elaborate that a bit.. rgds, anoop -Original Message- From: Mathias Höggren [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 1:09 PM To: [EMAIL PROTECTED] Subject: SV: Some JSP Questions.. Hi, @include includes the file when jsp is compiled jsp:include includes the file at runtime Brgds Mathias -Ursprungligt meddelande- Från: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]För Anoop Kumar V Skickat: den 14 juni 2002 08:40 Till: [EMAIL PROTECTED] Ämne: Re: Some JSP Questions.. 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
Some JSP Questions..
Hi all, I have some questions in JSP. Could any one one has answers for these questions.. 1. Difference between Include and Forward tags.? 2. Difference between Class and beanName in UseBean tag.? 3. Does a bean has to be put in a package to be used from a JSP page.? thanks regards vijayanand.R (),,,() ( (. .) .-''-. (o ) ) ('o' ) =(,,)=(,,)=(,,)==(,,)= ==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
Re: Some JSP Questions..
Good questions to help me study for the SCWCD exam... Answers (from the JSP 1.2 specs) 1. Difference between Include and Forward tags.? A A jsp:forward effectively terminates the execution of the current page. while a jsp:include.../ element providers for the inclusion of static and dynamic resources in the same context as the current page. 2. Difference between Class and beanName in UseBean tag.? I do not understand this and it doesn't really answer your question but here are the definitions (If anyone really understands the difference please help out) class - The fully qualified name of the class that defines the implementation of the object. The class name is case sensitive. beanName - The name of a Bean, as expected by the instantiate() method of the java.beans.Beans class. This attribute can accept a request-time attribute expression as a value. 3. My opinion is no but I could not find any information on this in the specs. Anyone else? Zac [EMAIL PROTECTED] 06/13/02 08:14AM Hi all, I have some questions in JSP. Could any one one has answers for these questions.. 1. Difference between Include and Forward tags.? 2. Difference between Class and beanName in UseBean tag.? 3. Does a bean has to be put in a package to be used from a JSP page.? thanks regards vijayanand.R (),,,() ( (. .) .-''-. (o ) ) ('o' ) =(,,)=(,,)=(,,)==(,,)= ==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
Re: Some JSP Questions..
The difference between Class and beanName is a subtle one and it's not used much. It's where you want polymorphism. beanName=Secretary Class=Employee is more or less equivalent to a statement like Employee x = new Secretary(); Geert Van Damme -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Zachary Roberts Sent: donderdag 13 juni 2002 15:55 To: [EMAIL PROTECTED] Subject: Re: Some JSP Questions.. Good questions to help me study for the SCWCD exam... Answers (from the JSP 1.2 specs) 1. Difference between Include and Forward tags.? A A jsp:forward effectively terminates the execution of the current page. while a jsp:include.../ element providers for the inclusion of static and dynamic resources in the same context as the current page. 2. Difference between Class and beanName in UseBean tag.? I do not understand this and it doesn't really answer your question but here are the definitions (If anyone really understands the difference please help out) class - The fully qualified name of the class that defines the implementation of the object. The class name is case sensitive. beanName - The name of a Bean, as expected by the instantiate() method of the java.beans.Beans class. This attribute can accept a request-time attribute expression as a value. 3. My opinion is no but I could not find any information on this in the specs. Anyone else? Zac [EMAIL PROTECTED] 06/13/02 08:14AM Hi all, I have some questions in JSP. Could any one one has answers for these questions.. 1. Difference between Include and Forward tags.? 2. Difference between Class and beanName in UseBean tag.? 3. Does a bean has to be put in a package to be used from a JSP page.? thanks regards vijayanand.R (),,,() ( (. .) .-''-. (o ) ) ('o' ) =(,,)=(,,)=(,,)==(,,)= == 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
Re: Some JSP Questions..
Hi, i think what ever the explanation vijay anand has given suits more Regards Ramesh Kesavanarayanan Electronic Data Systems India pvt Ltd * 91-44-254 9650 ext :2442 * 91-44-226 5360 (res) * [EMAIL PROTECTED] * [EMAIL PROTECTED] -Original Message- From: vijay [mailto:[EMAIL PROTECTED]] Sent: Thursday, 13 June 2002 6:45 PM To: [EMAIL PROTECTED] Subject: Some JSP Questions.. Hi all, I have some questions in JSP. Could any one one has answers for these questions.. 1. Difference between Include and Forward tags.? 2. Difference between Class and beanName in UseBean tag.? 3. Does a bean has to be put in a package to be used from a JSP page.? thanks regards vijayanand.R (),,,() ( (. .) .-''-. (o ) ) ('o' ) =(,,)=(,,)=(,,)==(,,)= ==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
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
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