Tabs in JSP- Plz help-Urgent

I want to have 3 tabs say Tab1, tab2, tab3 in my page and based on which tab is clicked , I have to display the contents of a table.
Ex: if Tab1 is clicked, i have to display contents of Table1 and tab2,table2 and so ...
Plz help with how to link the click on the tab to calling of the JSP file which retrives and displays the data???....
Its urgent ;plz help

dnamiot ,
I'm also looking for similar funcitonality.
the URL mentioned in your reply is not free ware. you know, it is tough to convince management to buy a software for the project even it is $1.
So if you know any taglibrary which is free ware , which generates maximum of 4 tabs and dynamic in nature, please let me know.
Thanks in advance
tekbond

Similar Messages

  • Well i set a passcode on my iphone 4 and ive forgotten it i have no idea what to do and i only just got this phone plus i dont want to do these bypassing with emergancy call just in case i get it wrong plz help (urgent)

    well i set a passcode on my iphone 4 and ive forgotten it i have no idea what to do and i only just got this phone plus i dont want to do these bypassing with emergancy call just in case i get it wrong plz help (urgent)

    If you set the phone to erase on 10 failed passcodes - then just keep typing and it will wipe itself. 
    Otherwise I believe you can set it to recovery mode and restore etc.. via iTunes...  There is no easy way as the passcode is designed to protect the phone exactly against what you are trying to do now...
    http://osxdaily.com/2011/01/08/iphone-recovery-mode/
    Others may have some additional tips !
    Sorry for the probs you are having...
    Regs Neil

  • Ip to location ......plz help urgent

    Hi all,
    i need a code which finds out/tracks IP address of a machine and based on that it helps to find out which country it is.i mean based on specific IP ,i get to know country and on that basis Locale can be set.Ultimately when the page renders it shows that county language.
    Plz help me out to solve out this issue and its urgent.
    Any materials(tutorials,sample code) would be quite helpful for me.
    Thanks in advance.

    Hi Frank
    Thanks for ur reply.
    Yes its a web application but as i had described above i need to set locale/multilingual on the basis of users ip.ip will tell the location and after that locale can be set.
    Plz tell me desired sol.
    Thnks

  • UTL_FILE help..Plz Help urgently

    CREATE OR REPLACE PROCEDURE test_file
    AS
    n_output_file_handle UTL_FILE.file_type;
    /**************************Beginning of the procedure **********************/
    BEGIN
    --DBMS_OUTPUT.ENABLE(2000000);
    DBMS_OUTPUT.put_line('p_utl_dir:');
    DBMS_OUTPUT.put_line('c_output_file_name:'|| 'test.txt' );
    n_output_file_handle := UTL_FILE.fopen ('C:\MPPI','test.txt','w');
    UTL_FILE.put_line (n_output_file_handle, 'test1');
    UTL_FILE.fclose(n_output_file_handle);
    I have this procedure to write text to a file. I execute this on my own machine but it does not write to the file.I exceute it from SQLPlus by execute test_file();.It says proc successfully completed but nothing is written to text file.
    Could somone plz help me with this urgently.

    Hi, what is the value for the parameter UTL_FILE?
    You use an absolute path for the directory to write to in you r procedure.
    If you would use a directory object in the database to specify where to write to you would not need to set UL_FILE parameter.
    Regards,
    Lutz

  • Binary addition,subtraction and modulus...plz help urgent

    plz help me on this query...
    i need to pass two 512 bit number as string,then convert them to binary and
    then perform binary addition,subtraction,modulus operations on those two numbers.finally convert result to integer.
    i designed a code which doesnt work correct.it is:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package bytearrayopeations;
    import java.math.BigInteger;   
    * @author sheetalb
    public class binaryadding {
        public static void main(String[] args) {
            BigInteger a = new BigInteger("123456");
            BigInteger b = new BigInteger("5121");
            String bb1 = a.toString(2);
            String bb2 = b.toString(2);
            String ss1 = null;
            String ss2 = null;
            String result = "";
            String carry="0";
            System.out.println("first value=" +bb1);
            System.out.println("second value=" +bb2);
            int k=bb1.length();
            int h=bb2.length();
            System.out.println("length 1="+ k);
            System.out.println("length 2=" +h);
            int p=h-k;
            //System.out.println("difference=" +p);
            int q=k-h;
            //System.out.println("difference 2=" +q);
            if(h==k)
           else if(h>k)
                for(int i=0;i<p;i++)
                    bb1="0"+bb1;
                System.out.println("new value of first=" +bb1);   
        else if(h<k)
            for(int i=0;i<q;i++)
                bb2="0"+bb2;
            System.out.println("new value of second=" +bb2);
            StringBuffer sb1=new StringBuffer(bb1);
         StringBuffer sb2=new StringBuffer(bb2);
            bb1=sb1.reverse().toString();
         bb2=sb2.reverse().toString();
            //System.out.println("rev. buffer1=" +bb1);
            //System.out.println("rev. buffer2=" +bb2);
            for(int i=0;i<bb1.length();i++)
                ss1=bb1.substring(i,i+1);
                ss2=bb2.substring(i,i+1);
              System.out.println("value1=" + ss1 + "    " + "value2=" + ss2);
              if (ss1.equals("0") && ss2.equals("0")) 
                 if (carry.equals("0")) 
                     result+="0";
                        else
                            result+="1";
               else if (ss1.equals("1") && ss2.equals("1"))
                if (carry.equals("0")) 
                    result+="0";
              carry="1";
              else
                   result+="1";
                   carry="1";
        else if (ss1.equals("0") && ss2.equals("1"))
                     if (carry.equals("0")) 
                         result+="1";
                   carry="0";
                        else
                          result+="0";
                                    carry="1";
               else if (ss1.equals("1") && ss2.equals("0"))
                     if (carry.equals("0")) 
                        result+="1";
                        carry="0";
                   else
                                result+="0";
                                carry="1";
           System.out.println("sum=" +result + "         " + "carry" + carry);
                        result+=carry;
                        StringBuffer sb3=new StringBuffer(result);
                        result=sb3.reverse().toString();
                    System.out.println("result is " +result); 
                  System.out.println("Binary = "+ result + ", Decimal = "+Integer.parseInt(result,2));
    }plz provide me or email me if possible java coding for all three operations as soon.
    [email protected]

    One thread is enough. Continue here:[http://forums.sun.com/thread.jspa?threadID=5373720&messageID=10643157#10643157]

  • Sto scenario plz help urgent

    Under company code 7245 I m doing stock transfer from 7245 plant to 7246 plant
    supplying plant 7245 recieving plant 7246 ccode 7245
    n sales area in supplying plant is 7245-7a-7a
    now in this sales area ive created a customer 7246 to represent recieving plant
    on the oher side in 7246 ive created vendor 7245
    now in
    SPROMMPO-SET UP STOSHIPPING DATA
    for plant 7246 ive given cust num plant:7246 sales area 72457a7a
    and
    for plant 7245 ive kept cust num plant blank
    and sales area 72457a7a
    n shipping point det in 7246 cust mast shipping cond is 7a
    loading group in material is 7245 for plant 7245
    and for material in 7246 the lopading group is 7246
    the shipping pt det is as follows
    7a-724572457245(shipping cond-loading group-plant-shipping point)
    now when i m creating po in me21n
    i m getting warning message
    ship point 7245 not allowed for ship cond 7a loading group 7245 plant 7245
    its only a warning
    but it is picking up 7245 as shipping point
    now vl10g is also fine
    i m getting the delivery doc number
    n vl02n and migo is fine
    now
    my doubt is
    wat r the settings so that i can do both ways
    see with the above setting i m able to send stock frm 7245 plant to 7246
    but i m not able to configure stock transfer from 7246 to 7245
    mainly i wan settings @ SPROMMPO-SET UP STOSHIPPING DATA
    i ve created customer 7245 in 7246-7a-7a
    and vendor 7245 in purch org 7246
    cant be both settings be standard
    so that stock can be sent any ways
    because both plants belong to same ccode and stock can be ransfered both ways,is this scenario possible??/
    or sto is only one way ??
    plz clarify
    i ve already spent a lot of time on this plz help me out.
    anil
    Edited by: anil singh on Mar 12, 2008 5:37 PM

    Hi,
    Create the customer in the delivering Sales Area/Plant/CC and assign this customer to the recieving plant in the MM> purchasing> STO> Setup STO> Shipping data for plants.
    Assign the delivering plant's salea area also here. So you need to create a customer in 7245 and assigne it in 7246.
    Create the vendor in the purchase organisation of the receiving plant and assgin the delivering plant in the vendor master. Maintain the document types correctly and define whether you require one step or two step procedure.
    hope this will help.
    Prase

  • Oh man i dont know whats wrong.... plz help urgent...

    i dont know whats wrong with my n900.... a couple of weeks before i tried to install nitroid gingerbread on my n900.... i did exactly what it said it was almost complete but the last step didnt complete so i left it like that..... i was using my mobile fine until one day i restarted my phone... when  it started it showed me 2 options (dont remember what the options were) although the 2nd one was power kernel something like that.... i chose 1st option after that it turned off when i startit again only nokia logo comes and it turns off by himself.... i thinki bricked my fone... but y didnt it happen when i was trying to install nitroid... plz help any way to fix it....
    P.S. I cant flash it either.. it doesnt go to usb mode anymore neither does it charge....
    Solved!
    Go to Solution.

    you could try to do the commands in flasher, connect the device while it is off and holding the U button down and see if the flasher will see it.

  • Ora - 00600 error plz help urgent

    hello all sir plz. help would should i do.
    by mistake i made changes in spfile file.... after that i got this error
    any solution ?
    plz. help sir
    SQL> create pfile from spfile;
    create pfile from spfile
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [733], [538970164], [pga heap], [],
    help sir
    waiting for reply

    first of all
    thanx for my reply
    sir i have bkp through rman but when i am connect to rman it give me error
    2. i have no pfile<sid>.ora file
    3. i try to start my database through pfile text file i got error..
    plz. reply sir what should i do.....
    how can i connect rman....
    C:\>set oracle_sid=db01
    C:\>rman target sys/oracle@db01
    Recovery Manager: Release 10.1.0.2.0 - Production
    Copyright (c) 1995, 2004, Oracle. All rights reserved.
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-04005: error from target database:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    C:\>
    again thanx.
    i have full database bkp through rman.

  • ALV codeing...plz help urgent

    Hi Experts,
                         I am new to Abap.i hav a simple spec but i need to do it in ALV so plz help me.
       Sales organization                    LIKP     VKORG
    Shipping point/receiving pt     LIKP     VSTEL
    Delivery                                      LIKP     VBELN
    Delivery date                    LIKP     LFDAT
    Delivery type                    LIKP     LFART     
    Pland gds mvmnt date     LIKP     WADAT     
    Actual gds mvmet date     LIKP     WADAT_IST          
    Ship-to party                        LIKP     KUNNR     
    Sold-to party                        LIKP     KUNAG     
    Posting Status  Customized fields     ZCHK
    If LIKP-WADAT = WADAT_IST, then print "OK", else " Posting Error"
    this is a small requirment.plz help me in this it should be in ALV format.
    correct answers will will given full points.
    Thnaks & Regards
    Sunita.
    PLz Experts plz help me.

    Hi,
    First get the a data into internal table first then fill the field catalog and give it to FM.
      For futher reference <b>Goto to se80 and givepackage slis and see the programs in
      slis.</b>type-pools: slis.
    data:
          i_fieldcat        TYPE slis_t_fieldcat_alv,
           wa_fieldcat       LIKE LINE OF i_fieldcat.
        CLEAR wa_fieldcat.
      wa_fieldcat-fieldname    = 'MATNR'.----
    > internal-table fieldaname
      wa_fieldcat-tabname      = 'I_MARA'.-------> Internal table name
      wa_fieldcat-reptext_ddic = 'Material no.'.
      wa_fieldcat-outputlen    = '18'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname    = 'ERSDA'.
      wa_fieldcat-tabname      = 'I_MARA'.
      wa_fieldcat-reptext_ddic = 'Creation date'.
      wa_fieldcat-outputlen    = '10'.
      APPEND  wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname    = 'ERNAM'.
      wa_fieldcat-tabname      = 'I_MARA'.
      wa_fieldcat-reptext_ddic = 'Name of Person'.
      wa_fieldcat-outputlen    = '10'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname    = 'LAEDA'.
      wa_fieldcat-tabname      = 'I_MARA'.
      wa_fieldcat-reptext_ddic = ' Last Change'.
      wa_fieldcat-outputlen    = '10'.
      APPEND  wa_fieldcat TO i_fieldcat.
    ENDFORM.                    " prepare_fieldcatalog
    *&      Form  display_alv
          text
    -->  p1        text
    <--  p2        text
    FORM display_alv .
    Call ABAP List Viewer (ALV)
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          it_fieldcat  = i_fieldcat----->fieldcat name
        tables
          t_outtab     = i_mara.------> internal table
    ENDFORM.                    " display_alv
    <b> plzzzz reward points if it is useful.</b>

  • Jsp:params help urgent

    hi all,
    i need to pass a lot of values to a applet from a JSP program and i came accross a method for it like Param in Applet Tag : example :
    <PARAM NAME="data" VALUE="
    3624 41.3
    6315 66.7
    4530 58.1
    3378 39.9
    5114 62.6
    4884 63.9
    5348 56.0
    4809 54.6
    4815 52.6
    4091 40.6
    4963 61.9
    4119 59.5
    5107 52.6
    4458 52.9
    4628 59.0
    4669 59.9
    3712 38.5
    3545 42.2
    3694 54.7
    5299 52.3
    4755 58.5
    4751 52.8
    4675 57.6
    3098 41.0
    4254 48.8
    4347 59.2
    4508 59.3
    5149 65.2
    4281 57.6
    5237 52.5
    3601 55.2
    4903 52.7
    3875 38.5
    5087 50.3
    4561 53.2
    3983 51.6
    4660 60.0
    4449 50.2
    4558 46.4
    3635 37.8
    4167 53.3
    3821 41.8
    4188 47.4
    4022 67.3
    3907 57.1
    4701 47.8
    4864 63.5
    3617 41.6
    4468 54.5
    4566 62.9
    ">But i do not have any idea of how do i retrive them in the applet . The number of values will differ each time the applet id loaded .Please help me with this ..Very Urgent. Thanks in advance .
    Chandooo

    hi , i am able to pass the data to the applet through the StringBuffer Object .Here is the JSP code which does the same :
    [ code ]
    <%
    int len =0;
    StringBuffer data = new StringBuffer();
    String ginfo = new String();
    if (r1>r2)
    loop:
    while(sub2.next()){
    while( sub1.next()){
    if(sub1.getString(1).equals(sub2.getString(1))){
    ginfo = sub1.getString(1)+"@"+ sub1.getString(2)+"@"+sub1.getString(3)+"@"+ sub2.getString(3)+"@"+sub1.getString(4);
    data.append(ginfo);
    data.append("\n");
    len++;
    sub1.beforeFirst();
    continue loop;
    sub1.beforeFirst();
    else
    loop1:
    while(sub1.next()){
    while( sub2.next()){
    if(sub2.getString(1).equals(sub1.getString(1))){
    ginfo = sub1.getString(1)+"@"+ sub1.getString(2)+"@"+sub1.getString(3)+"@"+ sub2.getString(3)+"@"+sub1.getString(4);
    data.append(ginfo);
    data.append("\n");
    len++;
    sub2.beforeFirst();
    continue loop1;
    sub2.beforeFirst();
    sub1.close();
    sub2.close();
    %>
    <jsp:plugin type="applet" code="Dot.class" width="500" height="500" align="center">
    <jsp:params>
    <jsp:param name="sub1" value="<%=s1%>" />
    <jsp:param name="sub2" value="<%=s2%>" />
    <jsp:param name="max" value="<%=max%>"/>
    <jsp:param name="len" value="<%=len%>"/>
    <jsp:param name="data" value="<%=data%>"/>
    </jsp:params>
    <jsp:fallback>
    Plugin tag OBJECT or EMBED not supported by browser, So please Download and Install the Plugin
    </jsp:fallback>
    </jsp:plugin>
    But the problem is ..the applet doesn't paint. the applet code is :
    double interval,xinterval1,yinterval1;
    double max;
    int len ;
    private String message = "Initializing";
    int x =0,i=0;
    String sub1,sub2,data;
    public void init() {
    sub1=getParameter("sub1");
    sub2=getParameter("sub2");
    max = Double.valueOf(getParameter("max")).doubleValue();
    data = getParameter("data");
    len = Integer.parseInt(getParameter("len"));
    interval = max/5;
    public void paint (Graphics g){
    String [][]xyf = new String [len][5];
    StringTokenizer tokenizer = new StringTokenizer(data);
    while(tokenizer.hasMoreTokens()){
    String valueOne = tokenizer.nextToken();
    StringTokenizer singleginfo = new StringTokenizer(valueOne,"@");
    x=0;
    while (singleginfo.hasMoreTokens()) {
    xyf[x++]=singleginfo.nextToken();
    i++;
    [/ code ]
    Can please tell me whats wrong with this ...

  • MM to FI plz Help Urgent

    Hi,
    I want to see Purchase order wise report. The report should show PO wise payment in FI.
    PO field is EBLEN and i am unable to find its link to BSIK or BSAK. The reason is that they are not maintaining EBELN in both these table. I tried on LIFNR but LIFNR is for Vendor only and the requirement is for EBELN means in PO.
    Please anyone help me out in this regard and also plz tell me any detail tables hierarchy of all modules.
    Thanks in advance too all the people and gurus.
    Usman Malik

    Hi,
    Check the table BSEG for PO.
    Regards,
    Sridevi
    <i>* Pls. assign points, if useful</i>

  • Class cast exception in jsp plz help

    i have written a jsp where i displayed a text box with value given by user inside it
    when the user enters some other value in text box and clicks on update button then i forwarded reqeust to servlet which will some data base work
    servlet will forward again to the same jsp with the new value in text box.
    but i am getting CLASS CAST EXCEPTION when servlet is forwarding reqeust to same JSP
    help me what to do ........
    thanking you in advance ..cheers

    display cart.jsp file:
    <%@ page import="java.util.*,org.*" %>
    <html>
    <body>
    <%
    Vector cartupdate = (Vector)session.getAttribute("cartlist");
    for (int i = 0; i < cartupdate.size(); i++) {
    CartListBean clb = (CartListBean)cartupdate.elementAt(i);
    %>
    <form name="itemslist<%=i%>" action="updateCart" method="post">
    <input type="hidden" name="itemcode" value="<%=clb.getItemCode()%>">
         <input type="hidden" name="itemname" value="<%= clb.getItemName()%>">
    <input type="hidden" name="price" value="<%= clb.getPrice()%>">
    <%= clb.getItemName() %>
    <input type="text" name="qty" value="<%=clb.getQuantity()%>">
    <input type="submit" name="<%=clb.getItemCode()%>" value="update">
    </form>
    <br>
    <%
    %>
    <form name="tobuy" action="buysrv" method="post">
    <input type="submit" name="buy" value="BUY">
    </form>
    </body>
    </html>
    updatecart servlet code:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import org.*;
    import java.sql.*;
    import java.util.*;
    public class UpdateCart extends HttpServlet
    public void service(HttpServletRequest request,HttpServletResponse response) throws IOException,ServletException
    HttpSession session=request.getSession(false);
    Vector cartupdate = (Vector)session.getAttribute("cartlist");
    for (int i = 0; i < cartupdate.size(); i++) {
    org.CartListBean cart = (org.CartListBean)cartupdate.elementAt(i);
    if((cart.getItemCode()).equals(request.getParameter("itemcode")))
    org.CartListBean clb=new org.CartListBean();
    clb.setItemCode(request.getParameter("itemcode"));
         clb.setQuantity(request.getParameter("qty"));
         clb.setItemName(request.getParameter("itemname"));
    clb.setPrice(request.getParameter("price"));
    cartupdate.setElementAt(clb,i);
    session.setAttribute("cartlist",cart);
    ServletContext application=getServletContext();
    System.out.println("got finished");
              RequestDispatcher rd=application.getRequestDispatcher("/displaycart.jsp");
                   rd.forward(request,response);
    Message was edited by:
    143java

  • Guys Plz help urgent Phone memory is 0

    i recievd a song from bluetooth and it has been saved but it reduced phone memory i tried to fing that song inthe phone memory but not found in phone memory plz tell me the locations so i can transfer to mass memory or bluetooth and can u plz tell me how to change the path of recieving anything means i received from bluetooth i want that it should be go to directly to massmemory folder .
    OR
    any one can tell me how to transfer the song from phone memory to mass memory
    Solved!
    Go to Solution.

    1) For your phone memory to be 0 you must have apps and everything stored there on C: and not utilising the mass storage E:.
    I agree with matt_t that is how it is done when using bluetooth so havent a clue whats going on there.
    2) Have you tried plugging your phone into your PC via USB and exploring your N97 throught my computer  if using windows and double clicking the N97 icon.
    Looking for the C: Phone folder and finding the song and dragging and dropping into E:mass memory music folder????
    OR drag from your C: to your PC and dragging back to E:mass memory Music Foler if the above doesnt work.
    BUT 1 song is usually on around 3MB so you still have issues with 0 memory.
    3) If all your apps are stored on C: why dont you uninstall them and install onto your E:mass memory.
    4) Internet i havent a clue about but with your memory so so low thats the least of your problems at the moment.
    Thats all i have to help with i hope you find your song and your memory increases.
    Message Edited by matto73 on 17-Oct-2009 05:45 PM
    Nokia N97 Unbranded RM-505 [0585162]
    Firmware 21.0.045
    It's NOT about the Kudos they just make my day, hit the Star if I Helped.

  • About XML/XSL and Javascript : Plz Help Urgent

    Hai , I am developing one module which invloves XML database ,XSL and Javascript.
    In this I want to transform XML data to XHTML form using XSLT .,
    I have done this ,(using xsl templates ,In my form two radio buttons one dropdown box and two text boxes are there .).
    All the information which ever is displayed coming from XML .,
    But I want to validate this elements (which are in xslt ,ie checking text box is empty or not ..)
    Where I have to add script in XSL .,
    Plz give simple example on this ,
    I am sending this code ,plz have a look at this ,,
    XML -----+ ---XSLT---------------> XHTML(HTML) (where validation is required)*
    Hotels.xml
    ==============>
    <Services>
         <Service>
              <Hotels type="radio" title="Hotel" groupname="service" default="true"/>
              <HotelsFlights type="radio" title="Flight+Hotel" groupname="service"/>
         </Service>
         <Hotels>
              <Destination title_d="Destination :">          
                   <DestinationPlace type="OPTION" id="" title_d="Select Destination" value_d="Select Destination" defalut="true"/>
                   <DestinationPlace type="OPTION" id="" title_d="Aruba" value_d="Aruba" />
              </Destination>
              <HotelChoice title_hc="Hotels :">
                   <choice type="OPTION" id=" " title_h="AmsterDam Manor Beach" value_h="AmsterDam Manor Beach"/>
                   <choice type="OPTION" id=" " title_h="Wyndham Aruba Beach" value_h="Wyndham Aruba Beach"/>
              </HotelChoice>
              <Dates>
                   <CheckIn type="INPUT" title_dt="Check In :" id="chkin" name="chkin" size_dt="10" maxlength="10">mm/dd/yyyy</CheckIn>
                   <CheckOut type="INPUT" title_dt="Check Out :" name="chkout" size_dt="10" maxlength="10">mm/dd/yyyy</CheckOut>
              </Dates>
              <RoomNos title="No.of Rooms :">
                   <room type="OPTION" id="" titl="1" valu="1"/>
                   <room type="OPTION" id="" titl="1" valu="2"/>
                   <room type="OPTION" id="" titl="1" valu="3"/>
              </RoomNos>
              <Submit tile="Search :" type="submit" id="search" value="Search"/>
         </Hotels>
    </Services>
    Hotels.xsl-
    ------------->
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html"/>
    <xsl:template match="/">
         <html>
         <head>
         <script language="javascript">
         function RadioFunc()
              var result;
              alert(" Radio ");
              result +=document.write("<TABLE >");
              result +=document.write("<TR><TD>"+'Praveen'+"</TD></TR>");
              result +=document.write("</TABLE>");
              alert("Result "+result);
         function validateForm()
              alert("Before validating");
              var chkindate= document.getElementById(chkin).value;
              alert(chkindate);
         </script>
         </head>
         </html>
         <xsl:apply-templates/>
    <xsl:if test="@value_d='Select Destination'">
                        alert("Please Enter Destination");
              </xsl:if>
    </xsl:template>
    <xsl:template match="Services" >
         <form name="myform" action="two.jsp" method="get" >
              <table bgcolor="lightgreen" width="350" height="200" border="1" >
              <tr><td><xsl:apply-templates/></td></tr>
              </table>
         </form>
    </xsl:template>
    <xsl:template match="Service">
         <table border="0" align="center" valign="top"><tr>
         <xsl:for-each select="*">
              <td align="left"><xsl:value-of select="@title"/></td>
              <td align="center">
              <input type="{@type}" onClick="RadioFunc()">
                   <xsl:attribute name="Name">
                        <xsl:value-of select="@groupname"/>
                   </xsl:attribute>
                   <xsl:attribute name="value">
                        <xsl:value-of select="@value"/>
                   </xsl:attribute>
                   <xsl:if test="@default='true'">
                        <xsl:attribute name="checked"/>
                   </xsl:if>
              </input>
              </td>
         </xsl:for-each>
         </tr></table>
    </xsl:template>
    <xsl:template match="Hotels/Destination">
    <xsl:value-of select="@title_d"/>
         <SELECT id="dest" name="dest">
         <xsl:for-each select="*">
              <xsl:element name="{@type}">
                   <xsl:value-of select="@value_d"/>
              </xsl:element>
         </xsl:for-each>     
         </SELECT>
    </xsl:template>
    <xsl:template match="Hotels/HotelChoice">
    <xsl:value-of select="@title_hc"/>
    <SELECT id="hcid" name="hcid">
         <xsl:for-each select="*">
              <xsl:element name="{@type}">
                   <xsl:value-of select="@value_h"/>
              </xsl:element>
         </xsl:for-each>
    </SELECT>
    </xsl:template>
    <xsl:template match="Hotels/Dates">
    <table><tr>
    <xsl:for-each select="*">
              <td>
                   <xsl:value-of select="@title_dt"/>
              </td>
              <td>
              <xsl:element name="{@type}" >
                   <xsl:attribute name="size">
                        <xsl:value-of select="@size_dt"/>
                   </xsl:attribute>
                   <xsl:attribute name="maxlength">
                        <xsl:value-of select="@maxlength"/>
                   </xsl:attribute>
                   <xsl:attribute name="value">
                        <xsl:value-of select="text()"/>
                   </xsl:attribute>
              </xsl:element>
              </td>
    </xsl:for-each>
    </tr></table>
    </xsl:template>
    <xsl:template match="Hotels/RoomNos">
    <table align="center"><th>Travellers</th>
    <tr><td><xsl:value-of select="@title"/></td>
    <td><SELECT id="rooms" name="rooms">
              <xsl:for-each select="*">
                   <xsl:element name="{@type}">
                        <xsl:value-of select="@valu"/>
                   </xsl:element>
              </xsl:for-each>     
    </SELECT>
    </td></tr>
         </table>
    </xsl:template>
    <xsl:template match="Hotels/Submit">
         <table align="center" border="0" >
         <tr>
         <td align="center">
              <input type="{@type}" onclick="validateForm();">
                   <xsl:attribute name="value">
                        <xsl:value-of select="@value"/>
                   </xsl:attribute>
              </input>
         </td>
         </tr>
         </table>
    </xsl:template>
    </xsl:stylesheet>
    ======================================================

    Hi
    This is not the forum for this type of question ...sorry. Try the XMLDB forum, XML DB
    Tim

  • Acessing windows through Solaris10 via ftp...Plz help urgent!!!!!!!!!!!

    Hello Forum,
    I am a newbee to Solaris 10. I have set up a ftp server on Windows.Now I have Solaris installed through VMware On the same Windows on which I have ftp server. I added
    192.168.1.5 win2k
    in my /etc/hosts file on Solaris 10.
    Now when I do
    # ftp win2k It says Network unreachable.
    Please give me Step by Step details on how I can acess my windows through Solaris. I am really on deadline in here.
    Please help me.
    Step by step method of setting ftp so that I can acess windows .
    Cheers
    Somil

    Don't rely on /etc/hosts for remote adresses; I strongly recommend setting up a DNS-server/service.
    Programs linked with libresolve ignores /etc/nsswitch.conf /etc/hosts and resolves directly as configured in /etc/resolve.conf.
    I suggest checking out:
    # PATH=/usr/sbin:$PATH;export PATH
    # ping -s -n 192.168.1.5
    # ping -s -n win2k
    # traceroute -I 192.168.1.5
    # telnet 192.168.1.5 21
    # ftp 192.168.1.5
    # dig win2k
    # dig -x 192.168.1.5
    # ifconfig -a
    # netstat -nrv
    # route get 192.168.1.5
    # snoop -r 192.168.1.5
    # man ping ftp telnet dig ifconfig netstat route snoop nsswitch.conf resolve.conf ...

Maybe you are looking for