Kindly help me with this checkbox issue

Hi all,
Firstly I would like t o thank this very helpful forum.I have one more question regarding checkboxes.
/*courses.jsp*/ In my courses.jsp which connects to an MS Access database I have something like this...
<INPUT TYPE=CHECKBOX NAME="COURSES" VALUE="rs.getString("course")"><%out.print(rs.getString("course"));%></td>/*courses.jsp*/
This is coming from the database.
In my servlet code i have this in the doPost method.
/*CheckBoxServlet*/ PS : This servlet is not connected to the database..
String checkbox[] = request.getParameterValues("COURSES");
          int counter = checkbox.length;
          System.out.println("Number of checkboxes checked " + counter);
          if (checkbox !=null){
               for (int i = 0; i < checkbox.length; i++) {
               System.out.println("Checkbox values "+ checkbox);
     } else {
               System.out.println("none selected");
/*CheckBoxServlet*/
/* OUTPUT */
I have checked 5 check boxes
Checkbox values rs.getString(
Checkbox values rs.getString(
Checkbox values rs.getString(
Checkbox values rs.getString(
Checkbox values rs.getString(
/*OUTPUT*/
My question is why is it not printing out the value in rs.getString()????.
It would be great if this forum helps me in the right direction.Let me know how i can go about doing this.
I hope i have explained my question correctly.If you have any further questions kindly ask.
Thanking every one in adavance
AS

your mixing html and java code
<INPUT TYPE=CHECKBOX NAME="COURSES"
VALUE="rs.getString("course")"><%out.print(rs.getStrin
g("course"));%></td>based on this it should be
<INPUT TYPE=CHECKBOX NAME="COURSES"
VALUE="<%out.print(rs.getString("course"));%>)"><%out.
print(rs.getString("course"));%></td>
Hi again,
Thanks for the reply.
If I give this
<INPUT TYPE=CHECKBOX NAME="COURSES" VALUE="<%out.print(rs.getString("course"));%>"><%out.print(rs.getString("course"));%>This is the error message i get
javax.servlet.ServletException: No data found
     org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
     org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
     org.apache.jsp.courses_jsp._jspService(courses_jsp.java:243)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     servlet.AdminValidationServlet.doGet(AdminValidationServlet.java:78)
     servlet.AdminValidationServlet.doPost(AdminValidationServlet.java:93)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.sql.SQLException: No data found
     sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7139)
     sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3908)
     sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5702)
     sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:356)
     sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:413)
     org.apache.jsp.courses_jsp._jspService(courses_jsp.java:106)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     servlet.AdminValidationServlet.doGet(AdminValidationServlet.java:78)
     servlet.AdminValidationServlet.doPost(AdminValidationServlet.java:93)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)What could be the reason for this.It would be great if you can help me out.
TIA
AS

Similar Messages

  • I would like to remove a short gray edge from two images. I need help in that I am not yet able to use PhotoShop. Could somebody kindly help me with this?

    I would like to remove a short gray edge from two images. I need help in that I am not yet able to use PhotoShop. Could somebody kindly help me with this?

    I doubt it Doc Maik, but I am certainly happy to learn The image is this one (and a similar one). They would be beautiful portraits if not for the "extra mouth". The grey edge that I would like to remove is the excess of (grey) mouth that is actually my horse's chin, but that in the pictures looks like a wider, looping mouth. Practically, looking at the picture, the "extra mouth" to the left. What I would love it to be able correct that to look like a normal mouth, which means that half of the protruding edge should be removed. I am not sure I was able to explain myself, but here is one of the two pictures. I thank you for you kindness in being available to advise me.

  • Kindly help me with this Struts 1.0 and Ibatis issue

    Hi All,
    Hoping that this question will get posted.I am working on the example provided by http://www.reumann.net for the Ibatis.
    I am using tomcat 5.0.28 , eclipse 3.0 and Java 1.4.2.I get the index page of the application
    Once I click either of the links I get the following error on the browser.Http 500 eoor
    "javax.servlet.ServletException: Cannot find bean under name departments
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
         org.apache.jsp.employeeForm_jsp._jspService(employeeForm_jsp.java:154)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)"
    It would be great if someone helps me out in detail as to what is to be done to get this application up and running.I am trying to use MS access database.
    Many thanks in advance.
    Thanking you
    AS

    AS,
    I'll answer you here as I did on TSS. You need to pass a bean called "departments" in whichever scope you used in your jsp page.
    As for a detailed explanation of how to integrate MSAccess, you'll probably need to read a few tutorials online. Ask again when you have specific questions that aren't answered by them.
    sv

  • Unable to Intialize HDV deck - can anyone pls help me with this FCE Issue?

    I have recently moved from a MacBook Pro (circa 2 yrs old) to a new MacBook Pro with the NEW firewire 800 port. I have bought a new firewire cable and my camera does not want to be capture from my Sony A1E.
    I have a MacBook Pro 2.8ghz running on OS X 10.6.2 and have all the updates installed for FCE.
    Every time i try to capture the message comes up "Unable to Intialize HDV deck. Please make sure a deck is connected and try again".
    The System is set up to receive the correct frame rate footage and type of footage (which is: HDV-Apple Intermediate Codec 1080i50. Formats: All formats). I am running on PAL, so 25fps.
    Is there any advice / direction that you could give me at all as I am struggling!
    Any help support would be appreciated!
    Thanks, Martin

    Hi,
    Would you confirm that you are using a 9-pin to 4-pin FW cable to connect to your camcorder and that your camcorder is the only FW device connected to your Mac.
    When you start up FCE with the camera connected to your Mac and already powered on in VTR mode, does FCE 'see' the camera, or do you get a warning message that FCE is "Unable to locate the following external devices ..." ?

  • Hi there, hope somebody could help me with this little issue I am having

    Hi there,
    First of all I want to say that I am very pleased to be part of this community, my name is Juan and I got the following problem:
    When my father tries to dial a mobile phone number (from his blackberry) starting with 32, phone adds a plus sign like if he was actually dialing an international number.
    I mean, if he dials 321 815 5634, we get the following result: +321 815 5634
    Hope someone could give me a clue on how to solve this.
    Thanks in advance,
    Juan

    Hi Juan,
    Welcome to BlackBerry Support Community Forum.
    tanzim                                                                                  
    If your query is resolved then please click on “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit

  • Help me with this caching issue

    I have a JSP page where the user can make some changes and press a
    submit button to update the changes.
    After that the control is back in the same page.
    If the user clicks the browser back button at this time , the previous page without the changes is being displayed
    If the user presses the submit button a couple of times and then press the back button in the browser all the intermediate pages are being displayed
    Is there any way to avoid this
    Please advise
    TIA

    The Back button is my long time enemy and as such I found ways to beat him (and call him my punk!). The key here is Javascript.
    First, never use an <input type=submit> use a type=button with JS to built a query string and call your next page using location.replace() NOT location.href. The method replace() will not make an entry in the browser's history.
    ******* Sample ********
    window.location.replace("nextpage.jsp?arg1=" + form.field1.vaule + "&arg2=" + form.field2.vaule)
    ******* End ********
    Second, your <FORM> tag should not have method OR action defined. You should define an onSubmit event with JS to cancel the sumbit action.
    ******* Sample ********
    <FORM id="foo" name="foo" onSubmit="event.returnValue=false;">
    ******* End ********
    Finally, if you want to make sure the back button is NEVER even enabled add a dumby page as your start page (i.e. index.htm) that uses JS to pop
    open a new window with your true start page.
    ******* Sample ********
    <HTML>
    <HEAD>
    <TITLE>Loader</TITLE>
    <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </HEAD>
    <SCRIPT language="javascript">
    <!--
    function fPopMain(){
    // pop a 800x600 window, centered, resizable, status bar only
    var intLeftPos = (screen.width) ? (screen.width-800)/2 : 0;
    var intTopPos = (screen.height) ? (screen.height-600)/2 : 0;
    var urlstring = '\Start.jsp'
    var newWindow = window.open(urlstring,'winAppMain','height=600,width=800,top='+intTopPos+',left='+intLeftPos+',toolbar=no,minimize=no,status=yes,memubar=no,hotkeys=no,location=no,resizable=yes,scrollbars=yes');
    //-->
    </SCRIPT>
    <BODY onLoad="fPopMain();">
    <BR><BR>
    <CENTER>App Loading...</CENTER>
    </BODY>
    </HTML>
    ******* End ********
    Combine the three steps above with no-cache META tags or the like and you too can call the back button yo punk!
    <META HTTP-EQUIV='expires' CONTENT='Fri, 1 Jan 1990 00:00:00 GMT'>
    <META HTTP-EQUIV='cache-control' VALUE='no-cache, no-store, must-revalidate'>
    GL
    Will

  • Hi could someone help me with this basic issue ..

    'sql*plus' is not recognized as an internal or external command,
    operable program or batch file.
    I have installed expression addition for practice on a win xp OS it was working fine but now this is the error when , I am trying to start the data base.
    checked the environmental variables they seem to be ok but still no progress .
    Thanks,
    Max

    Hi,
    In hurry are you typing sql*plus instead of sqlplus?
    you could go to <oracle-home>/bin directory and run  (ex: C:\oraclexe\app\oracle\product\11.2.0\server\bin\sqlplus.exe)
    Regards
    Yoonas

  • HT1365 Hi can anyone help with this issue regarding my wireless magic mouse? When im on google chrome and scrolling down the page i always have youtube running in the background but the audio cuts/spits/pops can anyone help me with this?

    Hi can anyone help with this issue regarding my wireless magic mouse? When im on google chrome and scrolling down the page i always have youtube running in the background but the audio cuts/spits/pops can anyone help me with this?

    The figures you mention only make sense on your intranet.  Are you still using the same wireless router.  The verizon one is somewhat limited as far as max wireless-n performace.  For one thing it only has a 2.4 radio.   I like many people who wanted wireless-n performance before they even added a wireless-n gigabit router, have my own handling my wireless-n network.

  • HT201210 (The iPhone "Named" cannot be restored at this time because the iPhone software update server could not be contacted or is temporarily unavailable.) can anyone help me with this issue, every time i try to restore it will come up like this error m

    (The iPhone "Named" cannot be restored at this time because the iPhone software update server could not be contacted or is temporarily unavailable.)
    can anyone help me with this issue, every time i try to restore it will come up like this error message.

    Restore the iPhone when connected to iTunes by cable.
    Still the same TS1275?
    Is your iPhone jailbroken?
    Or
    Has your computer ever been used to jailbrake or downgrade (Tinyumbrella) any iPhone?

  • Will Apple help me with this issue?

    Dear Sir or Madam,
    I am a student in China, I really need your help, my iphone now problems bothers me! HELP ME PLEASE!!!
    As I bought my iPhone 4s(16GB,White) in the USA from Sprint, full price with tax,  unlocked ,it was excepted to be a global phone. But now I come across with some problems in China  using local carrier.Now I am in China, not the normal use of the phone, I rely on odd jobs to earn, very not easy, English is not my mother tongue, maybe there are many grammatical mistakes, I hope you'll forgive me! Mobile phone can not be used normally I am very sad, I can not contact the parents and friends, can not let them worry about me, I've tried all means, including the upgrade to 6.1, but still can not solve the problem, I think maybe I am in China, so can not be used normally, at this moment I am very anxious, because of the time difference, it is later I can send mail, you can see it, please help me, a Chinese student's request!
    I tried all the possible solutions from the Internet, and the Official solution offered by Apple (http://support.apple.com/kb/TS4459), but it doesn't seem to work.
    Will Apple help me with this issue? Please do.THANK YOU VERY MUCH!!!

    We are not Apple, and Apple does not unlock phones. Sprint will unlock phones, but you have to qualify. One of the qualifications is to have been a customer in good standing for a period of time. You can check their website for what that is. After that, they can unlock the GSM side of the phone for International use, that is it. If you are on a CDMA carrier, then it cannot be unlocked. Are you trying to use a local SIM card in China?
    Your only option is to contact Sprint to see if you qualify for an unlock. Only they can unlock it. Sprint is one of the poorest choices to take to another country.

  • What will i do..there is a message show, "your device in not more eligible to create a free i cloud acount"..and when i try a new one it ask an account number, but i dont have...can you help me with this issue..

    What will i do..there is a message show, "your device in not more eligible to create a free i cloud acount"..and when i try a new one it ask an account number, but i dont have...can you help me with this issue..?
    I try also my old icloud user but its not recognizing the accoun...

    What will i do..there is a message show, "your device in not more eligible to create a free i cloud acount"..and when i try a new one it ask an account number, but i dont have...can you help me with this issue..?
    I try also my old icloud user but its not recognizing the accoun...

  • Hey guy can you please help me with this issue PLEASE!

    Hey Apple can you please help me with this issue, i have a iPhone 3gs and when i put my sim card into the iPhone it makes iphone 3gs shut down suddenly how do i fix that?
    iPhone version: 6.0.1
    service provider: Vodafone nz

    You could restarting your phone that sometimes fixes issues
    Hold down the Sleep/Wake button and the home button together until the apple logo appears (ignore the ON/OFF slider) then let both buttons go and wait for phone to restart (no data will be lost).

  • The genius bar sold me a LaCie 500 GB EHD today but I can't get it to work properly.  Can I schedule another genius bar appt. to help me with this issue even though the EHD is not an Apple product?

    The genius bar sold me a LaCie 500 GB EHD today but I can't get it to work properly.  Can I schedule another genius bar appt. to help me with this issue even though the EHD is not an Apple product?

    Yes, if you purchased it in an Apple store, they should be able to assist you.  Bring your MBP with you as well as the Drive.
    Ciao.

  • I have a problem with my blackberry 9360, I bought it last 2months, and now when I use video camera or camera I saw a red and blue line. Can someone help me with this issue?

    I have a problem with my blackberry 9360, I bought it last 2months, and now when I use video camera or camera I saw a red and blue line. Can someone help me with this issue?

    Hello zukafu, 
    Welcome to the forums. 
    In this case we can try to reload the software on the BlackBerry® smartphone to make sure it is running the latest version and there are no issues with the OS.
    Here is how to backup your BlackBerry smartphone http://bbry.lv/oPVWXc
    Once you have backed up your BlackBerry smartphone please follow the link below to complete a clean reload of the BlackBerry smartphone software.
    Link: http://www.blackberry.com/btsc/KB03621
    Once completed test it and proceed with a selective restore, here is how to restore http://bbry.lv/qgQxLo
    Thank you
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • I have a red vertical line on the right side of my screen and it will not go away tried restarting my computer and that didn't help at all, please help me with this problem it is kind of annoying

    I have a red vertical line on the right side of my screen and it will not go away tried restarting my computer and that didn't help at all, please help me with this problem it is kind of annoying

    If it's a thin 1 pixel wide vertical line it's highly likely it could be caused by a defective LCD.
    One quick basic way to check is to note the position of the line. Then go to System Preferences, Displays, and lower the resolution. If ther line moves it's on the video and the logic board or video card if fitted is likely to be defective. If the line stays in the same position it's likely to be an LCD fault. Either way to have it repaired you'll need to visit an Apple store or AASP.
    The worst offender for this problem is the Late 2006 17" iMac. FOC replacement of the LCD used to be covered by a quality program, but it's now ended.
    Steve

Maybe you are looking for

  • Accounting document not complete

    Create a sales order Create a delivery Create a invoice When I look in document flow and I have done all of the above I see accounting document-not cleared can you confirm that this does not show as complete until a cash posting occurs from the custo

  • [Fwd: Re: Integration with CM Systems ...]

    -------- Original Message -------- Subject: Re: Integration with CM Systems ... Date: Thu, 10 Aug 2000 15:47:21 -0600 From: Cindy Eldenburg <[email protected]> Organization: BEA Systems, Inc. Newsgroups: weblogic.developer.interest.personalization Re

  • Adding External TV Tuner

    I just purchased, without the TV Tuner option, and would like to add. I tried the HP USB TV Tuner, but it appears to support only Notebook Computers. Has any one else had any luck with the HP DIgitial USB TV Tuner with this system. Any other recommen

  • Backup fails with I/O error unpredictably

    I have a TC running TM backing up two iMacs and a Mac Pro. One of the iMacs, which is connected wirelessly, will sometimes (~ once per day) fail with the following message on TM buddy: +Starting standard backup+ +FSMountServerVolumeSync failed with e

  • Syncing Ipod Shuffle and Ipod Touch.

    I have both Ipod Shuffle and Ipod Touch. I only want certain songs on the Shuffle. How do I "weed out" the rest of the songs?