Please help on online test application

Hi all, i'm developing an online test application. I'm done with the login page and uploading the question and i choose to display all the questions to the user but i dont know how to insert in the database cos i used a while loop to display the questions and options so i'm confused.please help

Thanks for your response.the thing's dat i've already retrieved the questions and options from my sql table. I just want to submit to the database and its not that i dont know how to do that, i just dont know how to submit multiple entries at once cos i have sumthin like:
while(rs.next())
id=rs.getString(1);
opta=rs.getString(2);
optb=rs.getString(3);
optc=rs.getString(4);
optd=rs.getString(5);
<input type=radio name=<%id%> value=<%opta%> />
<input type=radio name=<%id%> value=<%optb%> />
<input type=radio name=<%id%> value=<%optc%> />
<input type=radio name=<%id%> value=<%optd%> />

Similar Messages

  • How to Implement a Time Limit Feature in an Online Test Application ?

    I am creating an Online Test application. The time limit can be stored for a Test in the database.
    How to implement a time limit such that when the test is started (user clicks on the Start button to go to the fragment containing the Questions) the time left is shown and the test ends (goes to home page) when the timer reaches zero.
    Thanks

    Hi,
    timestamp is a date and thus cannot be used directly to determine seconds passed. So what you need to do is to build the difference between a saved time stamp and the current time.
    http://docs.oracle.com/javase/1.4.2/docs/api/java/sql/Timestamp.html
    So if you have two time stamps, then calling getTime() on each and building the difference gives you a value, which is millisecond. So to get this to an int value you divide it by 1000
    Frank

  • Online test applications

    HI Java experts,
    I am creating an java online test application, i got strucked in the following scenario.
    Scenario :
    My task is when my application starts running other operating system command and menus should be disabled.
    The operating system commands and menus should remain in disable state till my applications exits.
    I know it can be done, can any one suggest ?
    Thanks in advance.

    Try to download an early version of the JVM

  • Please help me about jdeveloper application deployment for weblogic

    At the beginning I just thought after developing an adf application then just deploy it as a .ear file and deploy it in the weblogic console and everything will be ok.But in fact I got a lot of problems. Then I got a tutorial for that and I do what it said step by step but some new problems occured. This is the tutorial I mentioned: [How-To: ADF Deployment Guide|http://www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.htm]
    Now could somebody tell how did you deploy your adf application?
    Here is the errors I got.
    This is the install packege and the OS I use:
    1. CentOS 6.3_x64 + jdeveloper11123.jar(include wls10.3.5) + adr(package name is ofm_appdev_generic_11.1.1.6.0_disk1_1of1.zip)[and just now I used a solaris11 vm from oracle and install jdeveloper11.1.2.3, the same probem occured as in CentOS.]
    2. Win7_x64 + jdeveoper11123.exe(include wls10.3.5) + adr mentioned above
    Here is the problems I get:
    in the case 1,after I install the jdeveloper(using sun jdk 1.7), the weblogic seems to be well though I didn't configure a domain.But after I open an
    application(which I get from the oracle jdeveloper tutorial demo,which works well in my Win7 env) and I run it, the integrated weblogic can't get
    started. Firstly in the console it said the -jrocket identifier is not recognized, then I modify the setDomainEnv.sh and the startWebLogic.sh file in the
    integrated wls domain (the one in the .jdeveloper directer) to set the JAVA_VM variable to -server.After that another problem came out: when the
    wls goes to status "starting",it is blocked and I turn to the system monitor it shows that a java thread using more than 1GB of memory of my system
    and occupy 150% of my cpu(it's a double-core computer). I wait for about 5 minutes when a error came said "PermSize is too small".then I modify the
    setDomainEnv.sh file again to set the PermSize to be 1024m and MaxPermSize to be 2048.(the variable name is something like that, maybe not the
    exactly right. I think you can understand which one it is.) But the problem is still there.
    then in the case 2.Firstly the jdev and the integrated wls works well, but when i deploy an application which works well to a ear file and deploy it to a
    standalone wls(10.3.5) it never works.the error is something referrence/dependences libraries is not found.Then I tried to new a server connection to
    the standalone wls and I got the tutorial [how_to_deploy_adf|http://www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html] , as the tutorial said I patch my standalone
    wls with the adr and everything goes ok, no error reported.Then I tried the new server in the new machine under the manage of the adminserver and apply the
    adf template in the localhost:port/em console. But after I restart the new server(by the console and then by the stop+startweblogic.bat file) the server is running
    while the application in the new server is just "Unavailable". I tried this for three times in three computer, two of them are running win7,the other one is running winxp.
    I don't know what is wrong and I am totally a newbie about this. Somebody please help me.Thanks a lot!
    regard,Neo.

    Neo,
    there are a couple of problems. First of all, jdev comes with it'S own jdk bundled in the product (jdk 1.6_x). Next thing is if you use JDev 11.1.2.3.0 to build an application you must use a wls 10.3.5 or 10.3.6 where you need to install the correct runtime onto. In your case you first install adf runtime 11.1.1.6.0 and then you need to install two patches which update the adf runtime to 11.1.2.3.0. These spathes are only available via support.oracle.com, meaning you need asupport contract to get them.
    More information you can find in my blog http://tompeez.wordpress.com/2011/09/14/jdeveloper-versions-vs-weblogic-server-versions/
    The rest of your problems go away once you have installed the right adf runtime on your server.
    Timo

  • PLEASE HELP - Stupidly deleted "Apple Application Support" Unable to Access Itunes Library (5,000+ songs at stake) = :(

    PLEASE HELP - I have stupidly deleted the apple application support off my computer, and I am unable to launch my Itunes..It advises me to download itunes again, however i am TERRIFIED to do so because I have over 5,000 songs in my Library and no doubt my entire collection will inevitably be wiped.PLEASE HELP..I am almost in tears. I have attempted searching google for "Apple Application" Support downloads however it directs me to the apple website, and to no avail I cannot find anything to aid me...any responses would be greatly appreciated..!!!!!!!!!!

    Reinstall iTunes from Apple's website. Reinstalling iTunes does not wipe your library, but you should have a backup regardless.
    tt2

  • Very Urgent...Please Help..Invoking Windows Applications

    I capture the Windows Desktop screen and saved it as a .jpg file. I then display the .jpg file on frame ( whose size is that of the screen ). Now if i click on the frame, the corresponding Window's application should be invoked ( i.e if I click on the frame where the Start Menu is shown, then the Start Menu should be opened ). Please help me with the code for this. I will be forever indebted to the person who can help me. Iam in very urgent need of this help

    Not so easy.A JPG file is a compressed map of a "picture",nothing more. So , You have to get a reference to an object of this map - You can't save to a simple file (JPG) and expect to do what you want to do.Think something else , not a simple snapshot.In Win98 you have a directory "Desktop" where are all of your icons , in Win2000 you have to search in "Documents and settings\User_name\" or something like this to find the same directory and get all icons.Therefrom look for "Properties" and find the path to execute the exe file.It must be something like this I think.Hope have been helpfull.

  • Please help me to test my first taglib

    Hi evry body, i am new in jsp, i try to test my first custom tag. I make a file named HelloTag.java that i compile it and put it in \MyWebApp\WEB-INF\lib. Then i make a taglib.tld file that a put it in MyWebApp\WEB-INF. And finally i add these lines to web.xml:
    <taglib>
    <taglib-uri>/tlt</taglib-uri>
    <taglib-location>/WEB-INF/taglib.tld</taglib-location>
    </taglib>
    I forget to tell you that i make a file named jsp1.jsp that i put it in /MyWebApp.
    When i startup tomcat and try to call jsp1.jsp from a web browser i get the folowwing exception :
    An error occurred at line: 9 in the jsp file: /jsp1.jsp
    Generated servlet error:
    D:\Projet_DE_Test\Tomcat\work\MyWebApp\jsp1$jsp.java:59: Class org.apache.jsp.HelloTag not found.
    HelloTag jspxth_tlt_message_0 = new HelloTag();
    ^
    I don't know why.
    Here is my code:
    /*****************************************The tag handler********************************************/
    import javax.servlet.jsp.tagext.TagSupport;
    import java.io.*;
    public class HelloTag extends TagSupport {
    private String message = "Assalamo Alaykom";
    public HelloTag() {
    public void setMessage(String message)
    this.message = message;
    public int doStartTag(){
    try
    pageContext.getOut().println(message);
    catch(IOException e)
    return SKIP_BODY;
    /**************************************************the tld*************************************/
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
    "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    <taglib>
    <tlibversion>1.0</tlibversion>
    <jspversion>1.1</jspversion>
    <shortname></shortname>
    <tag>
    <name>message</name>
    <tagclass>HelloTag</tagclass>
    <bodycontent>empty</bodycontent>
    </tag>
    </taglib>
    /***************************************jsp1*********************************************/
    <%@ taglib uri="/tlt" prefix="tlt" %>
    <html>
    <head>
    <title>
    jsp1
    </title>
    </head>
    <body bgcolor="#ffffff">
    <tlt:message />
    </body>
    </html>
    /****************************************web.xml***************************************************/
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <taglib>
    <taglib-uri>/tlt</taglib-uri>
    <taglib-location>/WEB-INF/taglib.tld</taglib-location>
    </taglib>
    </web-app>

    Try putting your tagclass into a package:
    The tag handler would become...
    package tags
    import javax.servlet.jsp.tagext.TagSupport;
    import java.io.*;
    public class HelloTag extends TagSupport {
    // and in your tld you would make it this:
    <tag>
    <name>message</name>
    <tagclass>tags.HelloTag</tagclass>
    <bodycontent>empty</bodycontent>
    </tag>When working with Java/Tomcat you should always have your java classes in a package.
    Hope this helps,
    evnafets

  • Please Help with online gaming problem. Please.

    Hi. I am new to this website and I searched in the faqs but did not get much help. How do I play Age of Empires 2: Age of Kings with my cousin through online DirectPlay while the router is connected to my DSL modem? My cousin lives 9 to 10 blocks away from me and we usually use to play the game online through DirectPlay but ever since I got the router, he cannot enter my game any more. We don't play through a website or anything similar.
    Please Can someone help me.
    Info
    Computer: Windows XP Service Pack 2
    Router: WRT54G Version.8
    AT&T Yahoo DSL Modem
    Thank you for your time.

    This type of problem usually happens w/ DSL. On your PC lets try doing these steps. Open up Internet Explorer. On the address bar, just type the numbers 192.168.1.1 (username just leave it blank, password as default is admin). This should lead you to a linksys page. Go to status. On the status page, what is the Internet IP Address as listed there?

  • Please help. Deployment of application locally with BC4J in JDeveloper 3.2.

    Dear all friends,
    I am a beginner of JDeveloper. Yesterday, I asked a question involving deployment of application in this forum. However, there are no any replies to me. I am feeling a bit dispointed. Now, I would like to introduce the process I did this deployment. I wish to get any suggestions.
    1. At first, I developed an project of business component in my NT computer, which is one-table component. I tested it successfully. My database (Oracle 8) is located at a Solaris server.
    2. I deployed this project locally by simply archieve file. I also included all libraries (Jdeveloper runtime, JDBC, JBO runtime etc) in it.
    3. I created an new project for my client interface (GUI form) by using dataform wizard. I complied and execute it. Everything is fine.
    4. Before deploying, I created a library that points at the simply Jar file of my BC file in step2. And added it to the client project properties.
    5. In deployment of client project, I used "web and comand line application" option. And also included all the default library (they are JBO runtime, Jdeveloper runtime, JDBC etc and the library I created in step 4). I indicated the main class.
    However, when I double click this client Jar file. Nothing happened. In my imagination, it should be executed as in development process. I also think all necessary libraries and resource have been packaged into this executable jar file, which is stand alone and can be deployed to other platform. But I failed.
    I need help from you. Is my action and understanding correct?
    Thank you very much for help
    kevin

    However, when I double click this client Jar file. Nothing happened. In my imagination, it should be executed as in development process. I also think all necessary libraries and resource have been packaged into this executable jar file, which is stand alone and can be deployed to other platform. Not all the dependent jar files are packaged into a single jar. I would recommend you create a batch file, set the classpath and the launch your app. To help set the classpath you can use setvars.bat script in the bin directory. You will have to add your middle tier jar file and the client tier jar and execute java
    call j:\bin\setvars.bat -tools=bc4j_local;
    rem dependent jars
    set classptath=%classpath%;mt.jar;ct.jar
    java ....
    Dear all friends,
    I am a beginner of JDeveloper. Yesterday, I asked a question involving deployment of application in this forum. However, there are no any replies to me. I am feeling a bit dispointed. Now, I would like to introduce the process I did this deployment. I wish to get any suggestions.
    1. At first, I developed an project of business component in my NT computer, which is one-table component. I tested it successfully. My database (Oracle 8) is located at a Solaris server.
    2. I deployed this project locally by simply archieve file. I also included all libraries (Jdeveloper runtime, JDBC, JBO runtime etc) in it.
    3. I created an new project for my client interface (GUI form) by using dataform wizard. I complied and execute it. Everything is fine.
    4. Before deploying, I created a library that points at the simply Jar file of my BC file in step2. And added it to the client project properties.
    5. In deployment of client project, I used "web and comand line application" option. And also included all the default library (they are JBO runtime, Jdeveloper runtime, JDBC etc and the library I created in step 4). I indicated the main class.
    However, when I double click this client Jar file. Nothing happened. In my imagination, it should be executed as in development process. I also think all necessary libraries and resource have been packaged into this executable jar file, which is stand alone and can be deployed to other platform. But I failed.
    I need help from you. Is my action and understanding correct?
    Thank you very much for help
    kevin

  • Please help me fix error " Application descriptor file cannot be parsed "

    I start with Flash - AIR for Android
    When i publish :
    A notice :
    "Error creating files
    Application descriptor file cannot be parsed"
    File XML by Flash created :
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <application xmlns="http://ns.adobe.com/air/application/3.2">
      <id>com.adobe.example</id>
      <versionNumber>1.0.6</versionNumber>
      <versionLabel>1.0.6</versionLabel>
      <filename>example</filename>
      <description/>
      <!-- To localize the description, use the following format for the description element.<description><text xml:lang="en">English App description goes here</text><text xml:lang="fr">French App description goes here</text><text xml:lang="ja">Japanese App description goes here</text></description>-->
      <name>example</name>
      <!-- To localize the name, use the following format for the name element.<name><text xml:lang="en">English App name goes here</text><text xml:lang="fr">French App name goes here</text><text xml:lang="ja">Japanese App name goes here</text></name>-->
      <copyright/>
      <initialWindow>
        <content>example.swf</content>
        <systemChrome>standard</systemChrome>
        <transparent>false</transparent>
        <visible>true</visible>
        <fullScreen>true</fullScreen>
        <aspectRatio>portrait</aspectRatio>
        <renderMode>auto</renderMode>
        <autoOrients>false</autoOrients></initialWindow>
      <icon>
        <image36x36>icon/icon36.png</image36x36>
        <image48x48>icon/icon48.png</image48x48>
        <image72x72>icon/icon72.png</image72x72>
      </icon>
      <customUpdateUI>false</customUpdateUI>
      <allowBrowserInvocation>false</allowBrowserInvocation>
      <android>
        <manifestAdditions>
          <![CDATA[<manifest>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    </manifest>]]>
        </manifestAdditions>
      </android>
    </application>
    I don't pubslish apk ?
    Please hellp me  fix error

    I have tried and  able to package an apk using your XML file.Could you please make sure your XML file starting from line 1 and coloumn 0.Any space will results in the error (Application Descriptor file cannot be parsed)
    -Pranali

  • Please Help!!  Easy Application Tuning Question

    Ok - this should be an easy one for seasoned vets (but not for a newbie like me)
    I've been asked by the boss-man to "find and tune the SQL that's causing the slowdown . . . " I'm on Oracle 817 running Peoplesoft Application. I've located the main problems with the Application and have some solid ideas about how to improve the SQL. So - my question. How the heck do I get into the Peoplesoft (or any other Application for that matter) SQL code to change it. Everything I read says, " . . . and then you can go in and tune the SQL . . . " but never exaplins how exactly to 'get in'. I can't imaging there is a File-->Open-->SQL Code feature, it must be more complex than that. So what am I missing here and how do I get to the place where I can change the Application's SQL for tuning?!?!?!?
    Thanks in advance for any help you give.

    Peoplesoft owns the application code. So you can't change the application code. However, you can examine the code and see if there are some indices that you can create to improve the query. Also, you will need to rebuild your statistics. As a matter of maintenance, you should rebuild your indices and statistics on a regular schedule. Especially if your optimizer parameter is choose and you have high volatility.
    Alternatively, you could ask Peoplesoft to provide you with a patch.
    Maybe someone else has another idea?
    LM

  • Please help! Disappearing iphoto application, no time machine

    I don't have Time Machine turned on, I go to open iphoto today and it has a question mark on it, and the application is gone. Anyone know how I fix or redownload? It's not anywhere on the mac, I have already done a spotlight search. I don't have any original disks with the application, it was just on my mac when I bought it, i think.

    Thanks a million for your help. I have 10.6.8, but I am unsure if this is what the computer was originally shipped with. I also don't know how to reinstall it from the computer's original disks. Can you help, or direct me to a link that can? Again, really appreciate the help.
    I am attaching a screenshot of my pictures folder, to see if you can decipher whether all my photos are gone!
    I don't know what happened with this, I don't see myself moving it to trash and emptying, but maybe I did!

  • Please help my E-mail Application

    Hi
    I am a novice java programmer.Now,I am a member of the Development Team which is for WAP
    programming with JSP.It is for E-mail Application.I have many problems with that project.So,you give me the complete template for E-mail application with WML(WAP).
    Please send me to my email:([email protected]).
    Thank you

    That's called Red Flagging. Now you have to write
    your response ;)Well, I hope the employer finds out and that the unemployment statistics get incremented... that's cruel, you say? Tell that to the person who actually knows Java and who almost got the job the OP fails to do.
    Is anybody able to top this?

  • Please help test a gif program in Lion and Snow Leopard

    Can anyone please help me by testing a Gif creation app on a Lion and Snow Leopard machine?
    The app is called "GIFfun" and is free. It can be downloaded here:  http://www.stone.com/GIFfun/
    I have used this app for years on a Leopard machine, but needed to upgrade this week to Lion.
    Since upgrading to Lion all white areas in Gifs i create are turned to grey and its causing me problems in my workflow.
    I've purchased other Gif creation software to see if the problem was only with that app, but the grey areas are on all Gifs from all Gif creators, which makes me sure the problem lies with Lion.
    It would be a real help for me to know that other Lion users had the same problem, and to know that Snow Leopard users didn't have the problem. (as i would downgrade my OS to Snow Leopard)
    I've attached 3 images to test the app, these images need to be put into a folder and the folder dragged and dropped into the app.
    I need to know if the white areas turn grey on your OS?
    I will be really grateful if anyone can help me with this.
    Thanks
    Dave

    Yes I see your problem.
    Nothing you or I can do about third party software not preforming well in Lion.
    Contact their support:http://www.stone.com/Form.html
    or
    Stone Contact Info
    Tele: 505 345 4800
    Fax: 505 345 3424
    www.stone.com
    [email protected]
    Stone Design Corp
    PO Box 6799
    Albuquerque, NM 87197-6799

  • I have redeemed my code and downloaded the Mountain Lion overnight. Now I am unable to find the download and unable to install it. And the code says that its already redeemed. What can I do? Please help.

    I have redeemed my code to download the Mountain Lion. I left it for download overnight. Now I am unable to find the download and its not installed. And the code says that its already redeemed so I cannot download the Mountain Lion again. Please help.

    Look in your Applications folder.

Maybe you are looking for

  • How to scan on Mac OS10.10.2 by HP Color LaserJet Pro MFP M177fw?

    hello,  i try few different way but still don't know how to scan things. anyone know how to scan on Mac OS10.10.2 by HP Color LaserJet Pro MFP M177fw? it have no problem on printing by wifi. thanks, Les

  • WL 7 Server vs WL 7 Platform download

    We currently run WL Server 5.1, and would like to upgrade to WL Server 7. When we downloaded the product it indicated we were downloading WL 7 Server. However, it appears when we run the installation that we have actually downloaded the new 'Platform

  • Dynamically binding simpletype to a dropdownbykey??

    Dear All, How to bind a existing simpletype to a dropdownbykey UI element? I have set of simpletypes created and I want to assign them to dropdownbykey UI element ( statically created). How do I go about it? Pls help. Can anybody give me sample code

  • Startup Drive full. What should I move to an external drive and how?

    Startup Drive full. What should I move to an external drive and how? By "how" I mean what would the steps be to move photos and music so I could take them off the Startup Drive.

  • Can't convert AIF files to MP3

    I have a few songs in iTunes that are in aif format. I tried converting to mp3 and it goes through the motions and chimes at me as if it has made the conversion. If I go to the menu, 'convert to mp3' is grayed out as if it has already been converted,