Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2002
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    code enclosed:help with alignment o/p

    Hi I have the following script which works fine in HTML..
    But when i try to embedd it in Servlets(with out.println statements)..it shows errors mainly syntactical..pls do show me how to embedd this in a servlet out.println..s?...
    Thankx and need the help so pls do answer..!!!
    Vij
    ........................................................<TR>
    </TR>
    <input type="checkbox" name="checkbox1" onClick="disp('div1');"> Incoming Messages

    <!--BEGIN CHECKBOX SET 1-->
    <div id="div1" style="display:none">
    <input type="checkbox" value="New Order Single">New Order Single -D
    <input type="checkbox" value="Cancel Replace">Cancel Replace -G
    <input type="checkbox" value="Cancel Request"> Cancel Request -F
    <input type="checkbox" value="Dont Know">Dont Know
    </div>
    <!--END CHECKBOX SET 1-->

    <TR>
    </TR>
    <TR>
    </TR>
    <TD class='nav' ALIGN='left' VALIGN='center' </TD>
    <TD class='nav' ALIGN='left' VALIGN='center' </TD>
    <TD class='nav' ALIGN='left' VALIGN='center' </TD>
    <TD class='nav' ALIGN='left' VALIGN='center' </TD>
    <input type="checkbox" name="checkbox2" onClick="disp('div2');"> Outgoing Messages

    <!--BEGIN CHECKBOX SET 2-->
    <div id="div2" style="display:none">
    <input type="checkbox" value="Execution Request"> Execution Report -8
    <input type="checkbox" value="Cancel Reject">Cancel Reject -9
    <input type="checkbox" value="IOI">IOI
    </div>
    <!--END CHECKBOX SET 2-->
    <TR>

    ---------------------------------
    vijay...life is awesome!

  • #2
    New Coder
    Join Date
    Jun 2002
    Location
    NYC
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What does the code look like in Java? And where are you getting errors? Does any of the html get back to the browser from your servlet or is it simply a blank screen? Been working with servelets myself for the past two months so I empathize.
    Last edited by edgework; 09-05-2002 at 02:50 AM.

  • #3
    New Coder
    Join Date
    Aug 2002
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi!
    No i dont get a blank screen...The HTML does get back but then does not perform the desired action..
    If u see the above code.that works fine when opened in HTML ...say notepad.
    But when embedded in a servlet..it gets mushed up with single and double quotes etc.and
    So
    1. Can u code the above within out.println...'s
    2. Is there any reference material out there for servlets and HTML coded inside them???

    Pls i am desperately looking for help!

    Vij
    vijay...life is awesome!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •