<std:msg>
ALWAYS DELETE THE LIST SIG BEFORE REPOSTING!
</std:msg>
Sandeep,
Try this. Create a page using both items. Have the browser compile and
run the jsp. (ok, I know the server does this) Look at the generated java
code. If you can't see the generated code, read your server manual and
figure out how to get the server to keep it. Now find the things you put
on your page and look at where in the file they are. This should answer
your question.
--Angus Mezick
Give a man a fish, he eats for a day.
Teach a man to fish, he eats for a lifetime.
SANDEEP UPPAL wrote:
>
> both <%!...%> and <%.....%> can be used for declaring variables.
>
> What is the difference between both and which to use ?
>
> regards,
>
> Sandeep Uppal
>
===========================================================================
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