Nidhi Bhatia�����ã�

I have try it according to your advice,but it produce errors as follow .i run jsp on 
tomcat3.1+win98+jdk1.2.2
Error: 500
Location: /website/index/file/jsp/function2.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for 
JSPC:\tomcat\work\localhost_8080\_0002fwebsite_0002findex_0002ffile_0002fjsp_0002ffunction_00032_0002ejspfunction2_jsp_1.java:22:
 Undefined variable or class name: out
           out.println("hi  checking  function in jsp");
           ^
1 error




�� 00-9-1 15:19:00 �����
>it is  not  a  good practice eto define  a function in jsp
>it is better if  u put code in a bean
>still if u  want to define then  see howw i have define the test function
>
>
><html>
> <H1>THIS TEXT IS NORMAL HTML TEXT </H1>
>
>
> <%
>
> java.util.Date today = new java.util.Date();
>  for(int i=0;i<5;i++){
> out.println("today is " +today.toString());
> out.println("<br>");
> }
>
> %>
><%!
>  public void test(){
>  out.println("hi  checking  function in jsp");
>  }
> %>
>
>keep smiling
>nidhi bhatia
>
>===========================================================================
>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

                    ��
��

            ycd
            [EMAIL PROTECTED]

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

Reply via email to