Register page problem.

I am so confused, I want to add some anti-spam security to my upcoming register page but something is really wrong.
Note that my server is Coldfusion MX7 (i can not afford better) and because of that i can not use
cfimage(captcha).
This is what i have:
<cfset strLowerCaseAlpha = "abcdefghijklmnopqrstuvwxyz">
<cfset strUpperCaseAlpha = UCase( strLowerCaseAlpha )>
<cfset strNumbers = "0123456789">
<cfset strAllValidChars = (
    strLowerCaseAlpha &
    strUpperCaseAlpha &
    strNumbers
    )>
<cfset arrPassword = ArrayNew( 1 )>
<cfset arrPassword[ 1 ] = Mid(
    strNumbers,
    RandRange( 1, Len( strNumbers ) ),
    1
    )>
<cfset arrPassword[ 2 ] = Mid(
    strLowerCaseAlpha,
    RandRange( 1, Len( strLowerCaseAlpha ) ),
    1
    )>
<cfset arrPassword[ 3 ] = Mid(
    strUpperCaseAlpha,
    RandRange( 1, Len( strUpperCaseAlpha ) ),
    1
    )>
<cfloop
    index="intChar"
    from="#(ArrayLen( arrPassword ) + 1)#"
    to="8"
    step="1">
    <cfset arrPassword[ intChar ] = Mid(
        strAllValidChars,
        RandRange( 1, Len( strAllValidChars ) ),
        1
        )>
</cfloop>
<cfset strPassword = ArrayToList(
    arrPassword,
    )>
<cfif IsDefined("FORM.spamcode")>
    <cfif form.spamcode neq strPassword >
    not equal
    <cfelse>
   finally working
</cfif>
</cfif>
                 <cfif isdefined ("strPassword")>
                 <cfoutput>#strPassword#</cfoutput>
                 </cfif>
<form action="" method="post">
  <label>
    <input type="text" name="spamcode" id="spamcode" />
  </label>
</form>
this is just testing code but it is somehow messed up.
every time when i click on the submit button i get not equal!
I also need to add when i set up strPassword manualy instead of ArrayToList, for example
<cfset strPassword=test413> and then insert in form test413 and compare it everything is fine. You can copy/paste this code to test it. Any ideas please?

I get the feeling you could create the password more efficiently. But that's another matter. Your code does work.
I would generate the captcha word in a function. Then  it will be run only when necessary. Something like this:
<cffunction name="getPassword" returntype="string">
<cfset var strPassword = "">
<cfset var strLowerCaseAlpha = "abcdefghijklmnopqrstuvwxyz">
<cfset var strUpperCaseAlpha = UCase( strLowerCaseAlpha )>
<cfset var strNumbers = "0123456789">
<cfset var strAllValidChars = (
    strLowerCaseAlpha &
    strUpperCaseAlpha &
    strNumbers
    )>
<cfset var arrPassword = ArrayNew( 1 )>
<cfset arrPassword[ 1 ] = Mid(
    strNumbers,
    RandRange( 1, Len( strNumbers ) ),
    1
    )>
<cfset arrPassword[ 2 ] = Mid(
    strLowerCaseAlpha,
    RandRange( 1, Len( strLowerCaseAlpha ) ),
    1
    )>
<cfset arrPassword[ 3 ] = Mid(
    strUpperCaseAlpha,
    RandRange( 1, Len( strUpperCaseAlpha ) ),
    1
    )>
<cfloop index="intChar" from="#(ArrayLen( arrPassword ) + 1)#" to="8"  step="1">
    <cfset arrPassword[ intChar ] = Mid(
        strAllValidChars,
        RandRange( 1, Len( strAllValidChars ) ),
        1
        )>
</cfloop>
<cfset strPassword = ArrayToList(arrPassword,"")>
<cfreturn strPassword>
</cffunction>
<!--- Set the default captcha string, if none yet exists --->
<cfparam name="session.current_captcha" default="#getPassword()#" type="string">
<cfif IsDefined("FORM.spamcode")>
    <!--- compare() makes case-sensitive comparison of two strings, character for character --->
    <cfif compare(form.spamcode, session.current_captcha) eq 0>
         proceed: user entered the correct code
    <cfelse>
           stop spam: user entered the wrong code
    </cfif>
    <!--- Create new captcha every time user submits form --->
    <cfset session.current_captcha = getPassword()>
</cfif>
<cfoutput>
<form action="#cgi.SCRIPT_NAME#" method="post">
    <input type="text" name="spamcode" id="spamcode"><span><em>enter this exact code:</em> <strong>#session.current_captcha#</strong></span>
    <br>
    <input type="submit" name="sbmt" id="sbmt" value="Test it!">
</form>
</cfoutput>

Similar Messages

  • Error on accessing the OIM Self Register page.

    Hi,
    I had modified the 'Self Register' Request template on the Admin Console UI to include a new custom attribute.
    Since then, I have removed the custom attribute from the User Configuration and uploaded a new SelfCreateUserDataset.xml.
    On accessing the self register page, it throws the an error with the following message: -
    "Invalid restriction specified for the attribute Role in template Self-Register User. Corresponding Attribute or Attribute Reference not found in the Request Data Set."
    Kindly let me know how to restore the template in UI to the factory setting.
    Thank you,
    Bhaskar

    -

  • Insert and then show the result and refresh page problem

    hi all,
    I collect the form value and put them into db, and then display this student 's inform out from db including the one we just submit, first I do it on this way
      insertpayment(UserId, FeeType, DuteDate, OfficerReason, OtherReason, CompleteDate,
                            InterviewDate, ApprovalDate,PaymentYear);
                   studentRecords= getFound(UserId);
                     userSession.setAttribute("studentRecords", studentRecords);
                     RequestDispatcher disp;
                   // disp = getServletContext().getRequestDispatcher("/WEB-INF/jsp/   studentRecords= getFound(UserId);");
                     disp = getServletContext().getRequestDispatcher("/showPayment");
                    disp.forward(req, res); then whenever I refresh my showRecords.jsp" I call the insert function. THAT IS HORRIABLE.
    I try to move the studentRecords= getFound(UserId); to my showPayment servlet and then forward the result to showRecords.jsp, but I alwarys get error
    PWC4011: Unable to set request character encoding to UTF-8 from context /report, because request parameters have already been read, or ServletRequest.getReader() has already been called
    How should I handle this kind of problem??

    Karan, thank you for the link, i read a few articles, I only get the sample part part use res.sendRedirect("/myfolder/showPayment"); in my insert servlet and use forward to display the page
    userSession.setAttribute("studentRecords", studentRecords);
                  RequestDispatcher disp;
                  disp = getServletContext().getRequestDispatcher("/WEB-INF/jsp/secure/admin/showRecords.jsp");
                   disp.forward(req, res);   
    this solute the refresh page problem, but bring the new problem I can't use the following way to disable the back button. not the perter solution
    maybe I did not understand PRC more advice!!
    response.setHeader("Cache-Control","no-cache"); //Forces caches to obtain a new copy of the page from the origin server
    response.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
    response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
    response.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility

  • Forum Module, How to link to the forum register page?

    Simple qeustion:
    Is there a way to just link to the forum register page?
    if so how?!
    Btw where can you find the bc docs? im really getting annoyed because i cant figure out just that simple stuff.
    - Rob

    Hi rob, If you go to the doc section of these forums:
    http://forums.adobe.com/community/business_catalyst/documents
    You not only got good stuff in there but if you look to the right there are the linkes to the BC knowledgebase and some good 3rd party resources from people like BC Gurus and Simpleflame.

  • I have 10 UiWebView to load different charts and maps on an iPad,using UIScrollView to scroll through each page, problem is on loading of each UiWebView my UiScrollView does not scroll smoothly to other pages horizontally,so how to make the scroll smooth?

    I have 8-10 UiWebView's  to load different charts and maps on an iPad, i am using UIScrollView to scroll through each page, problem is while loading of each UiWebView my UiScrollView does not scroll smoothly to other pages horizontally, my query is can i load UiWebView on background and how to make sure the scoll of pages is smooth, even though the loading of UiWebViews may take time.
    Note :i have tried disabled scrolling on webview, so when i scroll on the page  the scroll event will be of UiScrollView, so believe no conflict with UiWebView.
    also in ios 6 i read about suppressesIncrementalRendering = True but i want to support ios5, also as UiWebViews are said to be running on main thread by default, i suspect when loading of webViews and when user tries to scroll the page, the main thread is busy, but i want the scroll of the page to be smooth  even though the loading of UiWebViews may take time.

    You will probably get a faster and more accurate answer if
    you repost in the Developers Forum.

  • My solution for cannot turn page problem in ADE

    It seems this problem has been there for a while. I have this problem in ADE 2.0 and 3.0. I solve this problem on my computer today.
    This problem is not a "turnning page" problem but an UI refresh problem, if you turn page, close ADE and reopen it, you will find the page actually turnned,  I guess this problem occurs on a computer which have two display card. On my laptop, a NVIDIA, and an integrated. ADE works fine on NVIDIA and not on the integrated one.
    So Here is my solution: Tell ADE not running on the integrated display card but on NVIDIA. You can do so by using NVIDIA's control panel program. "manage 3D settings" -> "program setting" tab, add ADE, and tell it running on NVIDIA.

    System: Windows 7; graphics (onboard Motherboard) Intel(R) HD Graphics 4600 Properties.
    I have the same problem:
    ADE does not turn page *unless* I resize the ADE window after turning the page.  After resizing the ADE window, the page will turn.
    I don't have multiple displays.  I don't know how to adjust my display setting to facilitate ADE.  Still looking for a solution... If you find a solution or a better product, let us know.

  • IIS, Javascript, Signed Applet and ASP Blank Page Problem

    Hi,
    I'm having a problem using a Signed Applet in a site that runs in a IIS (Windows Server 2003).
    My aspx web page uses the applet to read my smart card and get information from it.
    This applet uses an auxiliar dll (stored in a second Signed Jar file) in order to read the information from my smart card.
    The way the solution is design:
    1) Aspx page is asked from server
    2) Internet Explorer recieve the page and asks the server for it content (images, applet, javascripts, etc)
    3) After this the JVM runs (console opens)
    4) After the Aspx page render fully a javascript register onload fires and call an applet method
    5) Applet receive the call and run the logic of the method:
         - reads the smart card;
         - calls Javascript function in order to fill aspx fields with information from smart card
         - calls Javascript function the simulates a click in a botton of aspx page (in order to call server side part sending data readed from smart card to server)
    5) The server makes some logic with the information receive and responds to client registering in aspx page a call to another Javascrit function
    6) The client received the asnwer from server and runs the Javascript function registered on step 5)
         This Javascript calls another method from applet and runs the following logic:
         - reads more information from smart card;
         - call javascript function in order to fill more fields of aspx page with the information readed
         - calls Javascript function the simulates a click in a botton of aspx page (in order to call server side part sending data readed from smart card to server)
    7) The server makes some logic and call another pages with no Applets
    8) Client asks for a second page with the same applet and we start with another logic express on steps 1);2);3),4);5) and then 7).
    This is all ok, until sometimes the server stop responding correcly for requests regarding this two pages with the Applet.
    When this happens the server just responds with a blank page.
         - with fiddler I can seer the request for the aspx page (that uses the applet)
         - but server responds with a blank html page
    The JVM doesn't fire.
    The IIS log don't show errors.
    The eventviewer doesn't show errors.
    The problem is solved with an IIS reset or a Application Pool reset.
    After a while the problem returns.
    This problem occours for other user in another machine, the server just stops responding correcly to request regarding pages with applets, the other pages still continue to work.
    If we disable Java Control Panel->Advanced->Java Plug-in->Enable the next-generation Java Plug-in the problem seend to stop, but we can't force all clients to disable this option right?
    Or there is a way to force the Applet to run with this option disabled?
    As anyone experience similar problem?
    Regards,
    OF

    This is all ok, until sometimes the server stop responding correcly for requests regarding this two pages with the Applet.
    When this happens the server just responds with a blank page.
    - with fiddler I can seer the request for the aspx page (that uses the applet)
    - but server responds with a blank html pageWell, if http requests look identical in case of success and failure (pay attention to cookies, etc) then it has to be something on the server side.
    It could be that server gets into this wrong state because of previous requests made by applet but it is hard to tell.
    I am not clear how old/new plugin can make a difference unless your applets run in the legacy mode (i.e. you are actually trying to reuse SAME instance of the applet when
    it is loaded next time).
    I'd start with
    1) carefully comparing good/bad sessions
    2) checking whether server will serve correct response to another client when it serves "bad" page for current client
    3) add debug statements to aspx - it is scripted page, may be some condition is not met and then it returns blank?
    4) record all http requests in one session until you get to "error" state and then use any http server testing tool to "replay" this set of requests.
    You should be able to get server into the same state without use of applet. Then you can try to tweak set of requests to see what makes a difference.

  • After Spry validation how to redirect to a "you have successfully register" page

    I am helping a friend set up a webpage for her business.  You can see the website here www.themessagetext.com.  I used a Spry validation for the phone number and the checkbox.  One the validation is verified, I want the user to be redirected to a page that says that they have successfully register.  Right now it takes you to an ugly page.  It looks like an error page, but it says that you have successfully register.
    I am using Internet Explorer 7.  I am also using CS4 Dreamweaver.  I am also usingSpryValidationCheckbox.css - version 0.4 - Spry Pre-Release 1.6.1 and SpryValidationTextField.css - version 0.4 - Spry Pre-Release 1.6.1
    I am new to web design.  So if you can be as specific as possible I would appreciate it.  I don't even know where in the code it tells the form after it is submitted to redirect to this certain page. 

    Sorry I did post the wrong code for the wrong page.  Here is the code for the right page.  The more I thought about it I figured it was a design problem.  Should I post it somewhere else since this form is for Spry.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>The Message Text</title>
    <style type="text/css">
    <!--
    body {
    margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
    padding: 0;
    text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
    color: #550459;
    background: #383737;
    font-family: "Times New Roman", Times, serif;
    .oneColElsCtr #container {
    width: 1024px;
    background: #FFFFFF;
    text-align: left; /* this overrides the text-align: center on the body element. */
    margin-top: 0px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 0px;
    height: 100%;
    .oneColElsCtr #mainContent {
    background-color: #FFF;
    height: 100%;
    color: #550459;
    font-size: 10px;
    font-weight: bold;
    .oneColElsCtr #container #mainContent table tr td #Table_01 tr td #web_registration_form #just_submit {
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    font-weight: bold;
    color: #550459;
    margin: 0px;
    padding: 0px;
    font-style: italic;
    height: 23px;
    vertical-align: baseline;
    border: 2px solid #999;
    background-color: #CCC;
    text-align: center;
    -->
    </style>
    <script src="SpryAssets/SpryValidationCheckbox.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    function MM_openBrWindow(theURL,winName,features) { //v2.0
      window.open(theURL,winName,features);
    //-->
    </script>
    <link href="SpryAssets/SpryValidationCheckbox.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    </head>
    <body class="oneColElsCtr">
    <div id="container">
      <div id="mainContent">
       <table id="Table_01" width="1024" height="869" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td colspan="11">
       <img src="images/websitenew.gif" width="1024" height="176" alt=""></td>
    </tr>
    <tr>
      <td colspan="3" rowspan="2">
       <img src="images/websitenew-03.gif" width="112" height="379" alt=""></td>
      <td colspan="2">
       <img src="images/websitenew_03.gif" width="38" height="19" alt=""></td>
      <td colspan="6" rowspan="2">
       <img src="images/websitenew-05.gif" width="874" height="379" alt=""></td>
    </tr>
    <tr>
      <td colspan="2">
       <img src="images/websitenew-06.gif" width="38" height="360" alt=""></td>
    </tr>
    <tr>
      <td rowspan="4">
       <img src="images/websitenew-07.gif" width="58" height="313" alt=""></td>
      <td colspan="3">
       <a href="contact_us.html">
        <img src="images/websitenew_07.gif" width="79" height="18" border="0" alt=""></a></td>
      <td colspan="2" rowspan="2">
       <img src="images/websitenew-09.gif" width="15" height="53" alt=""></td>
      <td>
       <a href="#">
        <img src="images/websitenew_09.gif" width="168" height="18" border="0" alt=""onclick="MM_openBrWindow('terms_and_conditions_pop_up.html','','width=400,height=60 0')"></a></td>
      <td rowspan="2">
       <img src="images/websitenew-11.gif" width="17" height="53" alt=""></td>
      <td>
       <a href="#">
        <img src="images/websitenew_11.gif" width="108" height="18" border="0" alt=""onclick="MM_openBrWindow('privacy_policy_pop_up.html','','scrollbars=yes,resizable= yes,width=400')"></a></td>
      <td colspan="2" rowspan="2">
       <img src="images/websitenew-13.gif" width="579" height="53" alt=""></td>
    </tr>
    <tr>
      <td colspan="3">
       <img src="images/websitenew-14.gif" width="79" height="35" alt=""></td>
      <td>
       <img src="images/websitenew-15.gif" width="168" height="35" alt=""></td>
      <td>
       <img src="images/websitenew-16.gif" width="108" height="35" alt=""></td>
    </tr>
    <tr>
      <td rowspan="2">
       <img src="images/websitenew-17.gif" width="2" height="260" alt=""></td>
      <td colspan="8" background="images/websitenew-18.gif" width="527" height="247" valign="top" alt="">
              <form action="http://platform.3cinteractive.com/web_registration.php " method="post" name="web_registration_form" id="web_registration_form" onsubmit="" >
       <input id="username" name="username" type="hidden" value="VGn5S7PDQkBwb7csFvX2JA=="/>
          <input id="password" name="password" type="hidden" value="ee7CQE1n8XALlcHYtpSV0Hm+lRNppZrVAe573Vysrq0="/>
          <input id="trigger_id" name="trigger_id" type="hidden" value="78354" />
          <span id="sprytextfield1">
             <input name="phone_number" id="phone_number" size="30"  />
             <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Must be 10 digits</span></span>
          <input id="just_submit" name="just_submit" type="submit"  value="Submit" />
    <br />
                        (Do Not Include Dashes)
                        <br />
                  <span id="sprycheckbox1">
                    <label>
                          <input type="checkbox" name="agre" id="agre" />
                        By selecting this box, I agree to <a href="#" onclick="MM_openBrWindow('terms_and_conditions_pop_up.html','','width=400,height=600')">t erms and conditions</a></label>
                        <span class="checkboxRequiredMsg">Please select box.</span></span>
                    </form>
            </td>
      <td rowspan="2">
       <img src="images/websitenew-19.gif" width="437" height="260" alt=""></td>
    </tr>
    <tr>
      <td colspan="8">
       <img src="images/websitenew-20.gif" width="527" height="13" alt=""></td>
    </tr>
    <tr>
      <td>
       <img src="images/spacer.gif" width="58" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="2" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="52" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="25" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="13" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="2" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="168" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="17" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="108" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="142" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="437" height="1" alt=""></td>
    </tr>
    </table></td>
          </tr>
        </table>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var sprycheckbox1 = new Spry.Widget.ValidationCheckbox("sprycheckbox1");
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "phone_number", {format:"phone_custom", pattern:"0000000000"});
    //-->
    </script>
    </body>
    </html>

  • Register Provider problem

    When I try to register the sample portlet I get the message below. Could someone please tell me why this is failing?
    Provider Creation Failure!
    PRODUCT: wwc
    DOMAIN: wwc
    SUB_DOMAIN: pro
    NAME: general
    CONTEXT: wwerr_api_provider_registry.register_provider
    Location: http://portalstudio.oracle.com/servlet/page?_pageid=70&_dad=ops&_schema=OPSTUDIO&_mode=3&p_action=finish&p_node_live=3

    The sample provider that we include on PortalStudio is: http://portalstudio.oracle.com/servlet/sample
    Since the "portalstudio.oracle.com" name is published to the Internet, it is able to be registered. Most of the problems that I've seen are related to this. We plan to fix the error messages coming out of the wizard to be more clear as to what is causing the problems.

  • HP K8600 default page problem

    I have a K8600dn connected via network.
    I have installed the latest drivers off HP web site on 5 different Macs, 2x MacPro, G5, 2x macmini and running either 10.5.5 or 10.4.12. I use only A4 sheets atm.
    Now for some reason it keeps defaulting to A4 banner in the page size. If you send a print to the printer it won't print, error saying no paper (guessing because it expects A4 banner). You have to manually set A4 in the print setup (you get 3 sub choices when you select A4. A4, A4 border less or A4 banner). Once set that job will print fine.
    The next job will go back to A4 Banner.
    I can't seem to fine a way to make just "A4" the default on this printer (no problems on other printers).
    If you go to Print and Fax it will say A4 but you don't see the extra sub menu option to select what type of A4 you want.
    All Macs do the same thing.
    I have tried 127.0.0.1:631 to see if I can change something in CUPs but nothing worked.
    Does any one know how I could set the page default for this printer to A4 and not A4 banner?
    Thx for any ideas.

    The size default is setup as a line entry in the PPD file. I "thought" that on 10.5 using the CUPS interface would make that change for you in the PPD (using the configure printer area).
    If you're sure you tried this already, then an alternative is to edit the PPD manually using a text-only editor. The PPDs for currently-Added printers (printers in the printer list) are found in /etc/cups/ppd. The change is easy to see and make. As long as you save a backup for safety, making changes to the PPDs shouldn't be dangerous in any way. You need to restart CUPS or the computer for the change to register.
    Let us know how it goes.

  • Redirect jsp page problem

              I have problem when I want to redirect a page, inputparam2test.jsp back to the perious
              page, inputparam1test.jsp. Everything works until I
              add a "if" statement in the inputparam1test.jsp.
              The error is "Error 500--Internal Server Error".
              Can anybody help me out? Thanks a lot!
              inputparam1test.jsp:
              <html>
              <head>
              <title>create a patameter input form</title>
              </head>
              <body>
              <%!
              String dataset;
              String modeltype;
              %>
              <%
              dataset = request.getParameter("dataset");
              modeltype = request.getParameter("modeltype");
              %>     
              <center>
              <form action="inputparam2test.jsp" method="post">
              <table cellspacing=10>
              <tr>
              <td colspan=2>
                        Please enter model parameters
                   </td>
                   </tr>     
              <tr>
                   <td>
                        Dell LRI
                   </td>
                   <td>     
                        <select name="DellLRI">
                        <option value="1">1
                        <option value="0">0
                        </select>
                   </td>
                   </tr>
                   <%
                   if(modeltype.equals("Direct")) {
              out.println("in if");
              %>
                   <tr>
                   <td>
                   </td>
                   <td>     
                        <input type="submit" value="Next>" name="Next>">
                   </td>
                   </tr>
              </form>
              </center>
              </body>
              </html>
              inputparam2test.jsp:
              <html>
              <head>
              <title>continue input parameters </title>
              </head>
              <body>
              <%
              response.sendRedirect("inputparam1test.jsp");
              %>
              </body>
              </html>
              

    You do not check if the modelType is null and
              if(modeltype.equals("Direct")) {
              out.println("in if");
              will result in a NullPointerException when it is null.
              Almond Huang <[email protected]> wrote:
              > I have problem when I want to redirect a page, inputparam2test.jsp back to the perious
              > page, inputparam1test.jsp. Everything works until I
              > add a "if" statement in the inputparam1test.jsp.
              > The error is "Error 500--Internal Server Error".
              > Can anybody help me out? Thanks a lot!
              > inputparam1test.jsp:
              > <html>
              > <head>
              > <title>create a patameter input form</title>
              > </head>
              > <body>
              > <%!
              > String dataset;
              > String modeltype;
              > %>
              > <%
              > dataset = request.getParameter("dataset");
              > modeltype = request.getParameter("modeltype");
              > %>     
              > <center>
              > <form action="inputparam2test.jsp" method="post">
              > <table cellspacing=10>
              > <tr>
              > <td colspan=2>
              >           Please enter model parameters
              >      </td>
              >      </tr>     
              > <tr>
              >      <td>
              >           Dell LRI
              >      </td>
              >      <td>     
              >           <select name="DellLRI">
              >           <option value="1">1
              >           <option value="0">0
              >           </select>
              >      </td>
              >      </tr>
              >      <%
              >      if(modeltype.equals("Direct")) {
              > out.println("in if");
              >      }
              > %>
              >      <tr>
              >      <td>
              >      </td>
              >      <td>     
              >           <input type="submit" value="Next>" name="Next>">
              >      </td>
              >      </tr>
              > </form>
              > </center>
              > </body>
              > </html>
              > inputparam2test.jsp:
              > <html>
              > <head>
              > <title>continue input parameters </title>
              > </head>
              > <body>
              > <%
              > response.sendRedirect("inputparam1test.jsp");
              > %>
              > </body>
              > </html>
              Dimitri
              

  • New audio track in arrange page problem

    In the LSA I have 64 audio tracks and 32 audio instruments set up. When I open Logic, my autoload contains 16 audio tracks and my environment is configured as I set it up in the LSA. Everything is as it should be. However, when I select track 16 in the arrange page and use the key command control>shift>return to add another track, audio16 is duplicated. When I use the menu to 'create with next instrument' audio17 is created, but in my environment, my 64 audio tracks are reduced to 24. Using the menu to add audio tracks only lets me add to 24.
    I've trashed my preferences but that did nothing.
    One thing that may be relevant is that after setting up the LSA as described above, I copied an old autoload from my powerbook that only contained 24 audio tracks. After realizing that I need more tracks I trashed that autoload and re-ran the LSA. (on a side note - your autoload will trump your LSA set-up if they differ). I think that the old autoload is still causing a problem even though I trashed it.
    Any help in the frustrating situation is most appreciated!

    It is normal that Logic uses the same audio object
    when you create a track with control-shift-return,
    that's the way it's supposed to be. If you want to
    create a new track and a new audio object assigned to
    it, "create with next instrument" is the way to do
    it. You could also use "create multiple..."
    in the drop down menu it says that the key command for 'create with next instrument' is control>shift>return.
    If you're limited to 24 tracks, I'd check in your
    audio preferences. Your maximum tracks limit is
    probably set to 24 tracks.
    my audio preferences are set to 64 tracks of audio.
    thanks for the reply!

  • Importing .gif file into Pages - problem with transparency

    Hi Apple Forum,
    First-timer (on the forum) here. I tried importing a .gif image (with alpha channel) into a pages document. The image was imported, but it's not transparent. In other words, the alpha channel isn't working. The problem is NOT with the opacity button, in case some one wants to suggest that as a solution. Has anyone had this issue before?

    Hi Scrambled_Eggs
    Welcome to the forum.
    Resave them as .png from Preview app.
    Peter

  • Open hyperlink in new page problem

    I have clicked the 'Open Page In New Window' box in iWeb for every external hpyerlink I'm using, but, when I go to my web site it doesn't do that. It opens the hyperlink on top of my web site, instead of opening a new tab. And iWeb Help didn't give me the answer. Help!! Any good ideas out there. If so, please e-mail me at [email protected], because I hardly ever come to these forums. Thank you, thank you, thank you.

    One good idea:
    provide your link if possible. That would make it easier to answer your question/solve your problem.
    Cyclo likes to look at the html source codes of pages to see where it's going wrong (thanks Cyclo!)
    Regards,
    Cédric

  • Hyperlink and child page problems

    I have had no success in solving my muse problems.  I will restate the problem with more detail in the hope that some knows what I am doing wrong and can recommend solutions.
    The Hyperlink panel element is missing so that I cannot establish a hyperlink. This situation exists with two website I am working on, so I assume that it is a Muse setting which has to be set or re-set, in order to have the hyperlink option available.  I can turn the panel off/on by going to windows>control, but tuning the control back on, it still appears without the hyperlink.
    2. 
    In the plan mode, I created a page with two child pages attached.  The plan view shows the site layout the way it was planned.
    However when I choose Preview or Preview in Browser the children do not appear.  One recommendation I received from this forum was to turn on “show all Pages”, but I cannot find that switch.
    The inability to use these two features has brought me to a screeching halt. 
    The odd part is that the hyperlink worked fine until a couple of days ago, but when I went back  to continue work on the site, hyperlink was not there.
    The Child problem has never worked.

    Hi
    For the last question, the show all pages is located on the top right of the menu bar; (check on top left of the screen that you have indeed selected the menu bar) once menu bar is clicked, the blue circle with white arrow will appear, it is in there you will find MENU TYPE option, select ALL PAGES.
    NOTE when you selct menu bar, top left of the page has to confirm that you have selcted the menu!
    Hope this helps?
    Jilo

Maybe you are looking for

  • How do I change the Apple ID on my iCloud account??

    I've tried some of the posts on here and I'm still having trouble. I recently got the iPhone 4S and I need to restore my settings but I don't remember the password to the apple ID on my new phone and I haven't found a way to change it. Please help!!

  • Update acrobat xi version 11.0.08 fail ,window 8.1, error 1328, how to fix it , please!

    window 8.1, current use scrobat xi version 11.0.08, window always pop up to ask for update but fail when i follow the instruction error 1328 ,how to fix it, please !

  • Itunes downloads err time out or network reset...

    Dear Sir, I have 15 available downloads in my Id account. However, all of them can not be downloaded seccuessfully. and it feed back err 408 or err 3253. There were problems downloading some purchased items. For more information on the items that cou

  • ESB Deployment Automation Fault

    I'm using the ant ESB Deployment Automation tasks authored by Doug Gschwind and referenced in other threads. I get a build failed error when trying to extract an ESB deployment plan. The error states that the output file already exists but the direct

  • A puzzle - smart collections - develop preset, numbers doesnt add up

    Hi I was playing with the smart collection tonight, and specifically wanted to find out how the "Develop preset" smart collection would work. In this process I made a smart collection as the below. Match = Any Develop preset = Default Develop preset