Hamid :

   Firstly thanks for your kindness to reply.

   I want to use "return " in my program because there are some complicated 
calculation in
the service method.  The situation is just like this :


   if ( A ) {

      <html>

                ...
      </html>
      return;
   }
   do other thing following....


 Maybe my English is not good enough  to express explicitly.
 In a word, If I don't  use "return " here, there will some
duplicated code in my progame. By the way, it such code are directly writen
with Servlet, it is ok.   So I am confused how to do in JSP file
waiting for your reply...

Thanks again






>Hi,
>First of all why u want to write return. As when ur page converts to
>Servlets(Aplication auto do this), the code comes in service method. And
>when u use explicitly return it will (Servlet)not properly do its work so
>stop execution.
>If u will not use return it will ultimately stops here execution. i cant
>understand the purpose of using it.
>
>Hamid Hassan
>[EMAIL PROTECTED]
>
>-----Original Message-----
>From: A mailing list about Java Server Pages specification and reference
>[mailto:[EMAIL PROTECTED]]On Behalf Of Mengyuan Yuan
>Sent: Tuesday, December 05, 2000 10:04 AM
>To: [EMAIL PROTECTED]
>Subject: How to use "return " in Jsp file?
>
>
>jsp-interest�����ã�
>
>Hi,expert:
>
>    When I code the following source with the key words"Return", it doesn't
>work.
>Could you please give me a hand to find out how to  use "return " in jsp?
>
>
><%           .......
> if (!TransportStatus.equals("EX")&&!TransportStatus.equals("EX"))
>               {
>%>
>               <body BGCOLOR=#6699CC><center>
>               <br>
>                <center>
>                 <table ><tr><td>
>                             <TABLE BORDER=1 cellspacing=2 cellpadding=2>
>                                <tr><td><%=notExpDoc %></td></tr>
>                             </table>
>                             <form><center>
>                                <table>
>                                   <tr><td align=center height=25><input
>type=button size=60 value="<%=btBack%>" onClick=window.location="<%=
>URL_Back %>">
>                                       </td>
>                                   </tr>
>                                </table></center>
>                             </form>
>                             </td>
>                          </tr>
>                  </table>
>               </center>
>              </body>
>              </html>
><%
>              return;
>              }
>%>
>
>..
>
>
>
>Thanks in advance
>
>                    ��
>��
>
>            Mengyuan Yuan
>            [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://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
>
>===========================================================================
>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://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

                    ��
��

            Mengyuan Yuan
            [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://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