How to modify the code???

Hello forum,
I have code for retriving data from database.
I want to retrieve more than one row but the code only retrive the
last row. How to mdify the code??? SorryI am new in Servlet and JDBC.
Here is the codeimport java.io.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
public class TiketServlet extends HttpServlet {
     static final String dbURL ="jdbc:mysql://localhost:3306/tiketdb?" + "user=firman&password=ajolie";
     StringBuffer fullName = new StringBuffer();
     public void doPost(HttpServletRequest request, HttpServletResponse response)
          throws IOException, ServletException {
     Connection conn = null;
     String nextJSP = null;
     try {
          Class.forName("com.mysql.jdbc.Driver");
     catch (ClassNotFoundException e) {
          throw new ServletException("Unable to load JDBC driver");
     try {
     String keretaID = (String)request.getParameter("keretaID");
     String kelas = (String)request.getParameter("kelas");
          conn = DriverManager.getConnection(dbURL);
          Statement stmt1 = conn.createStatement();
          String query1 = "SELECT gerbong, kursi FROM "+keretaID+" WHERE kelas ='"+kelas+"';";
          ResultSet rs1 = stmt1.executeQuery(query1);
          while (rs1.next()) {
               StringBuffer fullName = new StringBuffer();
               fullName.append(rs1.getString(1));
               fullName.append(" ");
               fullName.append(rs1.getString(2));
               fullName.append('\n');
               request.setAttribute ("fullName", fullName.toString());
               nextJSP = "/LoginOK.jsp";
          conn.close();
          ServletConfig config = getServletConfig();
          ServletContext context = config.getServletContext();
          RequestDispatcher rd = context.getRequestDispatcher(nextJSP);
          rd.forward(request, response);
     catch (SQLException e) {
          throw new ServletException(e.getMessage());
     finally {
          if (conn != null) {
               try {
                    conn.close();
               catch (SQLException e) {
                    throw new ServletException("connection close failed");
     public void doGet(HttpServletRequest request, HttpServletResponse response)
          throws IOException, ServletException {
               doPost(request, response);
Many thanks

u've to define the stringBuffer before while loop.. thats it u get it correctly..
b'cos u r defining the stringBuffer inside.. each time when it is entering the loop the the existing stringBuffer is replacing by the new empty stringBuffer...
--veeru                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How to modify the code to get started the timer on mentioned time?

    Hi,
    I have the following code from a source. I would like to make a few changes as mentioned below:
    First ....
    1) The as3 code should get the time form "startMeeting_txt.text"
    2) Compare it with current time from "currentTime_txt.text"
    3) The Timer should be activated as soon as the "startMeeting_txt.text" = "currentTime_txt.text" and starts counting
    4) When the "finishMeeting_txt.text" = "currentTime_txt.text" then
    5) "message_txt.text" = "Meeting time is over"
    How to modify the following code:
    var count:Number = 60;
    var myTimer:Timer = new Timer(1000,count);
    myTimer.addEventListener(TimerEvent.TIMER, countdown);
    myTimer.start();
    function countdown(event:TimerEvent):void {
    myText_txt.text = String((count)-myTimer.currentCount);
    if(myText_txt.text == "0"){
          gotoAndStop(2)
    Thanks.

    Thanks. I am at work now and don't have Flash installed on my PC. I will try it at home. I just found this code on a website and wanted to know it more without any try. I must try it first then seek help. I am sorry.
    I do respect your advise.
    Regards.

  • How to modify the code to use the image on stage instead of in library?

    Hi, The following code I found on website is for working with the image which is in library. But how to modify it to work with the image on stage. Because I don't want to use it from the library. The second question ------ Is it the AS2 code or AS3. If it is AS2 code then please let me know how to modify it to work with AS3. animator = CreateEmptyMovieClip('animator',1);
    bg_1 = animator.attachMovie('bg_mc','bg_1',1);
    bg_2 = animator.attachMovie('bg_mc','bg_2',2);
    bg_1._x = bg_1._width/2:
    bg_2._x = bg_2._width/2:
    speed = 1;
    cloudWidth = 380;
    animator.onEnterFrame = function(){
    bg_1._x -= speed:
    bg_2._x -= speed:
    if(bg_1._x <= -bg_1._width) bg_1._x = cloudWidth;
    if(bg_2._x <= -bg_2._width) bg_2._x = cloudWidth;
    } Thanks.

    There is no need for attach the clip if it is not in the library and it is the AS2 code below is the relevant code in AS3 when it is in stage:
    i) Convert your first image into a movieclip with the instance name "bg_1"
    ii) Convert your second image into a movieclip with the instance name "bg_2"
    iii) Actions:
        var speed:Number = 1;
        var cloudWidth:Number = 380;
        bg_1.x = bg_1.width/2:
        bg_2.x = bg_2.width/2:
        this.addEventListener(Event.ENTER_FRAME,fn);
        function fn(e:Event):void{
            bg_1.x -= speed:
            bg_2.x -= speed:
            if(bg_1.x <= -bg_1.width) bg_1.x = cloudWidth;
            if(bg_2.x <= -bg_2.width) bg_2.x = cloudWidth;

  • Can someone please tell me on how to modify this code so that I dont have to enter the file name at all?

    Hello
    can someone please tell me how to modify this code so that I dont have to enter the file path at all? When i give the same file path constants to both the read and write VIs I'm getting an error message.
    Attachments:
    read and write.vi ‏11 KB

    Yup use the low level File I/O opening the reference once, and closing it once.  
    As for the path selection you have an unwired input which is the path to use.  Programatically set that and you won't be prompted to select a path.  Usually this is done with a path constant to a folder, then using the Build Path, to set the file name in that folder.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Can any one tell how to modify the PO that is being sent as an email?

    Hi,
           Can anyone let me know that how to modify the PO with some more additonal data while being sent as an email.
    My actual requirement is that PO is already being sent as an email when the PO is created.But now they want some more additional data as an attachement along with PO to be sent as email.ie both PO and another scriptform(which contains some other additonal data other than from PO) have to be sent as an email to the vendor when the PO is created.
    I would like to know the name of the userexit,where I can modify the existing PO or else please let me know how to resolve this issue.
    First of all I would like to know the name of the userexit where this PO is being sent as an email.
    It doesn't matter whatever the solution might be.But we need to send another sapscript form or additional data as an attachement along with PO through email to the vendor.I dont know whether it should be another script or it is also ok to add that data to the existing PO and then only the PO can be sent.
    Thanks,
    Krishna

    Eswar,
                Thanks for your email.Can you please be bit clear.I am new to this area.
    Any flexible solution is ok for me.Is it in the Userexit,that I need to include the code or what are outtypes as you said.
    Please give me clear solution.
    Thanks,
    Krishna

  • In List, How to modify the Link in Quick Edit Mode?

    In List, How to modify the Edit in Quic Mode Link? Instead of opening Quick view mode, to open in InfoPath customized form?

    Hi Eugene,
    According to your description, my understanding is that you want to midify the link of "Edit" and set it linking to a InfoPath Form which can bulk edit your List.
    You can use the code above to modify the Edit's hyperlink and set it linking to your InfoPath form.
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(document).ready(function () {
    $("#idHomePageNewItem").next("a").attr("href","the URL of your InfoPath form");
    $("#idHomePageNewItem").next("a").removeAttr("onclick");
    </script>
    For more information about bulk updating a SharePoint list using InfoPath form, you can have a look at the blog:
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/c05983fc-d992-49ff-8d18-fa8f70777d66/using-infopath-2010-to-bulk-update-a-sharepoint-list?forum=sharepointcustomizationprevious
    http://infopath.wordpress.com/2013/09/23/infopath-repeating-table-add-edit-delete-sharepoint-list-items-bulk/
    http://sharepointknowledgebase.blogspot.com/2011/10/updating-sharepoint-list-by-using.html#.VGFsKHkcSM8
    If any misunstanding, please feel free reminding me and provide more detail for your issue.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to modify the standard script in scripts?

    how to modify the standard script in scripts?

    Nagaraju,
    Standard scripts cant be modified.
    Only thing is you need to copy it to z-form and have to do modifications as per ur requirements.
    Here is the procedure to copy standard form to z-form.
    goto SE71 t-code, then select the menu path : <b>Utilities -> Copy from Client</b>
    then it will take to another screen, give the form name as Standard form name, if u r copying a stadard invoice means, type RVINVOICE01 and target form, ZRVINVOICE01. Now press execute button, it will copy the form into 25 languages. Now come back to se71, enter Z-form name and do the required changes.
    Hope this hint may help you, Pls close the thread if u met with correct answer.
    Regards,
    Sujatha.

  • CJ31 - How to modifying the assigned budget

    Hi gurus,
    We have checked that in our system we have incorrect values in the Budget database. this is because we have posted invoices directly in FI by a batch input calling to the tcode FB01. We post this with reference to Purchase orders populating the field "purchase order". I mean, the FI invoice has the field PO document filled out with the PO number. We close the PO number manually.
    The problem is that even the invoice is with the same amount than the PO, the assigned budget in transaction CJ31 is being modified in the value for instead remaining without changes. Transaction MIRO makes a check in the PO when being posted but FB01 not. In fact in MIRO if the amount is greater than PO, the assigned value is increased.
    SAP has indicated that FB01 is not connected to the commitment system as MIRO so this is the correct behavior of system. At this point we are going to start using the standard procedure. However we need to correct the current data we assigned to the .
    Therefore we have the in budget database corrupted since they are duplicated or even more than duplicated.
    My question is how to modify the assigned budget?
    -Is there any way from a functional point of view (executing some transaction or program) to reduce the assigned budget for errors like this?
    -In case that this is not possible by t-code or program, is there any idea of tables we need to adjust? We know that the table PJPA registers the annual records and assigned values are displayed in fields WTJHR and WLJHR but we cannot modify only this table in case there are other tables linked.
    Many thanks in advance and kind regards

    Hi Varun,
    Thanks for replying. I checked the note you linked. However I didn't find a solution
    CJEN and CJBN are not an option for us. With these transaction we can rebuild the data but the wrong data is already imputed in my system. Just to clarify. My requirement is getting a way to amend the values we have in the assigned value. From the system point of view the assigned budget is correct because it was imputed from FI. But in terms of my business we are duplicating the assigned (Purchase orde an FI document). Therefore we are searching for modify the assigned value in order to represent the real budget state.
    Kind Regards

  • Alv -change the output without modify the code

    hi...............
    how can we  change the alv output without modifying the code .
    plz help me.

    hi satya vani ,
    use this code..after execution choose the button(ctrl+f8) then you can give the position and length of the output field..
    then it will automatically changed...
    report .
    TABLES:LFA1.
    SELECT-OPTIONS:LIFNR FOR LFA1-LIFNR.
    DATA:BEGIN OF ITAB OCCURS 0,
    LIFNR LIKE LFA1-LIFNR,
    NAME1 LIKE LFA1-NAME1,
    LAND1 LIKE LFA1-LAND1,
    ORT01 LIKE LFA1-ORT01,
    REGIO LIKE LFA1-REGIO,
    SORTL LIKE LFA1-SORTL,
    CFIELD(4) TYPE C,
    END OF ITAB.
    DATA:LINE TYPE I.
    SELECT * FROM LFA1 INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE LIFNR
    IN LIFNR.
    DESCRIBE TABLE ITAB LINES LINE.
    LOOP AT ITAB.
    IF SY-TABIX = LINE.
    ITAB-CFIELD = 'C410'.
    MODIFY ITAB.
    ENDIF.
    ENDLOOP.
    TYPE-POOLS:SLIS.
    DATA:FCAT TYPE SLIS_T_FIELDCAT_ALV.
    DATA:LAYOUT TYPE SLIS_LAYOUT_ALV.
    DATA:SORT TYPE slis_t_sortinfo_alv WITH HEADER LINE.
    LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
    LAYOUT-WINDOW_TITLEBAR = 'VENDORS DETAILS SCREEN'.
    LAYOUT-EDIT = 'X'.
    LAYOUT-info_fieldname = 'CFIELD'.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    I_PROGRAM_NAME = SY-REPID
    I_INTERNAL_TABNAME = 'ITAB'
    I_INCLNAME = SY-REPID
    CHANGING
    CT_FIELDCAT = FCAT.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = SY-REPID
    IS_LAYOUT = LAYOUT
    IT_FIELDCAT = FCAT
    TABLES
    T_OUTTAB = ITAB.
    regards,
    venkat.

  • How to modify the scripts

    hi,
    any body could u help me regarding "how to modify the scripts?
    how to  add disclaimer terms in footer window? that is not connected in stand program?
    give any realtime seniro with screen -shot .
    give one realtime seniro  plz.
    i will be waiting for reply.
    regards,
    eswar.

    Hi,
    go to SE71 T code
    enter the std script, display
    from the second page Copy the script to the ZSCRIPT with EN as lang
    and do the modifications in that Zscript and that has to be attached in the NACE t code for the related Output type and Driver program.
    for example
    for PO MEDRUCK is the std Script Copy it to ZMEDRUCK and do the changes.
    then in NACE select the output type NEU and attache it to SAPFM05P program and remove the MEDRUCK and keep ZMEDRUCK.
    reward if useful
    Regards

  • Debugging a smartform without modifying the code ?

    Hi all, please forgive my noobyness but it's the first time I'm working on smartforms...
    Basically; I have a smartform that prints out a pdf showing all the entries of a purchase order, but there's a thing that I have to correct... The price amount for position is not correct, because it doesn't contains an extra amount, let's call this quantity "limit", that is a specific property of each row in the order.
    Problem: I'm not that good to find in the code the exact point in which the price for a row is calculated, or better.... I thought I found it, did a little correction but without success.
    I'd like to debug exactly the pieces of code that are in the smartform, how to do it without modifying the code ? I've read something about hardcoding a break-point but I won't insert new code because I'm working on a pre-production machine and porting a CR is not as easy. Is there any way to debug without doing a mod on the code? Thanks in advance.

    Hi Matteo,
    it's quite simple.
    Found the Fm name of the SMARTFORM (Menu Utilities-> F.M. Name) (Something like
    /1BCDWB/SF00000015).
    Then go in SE37 transaction and put the FM founded and then display it.
    Go in the main info of the FM (tab. Propierties) and the double click on the main program.
    Then double click on the include that ends with *F01. There you will find all the code of your SF. Then you can put a breakpoint the piece of code that you want.
    This should be works.
    Let us know
    Bye
    Andrea

  • How to check the code of spawned report

    Hi All,
    I've to modify a standard report from PA module.The report name is "PRC: Distribute Usage and Miscellaneous Costs"
    The executable method is SPAWNED.The executable name is PASDUC.
    Please let me know how to check the code of this report and in which path can I locate the report.
    Regards,
    Mahi.

    Does this mean can I tell to my client that "This is being a spawned program, any customizations to this report needs full report development efforts"?I believe yes.
    Before I state this to my client I want to verify with this forum. Please suggest me in either case.Would your client trust my reply on here :) ?
    I would suggest you log a SR and confirm this with Oracle support, that would be a better proof.
    Thanks,
    Hussein

  • How to modify the coding part of KE30 reports ?

    How to modify the coding part of KE30 reports ,
    so that I can be able to restrict report output based on sales office.
    I am unable to find out the program name also.
    Regards
    Anubhav

    >
    Venkat Reddy wrote:
    > Hi,
    >
    > If u want to know the program running for KE30 just go to SE93 and give KE30
    > and click on display you can see the program running for KE30 will be SAPMKCEE.
    > I think this is much simpler :-).
    >
    > Rather than change the standard report try to prepared your own that will be more
    > comfortable since it will be complex task to achieve editing the standard program.
    > Good Luck
    >
    > Regards
    > VEnk@
    >
    > Edited by: Venkat Reddy on Dec 11, 2009 4:52 PM
    Venkat,your answer is much simpler If the OP knows there is a tcode Se93, what if he/she does not know it?? 
    P.S: Just a thought.
    Regards.
    Vishwa.

  • How to modify the field lengh of file upload

    Hi All,
       I am facing a problem with u201Cuploadu201D filed length in BSP application.
    When we upload the file in BSP page, the path displayed should be the full path (i.e. from where the file is being upload the file)
    Now this field is appearing 20 char length
    Now I want to increase the length of the upload field (Input field) to be 100 char so that the path is visible.
    In the current application the file upload is being done through a structure (attributes)
    In this structure the fields are like this
    PAGE_NAME
    ID
    FOR
    TAGS
    ROW_INDEX
    COLUMN_INDEX
    OTR_NAME
    REQUIRED_NAME
    MAXLENGTH
    SIZE
    TABLE_NAME
    ON_SELECT
    VALUE
    DISABLED
    ONCLICK
    TEXT
    TYPE
    Using this method:
    CALL METHOD cl_htmlb_fileupload=>factory
              EXPORTING
                Id      = ls_form_save-id
              RECEIVING
                Element = lv_fileup.
            bee_table->add ( level = 2 element = lv_fileup ).
    This cl_htmlb_fileupload is named as class interface.
    Which has the CLG_HTMLB_FILEUPLOAD (it is a class) it is defined in attributes.
    In this class it has the attribute u201CSIZEu201D by default string 20.
    Now I need to change this attribute length from 20 to 100
    For this I copied the standard class CL_HTMLB_FILEUPLOAD into ZCL_HTMLB_FILEUPLOAD.
    This ZCL_HTMLB_FILEUPLOAD contains all attributes of the standard class CL_HTMLB_FILEUPLOAD
    Including the one class (CLG_HTMLB_FILEUPLOAD), this is defined as an attribute (ABOVE MENTIONED?)
    This class is appearing in non editable mode, so   I have copied this class into zclass (ZCLG_HTMLB_FILEUPLOAD).but still I am not able to edit the attribute called u201Csizeu201D
    And also I am not bale to add the zclass in place of the ZCLG_HTMLB_FILEUPLOAD
    Kindly tell me how to modify the length of the field u201Csize u201Cand also how to add the zclass in the attributes of one class (syntax)
    Thanks in advance
    Rambabu.A

    Hi,
    Class CLG_HTMLB_FILEUPLOAD is a class automatically generated when a BSP Element is created. You should not change/create such a class, unless by creating your own BSP Element.
    As per your requirement, you can use the SIZE parameter of method factory:
    ls_form_save-size = '100'.
    CALL METHOD cl_htmlb_fileupload=>factory
    EXPORTING
    Id = ls_form_save-id
    Size = ls_form_save-size
    RECEIVING
    Element = lv_fileup.
    Regards,
    Tanguy

  • How to modify  the search results of the GUI for subscribing to calendars

    How to modify the search results of the GUI for subscribing to calendars
    Note:
    <OL>
    <LI>The following information applies only to iPlanet Calendar Server 5.0
    Patch 3.
    <LI>All of the cases for which the XSLT changes will work have not been
    verified.
    <LI>The following is only an example of an XSLT customization.
    </OL>
    The example below shows a sample customization of the
    search_for_calendars
    dialog. This customization will result in the Display Name being included as
    part of the search results in the GUI, which would normally show just the
    calendar ID. It will render the returned calendars in the following format:
    <P>
    Display Name - <I>description</I>
    <P>
    Normally, the format would be as follows:
    <P>
    Calendar-ID - <I>description</I>
    <P>
    </A>
    The example consists of the following two files:
    <P>
    <OL>
    <LI>search_for_calendars_common.xsl
    (the entire XSLT file)
    <P>
    <LI>diffctx.txt
    (the context sensitive diff patch file,
    which basically shows only the changes that need to be made)
    </OL>
    <P>
    <HR>
    </A><B>
    search_for_calendars_common.xsl</B>
    <?xml version="1.0" ?>
    <!DOCTYPE xsl:stylesheet (View Source for full doctype...)>
    - <!--
    set the output properties
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"
    result-ns="http://www.w3.org/TR/REC-html40">
    -->
    - <xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
    - <!-- set the output properties
    -->
    <xsl:output method="html" encoding="ISO-8859-1" />
    <xsl:include href="data/common.xsl" />
    <xsl:include href="data/i18n.xsl" />
    <xsl:include href="data/date_format.xsl" />
    <xsl:include href="data/dialog_tabs.xsl" />
    - <xsl:template match="/">
    <xsl:apply-templates select="calendar" />
    </xsl:template>
    - <xsl:template match="calendar">
    - <xsl:choose>
    - <xsl:when test="@top='true'">
    - <xsl:variable name="Frame1">
    <xsl:value-of select="frame[1]" />
    </xsl:variable>
    - <xsl:variable name="Frame2">
    <xsl:value-of select="frame[2]" />
    </xsl:variable>
    - <xsl:variable name="Frame3">
    <xsl:value-of select="frame[3]" />
    </xsl:variable>
    - <xsl:variable name="tab_value">
    <xsl:value-of select="@tab" />
    </xsl:variable>
    - <HTML>
    - <HEAD>
    <xsl:call-template name="contextJavascript" />
    <TITLE>Calendars Search: Calendar Express - iPlanet</TITLE>
    </HEAD>
    - <FRAMESET border="0" frameborder="0" rows="77,*,71">
    <FRAME name="tab" marginheight="0" marginwidth="0" scrolling="no"
    scrollbars="no" src="{$Frame1}" />
    <FRAME name="main" frameborder="0" src="{$Frame2}" />
    <FRAME name="button" marginheight="0" marginwidth="0" scrolling="no"
    scrollbars="no" frameborder="0" src="{$Frame3}" />
    </FRAMESET>
    </HTML>
    </xsl:when>
    - <xsl:when test="@view='searchProperties'">
    - <xsl:for-each select="group">
    - <xsl:if test="@name='searchProperties'">
    <xsl:call-template name="search_toolbar" />
    </xsl:if>
    </xsl:for-each>
    </xsl:when>
    - <xsl:when test="@view='main'">
    - <xsl:for-each select="group">
    - <xsl:if test="@name='main'">
    <xsl:call-template name="main" />
    </xsl:if>
    </xsl:for-each>
    </xsl:when>
    - <xsl:when test="@view='button'">
    - <xsl:for-each select="group">
    - <xsl:if test="@name='button'">
    <xsl:call-template name="button_root" />
    </xsl:if>
    </xsl:for-each>
    </xsl:when>
    - <xsl:otherwise>
    - <html>
    What's this view? (search_for_cals.xsl) -
    <xsl:value-of select="@view" />
    </html>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    - <xsl:template name="search_toolbar">
    - <HTML>
    <xsl:call-template name="emit_frame_head_tag" />
    - <BODY bgcolor="{$bgcolor_background}" background="imx/tdbg.gif"
    marginwidth="0" marginheight="0" onload="window.focus()">
    - <FORM>
    - <xsl:attribute name="action">
    <xsl:value-of select="./formdata@action" />
    </xsl:attribute>
    <xsl:attribute name="name">form</xsl:attribute>
    <xsl:attribute name="onSubmit">document.forms[0]['find'].click(); return false;
    </xsl:attribute>
    <xsl:apply-templates select="formdata" />
    - <CENTER>
    - <TABLE border="0" cellpadding="2" cellspacing="0" width="100%" height="100%">
    - <TR>
    - <TD align="center">
    - <TABLE border="0" cellpadding="3" cellspacing="1">
    - <TR>
    - <TD colspan="4">
    <FONT size="{$font_size_big_2}" face="{$font_name}">Find all calendars where
    the calendar</FONT>
    </TD>
    </TR>
    - <TR>
    - <TD valign="baseline">
    - <FONT size="{$font_size_big_2}" face="{$font_name}">
    - <SELECT name="which">
    <OPTION value="name;calid">name or ID</OPTION>
    <OPTION value="name">name</OPTION>
    <OPTION value="primaryOwner">primary owner</OPTION>
    <OPTION value="calid">ID</OPTION>
    </SELECT>
    </FONT>
    </TD>
    - <TD valign="baseline">
    - <FONT size="{$font_size_big_2}" face="{$font_name}">
    - <SELECT name="how">
    <OPTION value="0">contains</OPTION>
    <OPTION value="1">begins with</OPTION>
    </SELECT>
    </FONT>
    </TD>
    - <TD valign="baseline">
    <INPUT type="text" name="what" />
    </TD>
    - <TD valign="baseline">
    - <FONT size="{$font_size_big_2}" face="{$font_name}">
    - <INPUT type="button" name="find" value="Find">
    - <xsl:attribute name="onClick">
    <xsl:value-of select="./button[@name='find']" />
    </xsl:attribute>
    </INPUT>
    </FONT>
    </TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    </TABLE>
    </CENTER>
    </FORM>
    </BODY>
    </HTML>
    </xsl:template>
    - <xsl:template name="main">
    - <HTML>
    <xsl:call-template name="emit_frame_head_tag" />
    - <BODY bgcolor="{$bgcolor_background}" background="imx/tdbg.gif"
    marginwidth="0" marginheight="0">
    - <FORM name="form" method="post">
    - <xsl:attribute name="action">
    <xsl:value-of select="./formdata@action" />
    </xsl:attribute>
    <xsl:attribute name="name">form</xsl:attribute>
    <xsl:apply-templates select="formdata" />
    <INPUT type="hidden" name="how" value="0" />
    <INPUT type="hidden" name="which" value="name;calid" />
    <INPUT type="hidden" name="what" value=" />
    <INPUT type="hidden" name="selectedGroup" />
    - <xsl:if test="(./calsearchresults/nomatch)">
    - <!-- print no match found
    -->
    &#38;nbsp;
    &#38;nbsp;
    No Match Found
    </xsl:if>
    - <xsl:for-each select="./calsearchresults/searchresultcal">
    - <P>
    &#38;nbsp;
    &#38;nbsp;
    - <FONT size="{$font_size_big_2}" face="{$font_name}">
    - <FONT size="{$font_size_big}" face="{$font_name}">
    Owner:
    <xsl:value-of select="@owner" />
    <FONT size="{$font_size_big}" face="{$font_name}" color="{$bgcolor_wend_mid}">|
    </FONT>
    Calendar ID:
    <xsl:value-of select="@id" />
    <BR />
    </FONT>
    - <FONT size="{$font_size_big_2}" face="{$font_name}">
    - <xsl:choose>
    - <xsl:when test="@subscribed='false'">
    &#38;nbsp;
    &#38;nbsp;
    - <INPUT type="checkbox" name="calendar">
    - <xsl:attribute name="value">
    <xsl:value-of select="@name" />
    </xsl:attribute>
    </INPUT>
    &#38;nbsp;
    &#38;nbsp;
    - <A target="_blank">
    - <xsl:attribute name="href">
    <xsl:value-of select="@viewCommand" />
    </xsl:attribute>
    <xsl:value-of select="@name" />
    </A>
    </xsl:when>
    - <xsl:otherwise>
    &#38;nbsp;
    &#38;nbsp;
    - <A target="_blank">
    - <xsl:attribute name="href">
    <xsl:value-of select="@viewCommand" />
    </xsl:attribute>
    <xsl:value-of select="@name" />
    </A>
    &#38;nbsp;
    (Subscribed)
    </xsl:otherwise>
    </xsl:choose>
    - <xsl:if test="string-length(@description) > 0">
    &#38;nbsp;
    &#38;nbsp;
    - <FONT size="{$font_size_big}" face="{$font_name}">
    <xsl:value-of select="@description" />
    </FONT>
    </xsl:if>
    </FONT>
    </FONT>
    </P>
    </xsl:for-each>
    </FORM>
    </BODY>
    </HTML>
    </xsl:template>
    </xsl:stylesheet>
    <P>
    <A HREF="#back">Back</A>
    <P>
    <HR>
    </A>
    <B>diffctx.txt</B>
    Index: search_for_calendars_common.xsl
    ===================================================================
    RCS file: /m/src/ns/server/msg/calendar/core/html/search_for_calendars_common.xsl,v
    retrieving revision 1.1.2.14
    diff -c -r1.1.2.14 search_for_calendars_common.xsl
    *** search_for_calendars_common.xsl 2000/12/12 23:10:43 1.1.2.14
    --- search_for_calendars_common.xsl 2001/03/15 23:55:19
    *** 182,188 ****
    &#38;nbsp; &#38;nbsp;
    <INPUT type="checkbox" name="calendar">
    <xsl:attribute name="value">
    ! <xsl:value-of select="@id"/>
    </xsl:attribute>
    </INPUT>
    &#38;nbsp; &#38;nbsp;
    --- 182,188 ----
    &#38;nbsp; &#38;nbsp;
    <INPUT type="checkbox" name="calendar">
    <xsl:attribute name="value">
    ! <xsl:value-of select="@name"/>
    </xsl:attribute>
    </INPUT>
    &#38;nbsp; &#38;nbsp;
    *** 190,196 ****
    <xsl:attribute name="href">
    <xsl:value-of select="@viewCommand"/>
    </xsl:attribute>
    ! <xsl:value-of select="@id"/>
    </A>
    </xsl:when>
    <xsl:otherwise>
    --- 190,196 ----
    <xsl:attribute name="href">
    <xsl:value-of select="@viewCommand"/>
    </xsl:attribute>
    ! <xsl:value-of select="@name"/>
    </A>
    </xsl:when>
    <xsl:otherwise>
    *** 199,205 ****
    <xsl:attribute name="href">
    <xsl:value-of select="@viewCommand"/>
    </xsl:attribute>
    ! <xsl:value-of select="@id"/>
    </A>
    &#38;nbsp;(Subscribed)
    </xsl:otherwise>
    --- 199,205 ----
    <xsl:attribute name="href">
    <xsl:value-of select="@viewCommand"/>
    </xsl:attribute>
    ! <xsl:value-of select="@name"/>
    </A>
    &#38;nbsp;(Subscribed)
    </xsl:otherwise>
    <P>
    <A HREF="#back">Back</A>

    Maybe on the Google API s page?

Maybe you are looking for

  • Sales Per Person, Per Department Query

    Hi All, I am trying to write a query to allow me to get the Sales Figures per Employee (by Owner Code) per Department. I will then turn this into a Crystal Report so that I can do A Sales Report by Department. I Have this so far : SELECT T0.[DocNum],

  • Could threads of a same process run on different CPU in the same time ?

    Hello, probably stupid question..., but I would like to understand if several threads inside a same process can run in the same time on separate CPU. If the response is positive, how can I bind a thread on differant CPU using C API ? Also what is the

  • Selective Deletion is possible based on request ID?

    Hello Friends, Our Cube is Not Compressed where Aggregate Rollup was done and Compression of Aggregate rollup are done. In this Case, Can i peform selective delete of data based on Request ID? If yes, 1) Any special procedure and need to take care of

  • Configure Events in the Workbench

    Hallo, since two years I was using toplink 9.0.4.8. In this Version i was able to configure Events on the Domain class which where inherited methods from an AbstractClass. Now i've migrated to toplink 10.1.3.3.0 - the migration was really easy and wi

  • Drag and Drop files from website to local swing application

    I want to drag some file from the web browser and drop that to local swing list. Please suggest something on that? Regards, Kanni