PDA

View Full Version : code enclosed:help with alignment o/p


vijk2001
09-03-2002, 02:22 PM
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>

---------------------------------

edgework
09-05-2002, 01:47 AM
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.

vijk2001
09-05-2002, 04:35 PM
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