Instant results from online quiz

I am trying to figure out how to create a online quiz/survey where I provide a question, then when you answer you need to fill out a registration for with contact information and then be brought to a graph of how you did against everyone else who answered the quiz.   Can these forms do it or what would you suggest to do this?

Sorry we do not support showing comparaison graph after a submission. You can show the published summary report (overall report of all responses received so far) right after the submission but that's about it.
For this you will need a paid subscription, publish the Summary Report and then use the redirct feature after the submission to show the report.
Gen

Similar Messages

  • Delete results from analyzer

    How can I delete results from the quiz results analyzer? I have an exam that wont download completely on one computer so I'm thinking if I can clean it out that'd be fantastic and might help.
    On windows 7.

    Hi,
    In order to delete results from the Quiz Results Analyzer (Assusming , you are working on Captivate 5/5.5) and you want to delete the complete course, please follow the steps:-
    1.) Select the course that you want to delete that you want to delete under Quiz Results analyzer
    2.) At the Top right corner, you may find the Tab " Delete from Acrobat.com "if you are signed into Acrobat.com.
    3.)Click on that and it may delete the course.
    Note:- In Captivate 5.0/5.5 Quiz Results Analyzer, only courses can be deleted but Organization and Department name can not be deleted
    I hope that answers your query.

  • ADFS SSO and SharePoint 2013 on-premise Hybrid outbound search results from SharePoint Online - does it work?

    Hi, 
    I want to setup an outpund hybrid search for SharePoint 2013 on-premise to SharePoint Online.
    But I'm not shure if this works with ADFS SSO.
    Has somebody experience with this setup?
    Here's my guide which I'm going to use for this installation:
    Introduction
    In this post I'll show you how to get search results from your SharePoint Online in your SharePoint 2013 on-premise search center.
    Requirements
    User synchronisation ActiveDirectory to Office 365 with DirSync
    DirSync password sync or ADFS SSO
    SharePoint Online
    SharePoint 2013 on-premise
    Enterprise Search service
    SharePoint Online Management Shell
    Instructions
    All configuration will be done either in the Search Administration of the Central Administration or in the PowerShell console of your on-premise SharePoint 2013 server.
    Set up Sever to Server Trust
    Export certificates
    To create a server to server trust we need two certificates.
    [certificate name].pfx: In order to replace the STS certificate, the certificate is needed in Personal Information Exchange (PFX) format including the private key.
    [certificate name].cer: In order to set up a trust with Office 365 and Windows Azure ACS, the certificate is needed in CER Base64 format.
    First launch the Internet Information Services (IIS) Manager
    Select your SharePoint web server and double-click Server Certificates
    In the Actions pane, click Create Self-Signed Certificate
    Enter a name for the certificate and save it with OK
    To export the new certificate in the Pfx format select it and click Export in the Actions pane
    Fill the fields and click OK Export to: C:\[certificate
    name].pfx Password: [password]
    Also we need to export the certificate in the CER Base64 format. For that purpose make a right-click on the certificate select it and click on View...
    Click the Details tab and then click Copy to File
    On the Welcome to the Certificate Export Wizard page, click Next
    On the Export Private Key page, click Next
    On the Export File Format page, click Base-64 encoded X.509 (.CER), and then click Next.
    As file name enter C:\[certificate
    name].cer and then click Next
    Finish the export
    Import the new STS (SharePoint Token Service) certificate
    Let's update the certificate on the STS. Configure and run the PowerShell script below on your SharePoint server.
    if(-not (Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue)){Add-PSSnapin "Microsoft.SharePoint.PowerShell"}
    # set the cerficates paths and password
    $PfxCertPath = "c:\[certificate name].pfx"
    $PfxCertPassword = "[password]"
    $X64CertPath = "c:\[certificate name].cer"
    # get the encrypted pfx certificate object
    $PfxCert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 $PfxCertPath, $PfxCertPassword, 20
    # import it
    Set-SPSecurityTokenServiceConfig -ImportSigningCertificate $PfxCert
    Type Yes when prompted with the following message.
    You are about to change the signing certificate for the Security Token Service. Changing the certificate to an invalid, inaccessible or non-existent certificate will cause your SharePoint installation to stop functioning. Refer
    to the following article for instructions on how to change this certificate: http://go.microsoft.com/fwlink/?LinkID=178475. Are you
    sure, you want to continue?
    Restart IIS so STS picks up the new certificate.
    & iisreset
    & net stop SPTimerV4
    & net start SPTimerV4
    Now validate the certificate replacement by running several PowerShell commands and compare their outputs.
    # set the cerficates paths and password
    $PfxCertPath = "c:\[certificate name].pfx"
    $PfxCertPassword = "[password]"
    # get the encrypted pfx certificate object
    New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 $PfxCertPath, $PfxCertPassword, 20
    # compare the output above with this output
    (Get-SPSecurityTokenServiceConfig).LocalLoginProvider.SigningCertificate
    [/code]
    ## Establish the server to server trust
    [code lang="ps"]
    if(-not (Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue)){Add-PSSnapin "Microsoft.SharePoint.PowerShell"}
    Import-Module MSOnline
    Import-Module MSOnlineExtended
    # set the cerficates paths and password
    $PfxCertPath = "c:\[certificate name].pfx"
    $PfxCertPassword = "[password]"
    $X64CertPath = "c:\[certificate name].cer"
    # set the onpremise domain that you added to Office 365
    $SPCN = "sharepoint.domain.com"
    # your onpremise SharePoint site url
    $SPSite="http://sharepoint"
    # don't change this value
    $SPOAppID="00000003-0000-0ff1-ce00-000000000000"
    # get the encrypted pfx certificate object
    $PfxCert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 $PfxCertPath, $PfxCertPassword, 20
    # get the raw data
    $PfxCertBin = $PfxCert.GetRawCertData()
    # create a new certificate object
    $X64Cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2
    # import the base 64 encoded certificate
    $X64Cert.Import($X64CertPath)
    # get the raw data
    $X64CertBin = $X64Cert.GetRawCertData()
    # save base 64 string in variable
    $CredValue = [System.Convert]::ToBase64String($X64CertBin)
    # connect to office 3656
    Connect-MsolService
    # register the on-premise STS as service principal in Office 365
    # add a new service principal
    New-MsolServicePrincipalCredential -AppPrincipalId $SPOAppID -Type asymmetric -Usage Verify -Value $CredValue
    $MsolServicePrincipal = Get-MsolServicePrincipal -AppPrincipalId $SPOAppID
    $SPServicePrincipalNames = $MsolServicePrincipal.ServicePrincipalNames
    $SPServicePrincipalNames.Add("$SPOAppID/$SPCN")
    Set-MsolServicePrincipal -AppPrincipalId $SPOAppID -ServicePrincipalNames $SPServicePrincipalNames
    # get the online name identifier
    $MsolCompanyInformationID = (Get-MsolCompanyInformation).ObjectID
    $MsolServicePrincipalID = (Get-MsolServicePrincipal -ServicePrincipalName $SPOAppID).ObjectID
    $MsolNameIdentifier = "$MsolServicePrincipalID@$MsolCompanyInformationID"
    # establish the trust from on-premise with ACS (Azure Control Service)
    # add a new authenticatio realm
    $SPSite = Get-SPSite $SPSite
    $SPAppPrincipal = Register-SPAppPrincipal -site $SPSite.rootweb -nameIdentifier $MsolNameIdentifier -displayName "SharePoint Online"
    Set-SPAuthenticationRealm -realm $MsolServicePrincipalID
    # register the ACS application proxy and token issuer
    New-SPAzureAccessControlServiceApplicationProxy -Name "ACS" -MetadataServiceEndpointUri "https://accounts.accesscontrol.windows.net/metadata/json/1/" -DefaultProxyGroup
    New-SPTrustedSecurityTokenIssuer -MetadataEndpoint "https://accounts.accesscontrol.windows.net/metadata/json/1/" -IsTrustBroker -Name "ACS"
    Add a new result source
    To get search results from SharePoint Online we have to add a new result source. Run the following script in a PowerShell ISE session on your SharePoint 2013 on-premise server. Don't forget to update the settings region
    if(-not (Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue)){Add-PSSnapin "Microsoft.SharePoint.PowerShell"}
    # region settings
    $RemoteSharePointUrl = "http://[example].sharepoint.com"
    $ResultSourceName = "SharePoint Online"
    $QueryTransform = "{searchTerms}"
    $Provier = "SharePoint-Remoteanbieter"
    # region settings end
    $SPEnterpriseSearchServiceApplication = Get-SPEnterpriseSearchServiceApplication
    $FederationManager = New-Object Microsoft.Office.Server.Search.Administration.Query.FederationManager($SPEnterpriseSearchServiceApplication)
    $SPEnterpriseSearchOwner = Get-SPEnterpriseSearchOwner -Level Ssa
    $ResultSource = $FederationManager.GetSourceByName($ResultSourceName, $SPEnterpriseSearchOwner)
    if(!$ResultSource){
    Write-Host "Result source does not exist. Creating..."
    $ResultSource = $FederationManager.CreateSource($SPEnterpriseSearchOwner)
    $ResultSource.Name = $ResultSourceName
    $ResultSource.ProviderId = $FederationManager.ListProviders()[$Provier].Id
    $ResultSource.ConnectionUrlTemplate = $RemoteSharePointUrl
    $ResultSource.CreateQueryTransform($QueryTransform)
    $ResultSource.Commit()
    Add a new query rule
    In the Search Administration click on Query Rules
    Select Local SharePoint as Result Source
    Click New Query Rule
    Enter a Rule name f.g. Search results from SharePoint Online
    Expand the Context section
    Under Query is performed on these sources click on Add Source
    Select your SharePoint Online result source
    In the Query Conditions section click on Remove Condition
    In the Actions section click on Add Result Block
    As title enter Results for "{subjectTerms}" from SharePoint Online
    In the Search this Source dropdown select your SharePoint Online result source
    Select 3 in the Items dropdown
    Expand the Settings section and select "More" link goes to the following URL
    In the box below enter this Url https://[example].sharepoint.com/search/pages/results.aspx?k={subjectTerms}
    Select This block is always shown above core results and click the OK button
    Save the new query rule

    Hi  Janik,
    According to your description, my understanding is that you want to display hybrid search results in SharePoint Server 2013.
    For achieving your demand, please have a look at the article:
    http://technet.microsoft.com/en-us/library/dn197173(v=office.15).aspx
    If you are using single sign-on (SSO) authentication, it is important to test hybrid Search functionality by using federated user accounts. Native Office 365 user accounts and Active Directory Domain Services
    (AD DS) accounts that are not federated are not recognized by both directory services. Therefore, they cannot authenticate using SSO, and cannot be granted permissions to resources in both deployments. For more information, see Accounts
    needed for hybrid configuration and testing.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Online Quiz

    Hello,
    Ive made an online quiz. There is a timer to time out the questiona and go to the next question after 30secs, but it does not go to the next question automatically. The code is here:
    <%@ Import Namespace="System.Xml" %>
    <script language="VB" runat="server">
    'Relative file path to XML data
    Dim strXmlFilePath as String = Server.MapPath("quiz.xml")
    Dim xDoc as XmlDocument = New XmlDocument()
    Dim intTotalQuestion as Integer
    Dim intQuestionNo as Integer = 1
    Dim intScore as Integer = 0
    Dim arrAnswerHistory as new ArrayList()
    Sub Page_Load(src as Object, e as EventArgs)
              'Load xml data
              xDoc.Load(strXmlFilePath)
              'Start a new quiz?
              If Not Page.IsPostBack Then
                        'Yes! Count total question
                        intTotalQuestion = xDoc.SelectNodes("/quiz/mchoice").Count
                        'Record start time
                        ViewState("StartTime") = DateTime.Now
                        ShowQuestion(intQuestionNo)
              End If
    End Sub
    Sub btnSubmit_Click(src as Object, e as EventArgs)
              'Retrieve essential variables from state bag
              intTotalQuestion = ViewState("TotalQuestion")
              intQuestionNo = ViewState("QuestionNo")
              intScore = ViewState("Score")
              arrAnswerHistory = ViewState("AnswerHistory")
              'Correct answer?
              If rblAnswer.SelectedItem.Value = ViewState("CorrectAnswer") Then
                        intScore += 1
                        arrAnswerHistory.Add(0)
              Else
                        arrAnswerHistory.Add(rblAnswer.SelectedItem.Value)
              End If
              'End of quiz?
              If intQuestionNo=intTotalQuestion Then
                        'Yes! Show the result...
                        QuizScreen.Visible = False
                        ResultScreen.Visible = True
                        'Render result screen
                        ShowResult()
              Else
                        'Not yet! Show another question...
                        QuizScreen.Visible = True
                        ResultScreen.Visible = False
                        intQuestionNo += 1
                        'Render next question
                        ShowQuestion(intQuestionNo)
              End If
    End Sub
    Sub ShowQuestion(intQuestionNo as Integer)
              Dim xNodeList as XmlNodeList
              Dim xNodeAttr as Object
              Dim strXPath as String
              Dim i as Integer
              Dim tsTimeSpent as TimeSpan
              strXPath = "/quiz/mchoice[" & intQuestionNo.ToString() & "]"
              'Extract question
              lblQuestion.Text = intQuestionNo.ToString() & ". " & xDoc.SelectSingleNode(strXPath & "/question").InnerXml
              'Extract answers
              xNodeList = xDoc.SelectNodes(strXPath & "/answer")
              'Clear previous listitems
              rblAnswer.Items.Clear
              For i = 0 to xNodeList.Count-1
                        'Add item to radiobuttonlist
                        rblAnswer.Items.Add(new ListItem(xNodeList.Item(i).InnerText, i+1))
                        'Extract correct answer
                        xNodeAttr = xNodeList.Item(i).Attributes.ItemOf("correct")
                        If not xNodeAttr is Nothing Then
                                  If xNodeAttr.Value = "yes" Then
                                            ViewState("CorrectAnswer") = i+1
                                  End If
                        End If
              Next
              'Output Total Question
              lblTotalQuestion.Text = intTotalQuestion
              'Output Time Spent
              tsTimeSpent = DateTime.Now.Subtract(ViewState("StartTime"))
              lblTimeSpent.Text = tsTimeSpent.Minutes.ToString() & ":" & tsTimeSpent.Seconds.ToString()
              'Store essential data to viewstate
              ViewState("TotalQuestion") = intTotalQuestion
              ViewState("Score") = intScore
              ViewState("QuestionNo") = intQuestionNo
              ViewState("AnswerHistory") = arrAnswerHistory
    End Sub
    Sub ShowResult()
              Dim strResult as String
              Dim intCompetency as Integer
              Dim i as Integer
              Dim strXPath as String
              Dim tsTimeSpent as TimeSpan
              tsTimeSpent = DateTime.Now.Subtract(ViewState("StartTime"))
              strResult  = "<center>"
              strResult += "<h3>Quiz Result</h3>"
              strResult += "<p>Points: " & intScore.ToString() & " of " & intTotalQuestion.ToString()
              strResult += "<p>Your Competency: " & Int(intScore/intTotalQuestion*100).ToString() & "%"
              strResult += "</center>"
              strResult += "<h3>Quiz Breakdown:</h3>"
              For i = 1 to intTotalQuestion
                        strXPath = "/quiz/mchoice[" & i.ToString() & "]"
                        strResult += "<b>" & i.ToString() & ". " & xDoc.SelectNodes(strXPath & "/question").Item(0).InnerXml & "</b><br>"
                        If arrAnswerHistory.Item(i-1)=0 Then
                                  strResult += "<font color=""green""><b>Correct</b></font><br><br>"
                        Else
                                  strResult += "<b>You answered:</b> " & xDoc.SelectNodes(strXPath & "/answer[" & arrAnswerHistory.Item(i-1).ToString() & "]").Item(0).InnerXml & "<br>"
                                  strResult += "<font color=""red""><b>Incorrect</b></font><br><br>"
                        End If
              Next
              lblResult.Text = strResult
    End Sub
    </script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
              $(".chp1").click(function(){
              $(".quizlist1").slideToggle("slow");
              $(".chp2").click(function(){
              $(".quizlist2").slideToggle("slow");
        $(".chp3").click(function(){
              $(".quizlist3").slideToggle("slow");
        $(".chp4").click(function(){
              $(".quizlist4").slideToggle("slow");
        $(".chp5").click(function(){
              $(".quizlist5").slideToggle("slow");
        $(".chp6").click(function(){
              $(".quizlist6").slideToggle("slow");
        $(".chp7").click(function(){
              $(".quizlist7").slideToggle("slow");
        $(".chp8").click(function(){
              $(".quizlist8").slideToggle("slow");
    </script>
    <script type="text/javascript">
    var sec = 30;   // set the seconds
    var min = 00;   // set the minutes
    function countDown() {
      sec--;
      if (sec == -01) {
        sec = 59;
        min = min - 1;
      } else {
       min = min;
    if (sec<=9) { sec = "0" + sec; }
      time = (min<=9 ? "0" + min : min) + " min and " + sec + " sec ";
    if (document.getElementById) { theTime.innerHTML = time; }
      SD=window.setTimeout("countDown();", 1000);
    if (min == '00' && sec == '00') { sec = "00"; window.clearTimeout(SD); }
    function addLoadEvent(func) {
      var oldonload = window.onload;
      if (typeof window.onload != 'function') {
        window.onload = func;
      } else {
        window.onload = function() {
          if (oldonload) {
            oldonload();
          func();
    addLoadEvent(function() {
      countDown();
    </script>
    <html>
    <head>
    <title>Dhruv Asher | Chemistry Quiz</title>
    <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
    <link rel="stylesheet" type="text/css" href="quiz.css">
    </head>
    <body>
    <div align="center" style="background-color:#333">
      <div class="wrapper">
        <div class="innerwrapper">
          <div class="header">
          <a href="http://crazypencilmedia.com/da.html"><img src="images/DA.png" style="width:264px; height:75px; float:left"></a>
          <a id="home" href="/da.html" title="Home"><span></span></a>
          <a id="about" href="#" title="About Me"><span></span></a>
          <a id="Courses" href="/courses.html" title="Courses Offered"><span></span></a>
          <a id="Forum" href="#" title="Forums"><span></span></a>
          <a id="Gallery" href="/images.html" title="Image/Video Gallery"><span></span></a>
          <a id="Students" href="#" title="Students Page"><span></span></a>
          <a id="contact" href="#" title="contact Page"><span></span></a>
          </div>
          <div class="container">
            <div class="quiz"> <span id="QuizScreen" runat="server" style="text-align:center">
              <form runat="server">
                <div class="headingq">CHEMISTRY QUIZ</div>
                <br/>
                <div class="containerq">
                <div class="instructions">Instructions: <br />
                  1. There are 30 questions for 30 marks.<br />
                  2. You have 30 seconds for each question.<br />
                  3. After you have answered the question, please click on the next button to continue. <br />
                  4. Print out a copy of the marksheet for submission. <br />
                  <br />
                  Time Left: <span id="theTime" class="timeClass"></span><br /><br/>
                <asp:label id="lblQuestion" runat="server" />
                </b><br>
                <div style="padding-left:40px;">
                  <asp:radiobuttonlist
                   id="rblAnswer"
                         RepeatDirection="vertical"
                         TextAlign="right"
                         RepeatLayout="table"
                         runat="server" />
                  <br>
                  <asp:requiredfieldvalidator
                         ControlToValidate="rblAnswer"
                         ErrorMessage="Please pick an answer!"
                         runat="server" />
                  <br>
                </div>
                <div class="submit">
                  <asp:button id="btnSubmit" class="button" text="  Next  " onClick="btnSubmit_Click" runat="server" />
                </div>
                <div class="footerq">Total No. of questions:
                  <asp:label id="lblTotalQuestion" runat="server" />
                         Time spent:
                  <asp:label id="lblTimeSpent" runat="server" />
                </div>
              </form>
              </span> <span id="ResultScreen" runat="server">
              <asp:label id="lblResult" runat="server" />
              </span> </div>
          </div>
      </div>
    </div>
    <div class="footer">
      <div style="float:left; font-size:15px; color:#FFF; margin-top:10px; margin-left:5px;"><img src="images/copy.png" width="10px" height="10px;"> 2011. Dhruv Asher. All Rights Reserved.</div>
      <div style="float:right; font-size:15px; color:#FFF; margin-top:10px; margin-right:5px;">Site Maintained by <a href="http://www.crazypencilmedia.com">Crazy Pencil Media</a></div>
    </div>
    </div>
    </div>
    </div>
    </body>
    </html>
    Please Help

    You would probably do much better posting this question on the Dreamweaver Applications Development forum -
    http://forums.adobe.com/community/dreamweaver/dreamweaver_development

  • How do I overcome the Failed Downloads for Instant Movies from the Adobe Server?

    I have a Windows 8.1 PC , Premiere Elements ver. 12, and I have a  dedicated DSL for computer only. In my best efforts, even when disabling  McAfee completely, I have had almost 4 days of frustration trying to  download an Instant Movie from the online content server. At times the  DL works, slowly, then it pauses, sometimes the DL reverses the count  and I lose 10mb and it resumes (I have never seen that before). Most  frustrating is when the DL is nearly complete and the message pops up  that I need to check my connection as the download has failed. I have  1.6TB disc space, and no restrictions in place at my end. I tried from 2  of the PCs, both Win 8.1. I have tried at all hours of the day for  traffic on the server, but that doesn't seem to matter. I have attempted the Secret Agent file DL at best 10x.  Is there a  setting I need to change to receive this content, or go to a different  site where I can directly access this content?
    I have purchased Three PE 12 programs for 3 replacement PCs and I need some real direction.
    Thank you, Jerry

    Jerry W B
    There will be those that report Content download of a few minutes. Although we are happy for them, many have found that this is not usually the case. Download of the Premiere Elements 11 and 12 Content download is often a slow process which demands a lot of patience whether the download be "Download Now" or "Download All".  Just two of the factors in this situation are the Internet Speed/Status and the status of the Adobe Server. Many times it is time of the day.
    http://www.atr935.blogspot.com/2013/05/pe11-no-content-disc-content-downloads.html
    http://atr935.blogspot.com/2013/12/pe12-content-download-considerations.html
    I have DSL Service on the east coast of the USA. It is now about 6 pm Saturday February 22, 2014.
    I right clicked the blue ban at the top right corner of the Instant Movie thumbnail for the Secret Agent theme. I selected Download Now to download just that one Instant Movie theme.
    a. The file size was given as 75.8 MB, not 118.7 MB. It took 11 minutes and 19 seconds to download that Instant Movie.
    I checked the download on two different computers, one Windows 7 64 bit and the other Windows 8.1 64 bit. The Instant Movie Secret Agent had a file size of 75.8 MB according to the download pop up in the opened project.
    b. If you are talking days for this download, then I would first check with your Internet provider. There is no other place for these downloads except from within the program. And, when you do get them, I would encourage you to save them as per my blog posts on this topic to avoid having to go through an labored downloading processes again.
    Do you find the downloading of Content to be the same for all the other categories requiring this type of download, not just Instant Movies?
    Please review and update us on your progress.
    Thank you.
    ATR
    Add On...Although you did say that you disabled McAfee, be advised that McAfee's recent update(s) have created some serious problems for Premiere Elements. So, I would re-evaluate McAfee's possible role in all this along with the firewalls settings.

  • Show results from the database to html tables?

    Hi,
    I am a PHP programmer and did a successful CMS program for a company. Now I have another project which is a web based system.
    I basically know how to do it and finish it in PHP.. but I am trying to do it using J2EE.. I am trying to learn J2EE now since I have been programming
    on J2SE for quite sometime..
    I am trying to show the results from a MySQL database on a table on J2EE but I am having hard time doing that. I am trying to research online and reading books but with no luck I can't find any resources on how to do that..If you guys can lead me into a resource where I can read how to do it? or just give any ideas on how to do it correctly I'll try to read and learn I will very much appreciate it.. here's my coding please look at it. Thank you very much
    I want to make it like this in a html table:
    userid username activated task
    1 alvin y delete(this will be a link to delete the user)
    Right now this is what I was able to do so far:
    Userid username activated task
    1
    alvin
    y
    Here are my codes... I am not even sure if I am doing it in the correct way...
    User.java
    mport java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.ArrayList;
    import java.util.List;
    public class Users {
    public List getUsers(){
    List names = new ArrayList();
    try{
    Connection con = DBConnect.getConnection();
    Statement stmt = con.createStatement();
    String sql = "select * from users";
    ResultSet rs = stmt.executeQuery(sql);
    while(rs.next())
    String userid = rs.getString("user_id");
    String usernames = rs.getString("user_name");
    String password= rs.getString("password");
    String activated= rs.getString("activated");
    names.add(userid);
    names.add(usernames);
    names.add(password);
    names.add(activated);
    catch(SQLException e)
    System.out.print(e);
    catch(Exception e)
    System.out.print(e);
    return names;
    UserServlet.java
    import java.io.IOException;
    import java.util.List;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class UsersServ extends HttpServlet {
    private static final long serialVersionUID = 1L;
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    Users be =new Users();
    List result = be.getUsers();
    request.setAttribute("user_results", result);
    RequestDispatcher view = request.getRequestDispatcher("manage_users1.jsp");
    view.forward(request, response);
    manage_users1.jsp
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@page import = "java.util.*" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <%
    List results = (List)request.getAttribute("user_results");
    Iterator it = results.iterator();
    out.print("<table border = 1>");
    out.print("<th>");
    out.print("userid");
    out.print("</th>");
    out.print("<th>");
    out.print("username");;
    out.print("</th>");
    while(it.hasNext()){
    out.print("<tr><td> " + it.next()+"</td></tr>");
    out.print("</table>");
    %>
    </body>
    </html>

    I suggest:
    1: you use this:
    e.printStackTrace()
    instead of this:
    System.out.print(e);
    so it will tell you what line it crashed on.
    2: In the code below,here is how you mix coding html tags and java scriptlets
    (you should never have to use out.print()):. In a later project, you can learn how to use JSTL
    instead of java scriplets (I suggest using java scriptlets for now until you have more JSP experience).
    FROM:
    <html>
    <%
    //some java code goes here
    out.print("<th>");
    //some more java code goes here
    out.print("<tr>");
    %>
    TO:
    <html>
    <% //some java code goes here%>
    <th>
    <%//some more java code goes here%>
    <tr>
    3: Put a lot of System.println() statements in your *.java classes to verify what its doing (you can learn how to use a debugger later).
    4: I highly recommend reading a book on JSP/servlets cover to cover.
    Here's a simple MVC design approach I previously posted:
    http://forums.sun.com/thread.jspa?messageID=10786901

  • Stoping "Plesae Select" List/Menu Results from coming through

    Hi there, we have several list/menu's on our website form and
    want to know if theres a way of stopping all the "please select"
    results from coming through?
    "please select" comes through because the user hasent
    selected a result in the list menu.
    Cheers
    Malhyp

    MalRom wrote:
    > Hi there, we have several list/menu's on our website
    form and want to know if
    > theres a way of stopping all the "please select" results
    from coming through?
    >
    > "please select" comes through because the user hasent
    selected a result in the
    > list menu.
    As well as what Gary has suggested, you should always
    validate the input
    being submitted via a form. This can be done client-side with
    Javascript, or server-side with whatever language is
    available. It
    sounds like you can't edit the CGI which processes the form
    data and
    sends it, so do as Gary suggested, or use some client-side
    form
    validation. There are loads of examples online if you google
    for
    "javascript form validation"
    Dooza
    Posting Guidelines
    http://www.adobe.com/support/forums/guidelines.html
    How To Ask Smart Questions
    http://www.catb.org/esr/faqs/smart-questions.html

  • Quiz variables show wrong result on multiple quiz attempts

    Hi everbody
    cp4: I have a quiz with certificate at the end of my project. On the certificate the result is shown with the help of the variable cpInfoPercentage. The user has a maximum of 3 attempts to pass the quiz. Now, when he needs more than one attempt, the variable shows the sum of the results from each attempt. The same is true for the variable cpQuizInfoPointssored.
    Has anyone made the same experience and knows a way arount it?
    Thanks for your help.
    Petra

    I'm just bumping this up because I am having a similar problem. cpInfoPercentage variable is not resetting on multiple quiz attempts, even though quiz results screen is showing correct score and pass/fail message. Is there a way to reset this variable, or some other workaround?  THanks.

  • MY envy 5330e has stopped printing anything from online sources.

    MY envy 5330e has stopped printing anything from online sources but will print from on board documents or pictures.

    Hey @youngfmly,
    Because your HP ENVY 5530 e-All-in-One Printer is producing blank prints from three computers when printing from the the internet I'm wondering if there may actually be a hardware ink system issue occuring. I understand that this may sound odd as everything else appears to print fine. However, when printing from your computers colour ink is used to enrich the black ink when printing in certain programs. Primarily when the computer 'sends' the print job to the printer as an image file. Therefore, just to ensure that your printers ink system is functioning properly, I am going to have you print a standalone Print Quality Report.
    How to Print the Quality Report:
    Load plain white paper in the paper tray.
    On the printer control panel, touch the Settings icon (), and then touch Tools. The Tools Menu displays.
    Touch Print Quality Report. The printer prints the test page.
    If this report prints perfectly: Than the issue that you're experiencing is not related to the printer. Rather, there is likely a setting that still  needs to be checked under Google Chrome. If your modem/router was causing this issue all prints would be affected.
    If this report prints with quality defects or missing colours: Than the Google Chrome printing issue that you're experiencing is being caused by your printer. To resolve this print system issue can I please have you click here. Once the support document opens please run through Solution six, Solution seven, and Solution eight. This includes any sub-steps under the listed Solutions.
    Please let me know the result of printing this standalone Quality Report. I look forward to hearing from you!
    X-23
    I work on behalf of HP
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    Click the "Kudos, Thumbs Up" on the right to say "Thanks" for helping!

  • Highlight correct answer in online Quiz

    If this shows up twice my apologies but it looked like my post was not going through.
    I am putting together an online quiz in FrontPage using JavaScript to calculate the score. There is a button at the end of the quiz that invokes the JavaScript that will calculate the score. This works great. But, I would like it to also highlight the correct answer for each question. The following is the if statement used in the javascript to calculate the score:
    if(document.quizform.Q1.checked) { score += parseInt(document.quizform.Q1[i].value);}
    Is there something I could add to this statement to also have it highlight the text of the answer for the question? Any help will be greatly appreciated. TIA!

    I noticed a few weeks ago that the first result for "Java" on http://www.googlism.com (which is currently down) is:
    Java is not Javascript.It can be seen in Google's cache of the site.

  • HT3228 Why is it that when I delete an email message from an account on my iPhone it instantly disappears from the same email account on my wife's iPhone?

    Why is it that when I delete an email message from an account on my iPhone it instantly disappears from the same email account on my wife's iPhone? We both have iOS7 and have imap email accounts.

    not all mail providers sync the send mail part of the mail box
    you can try to contact yahoo if this is the case with them

  • How to get save result from EXECUTE from a dynamic SQL query in another table?

    Hi everyone, 
    I have this query:
    declare @query varchar(max) = ''
    declare @par varchar(10)
    SELECT @par = col1 FROM Set
    declare @region varchar(50)
    SELECT @region = Region FROM Customer
    declare @key int
    SELECT @key = CustomerKey FROM Customer
    SET @query = 'SELECT CustomerKey FROM Customer where ' + @par + ' = '+ @key+ ' '
    EXECUTE (@query)
    With this query I want get col1 from SET and compare it to the column Region from Customer. I would like to get the matching CustomerKey for it.
    After execution it says commands are executed successfully. But I want to save the result from @query in another table. I looked it up and most people say to use sp_executesql. I tried a few constructions as sampled and I would always get this error: 
    Msg 214, Level 16, State 2, Procedure sp_executesql, Line 12
    Procedure expects parameter '@statement' of type 'ntext/nchar/nvarchar'.
    So the output should be a list of CustomerKeys in another table.
    How can I save the results from EXECUTE into a variable? Then I assume I can INSERT INTO - SELECT in another table. 
    Thanks

    CREATE TABLE Customer
    (CustomerKey INT , Name NVARCHAR(100));
    GO
    INSERT dbo.Customer
    VALUES ( 1, N'Sam' )
    GO
    DECLARE @query nvarchar(max) = ''
    declare @par varchar(10) = 'Name',
    @key varchar(10) = 'Sam'
    CREATE TABLE #temp ( CustomerKey INT );
    SET @query =
    insert #temp
    SELECT CustomerKey
    FROM Customer
    where ' + @par + ' = '''+ @key+ ''' '
    PRINT @query
    EXEC sp_executesql @query
    SELECT *
    FROM #temp
    DROP TABLE #temp;
    DROP TABLE dbo.Customer
    Cheers,
    Saeid Hasani
    Database Consultant
    Please feel free to contact me at [email protected] as well as on Twitter and Facebook.
    [My Writings on TechNet Wiki] [T-SQL Blog] [Curah!]
    [Twitter] [Facebook] [Email]

  • Populate report page based on results from stored procedure

    Is it possible to populate a report page in APEX based on the results from a stored procedure? If so, how do I do it? Do I write a stored procedure with a ref cursor as out parameter?

    I would use a stored procedure to return the values for a form but not for a report. For a
    report, I would use a pipelined function. See an example here:
    http://htmldb.oracle.com/pls/otn/f?p=31517:146
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • OBIEE Report - filter based on the result from another analysis

    Hi,
    I am using OBIEE 11g,
    I am trying to use a filter which is based on the result from another analysis. I have an analysis A which is as table 1, and I want to filter the respective columns of analysis B (Table B) based on analysis A to remove the duplicates for march 01, 02, and 07 , but it is not working properly. I took a max of start and end time when I created analysis A. Please let me know if I did anything wrong. thanks.
    Table 1
    Employee Number
    Date
    IN
    Out
    Start Time
    End Time
    xxxxxxx
    2015-02-26
    9:00
    13:00
    00:00:00
    00:00:00
    2015-02-27
    12:00
    18:00
    00:00:00
    00:00:00
    2015-02-28
    8:00
    14:00
    00:00:00
    00:00:00
    2015-03-01
    14:00
    20:00
    14:00:00
    20:00:00
    2015-03-02
    16:00
    20:00
    16:00:00
    20:00:00
    2015-03-07
    14:06
    20:02
    14:00:00
    20:00:00
    2015-03-11
    16:00
    20:00
    16:00:00
    20:00:00
    2015-03-14
    8:00
    14:00
    00:00:00
    00:00:00
    2015-03-25
    14:00
    20:00
    16:00:00
    20:00:00
    Table 2
    Employee Number
    Date
    IN
    Out
    Start Time
    End Time
    Hours
    xxxxxxx
    2015-02-26
    9:00
    13:00
    00:00:00
    00:00:00
    -3
    2015-02-27
    12:00
    18:00
    00:00:00
    00:00:00
    6
    2015-02-28
    8:00
    14:00
    00:00:00
    00:00:00
    6
    2015-03-01
    14:00
    20:00
    00:00:00
    00:00:00
    6
    14:00:00
    20:00:00
    6
    2015-03-02
    16:00
    20:00
    00:00:00
    00:00:00
    4
    16:00:00
    20:00:00
    4
    2015-03-07
    14:06
    20:02
    00:00:00
    00:00:00
    6
    14:00:00
    20:00:00
    6
    2015-03-11
    16:00
    20:00
    16:00:00
    20:00:00
    4
    2015-03-14
    8:00
    14:00
    00:00:00
    00:00:00
    6
    2015-03-25
    14:00
    20:00
    16:00:00
    20:00:00
    4

    Why avg here?
    What columns you want to show in the report?
    for a employee for given date if he have 2 rows then you may sum up hours right?
    Employee Number
    Date
    IN
    Out
    Start Time
    End Time
    Hours

  • How to compare result from sql query with data writen in html input tag?

    how to compare result
    from sql query with data
    writen in html input tag?
    I need to compare
    user and password in html form
    with all user and password in database
    how to do this?
    or put the resulr from sql query
    in array
    please help me?

    Hi dejani
    first get the user name and password enter by the user
    using
    String sUsername=request.getParameter("name of the textfield");
    String sPassword=request.getParameter("name of the textfield");
    after executeQuery() statement
    int exist=0;
    while(rs.next())
    String sUserId= rs.getString("username");
    String sPass_wd= rs.getString("password");
    if(sUserId.equals(sUsername) && sPass_wd.equals(sPassword))
    exist=1;
    if(exist==1)
    out.println("user exist");
    else
    out.println("not exist");

Maybe you are looking for