Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2006

Tip: Looking for answers? Try searching our database.

help me

Thread view: 
kolhebhushan@gmail.com - 06 Apr 2006 15:11 GMT
i have array loop like
//got from database sys is got no. of checkbox from database.
for(int rx=0;rx<sys;rx++)
{

    if( ar2c[2].equals(sss[rx])  )
        {
            out.println("<tr>");
            out.println("<td width=60% align=center class=lefttext><input
type=checkbox class=innertext name=smenu  value="+ar2c[2]+"
checked>"+arc[0] +"</td>");
            out.println("</tr>");
        //    flag=0;

        }

}
//other than database
                                               out.println("<tr>");
            out.println("<td width=60% align=center class=lefttext><input
type=checkbox class=innertext name=smenu  value="+ar2c[2]+" >"+arc[0]
+"</td>");
            out.println("</tr>");

where sys is got from data base and that thing is display on screen
using tick in checkbox
now my problem is that i wan display all checkboxes which are in
database and also not in db then how can achieve it ....using
flag......using break ,,.......please tell me exact approach
Monique Y. Mudama - 08 Apr 2006 17:30 GMT
> where sys is got from data base and that thing is display on screen
> using tick in checkbox now my problem is that i wan display all
> checkboxes which are in database and also not in db then how can
> achieve it ....using flag......using break ,,.......please tell me
> exact approach

You want to display all checkboxes that are in the database and also
not in the database?  I don't think I understand.

Also, when you say things like "using flag" and "using break", it
suggests to me that this is a homework assignment, in which case most
of us won't give you an "exact approach," because the value in
homework assignments is in doing them yourself.  If you start working
on the problem and find you are stuck, you could ask a specific
question, and we might be able to help you out.

Signature

monique

Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.