ASP Page Manipulated by Form Variable

I have an ASP page containing data from a recordset. I would
like help doing the following: When the user first opens the page,
they see all of the records. On the top of the page, there will be
a form containing a menu and a submit button. I would like it so
that the user can select an item from the menu and when they hit
submit, it simply uses the selection as the filter term.
I can get everything to work if I'm passing to a secondary
page, but then the problem arises again if the user wants to make
another selection without hitting the back button. If I'm stuck
with the 'back' solution, please let me know.
Thanks for your help!

Hi,
Thanks for replying. I have now resolved by creating a master page and passing the AwayUser URL variable through to the main form.
Regards

Similar Messages

  • Passing FORM variables through CFSET

    I am writing an account creation page for my site. After the
    user inputs the required information, I would like to 1. confirm
    that their email is not a duplicate of another user 2. Pass them
    off to another page that allows them to confirm the information
    that they input and submit the info to the database. I would like
    to have the email confirmed on that page through passing the
    FORM.email variable to the #CGI.SCRIPT_NAME#. If the RecordCount on
    the query for duplicate email addresses comes back VALUE=0, use
    CFLOCATION to pass to the next page with the FORM variables intact.
    However, as forms can only have one action attribute, what is the
    best way to do this, in your opinion?
    Thanks so much for your help!
    dan

    use session var to store form data:
    - user submits form.
    - form posts to same page (to itself).
    - check for duplicate email
    - if no duplicate found, copy form to a sesion var and
    cflocate to next
    page; if duplicate found show error to user
    - on next page display user-submitted data from the session
    var
    make sure session vars are enabled in cf administrator and
    sessionmanagement is enabled in your appliction.cfm/cfc
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • How to pass a form variable from page to page

    I have a series of 4 forms on 4 pages that update a database.
    A variable from one of the forms (doesn't matter which one, if it's
    easier one way over another, let's go that way) is passed to the
    last page, where a PayPal button will appear based on the value of
    the form variable. I am using ASP javascript and an Access
    database.
    Thanks.

    jennivazquez wrote:
    > I have a series of 4 forms on 4 pages that update a
    database. A variable from
    > one of the forms (doesn't matter which one, if it's
    easier one way over
    > another, let's go that way) is passed to the last page,
    where a PayPal button
    > will appear based on the value of the form variable. I
    am using ASP javascript
    > and an Access database.
    Either store the variable in a hidden field in the
    intermediate forms,
    or use a session variable.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • XSQL Equivalent of ASP Request.Form variable

    In ASP, I can get form values from an HTML page using Request.Form. How do I do this in XSQL?
    My intent is to read in the username and password from the login page, and then do authentication to see if they have the credentials to log in.
    If you can please email me any help at [email protected] that'd be great. Thanks!
    Malik Graves-Pryor

    I set the page up exactly as you showed Steven, but I get this error instead:
    <?xml version="1.0" ?>
    - <!-- <?xml-stylesheet type="text/xsl" href="/dvd/dvd.xsl"?>
    -->
    - <database>
    - <xsql-error action="xsql:query">
    <statement>SELECT DISTINCT FIRSTNAME AS "FIRST-NAME", LASTNAME AS "LAST-NAME", EMAIL AS "EMAIL", USERNAME AS "USERNAME", ACCESSLEVEL AS "ACCESSLEVEL", USER_ID, PASSWORD FROM LKUP_USER WHERE USERNAME = ? AND PASSWORD = ? ORDER BY USER_ID</statement>
    <message>ORA-01008: not all variables bound</message>
    </xsql-error>
    </database>I used the bind-params attribute in the manner that you described, and then loaded the XSQL page after submitting the username and password from my index.xhtml page via the action attribute on the form. Did I do something incorrectly?
    Also, how does the SQL statement know which parameter to use for each '?'
    i.e., I bound username and password in bind-params:
    bind-params="username password"
    how then does it know to use the correct value when I do this?
    WHERE USERNAME = ? AND PASSWORD = ?
    One more thing. I'm reading up on bind-params online and right now the only examples that are being shown are when the values are being passed through to the page via the URL, like so: http://www.oracle.com/xsql.xsql?username=Steve&password=Muench
    For obvious reasons, I don't want to include the password string in the URL. If I set this up correctly, the bind-params attribute should allow me to just post the information from my index page's form correct?
    Thanks again. This is invaluable.
    Malik Graves-Pryor

  • Merge pdf form data to an ASP page via HTTP

    I am using Adobe LiveCycle.
    Using LiveCycle has anyone been able to collect data from a PDF form posted on their web page, submit via submit button, that data to an ASP page and use the ASP page to do record manipulation.
    I have successfully created a PDF page and collected the data with JavaScript and updated the database. I'm looking for an alternative solution.

    Hi Robert,
    I am trying to design form to interact with an ODBC.
    Do you have any working example that uses following methods?
    xfa.sourceSet.DataConnection1.addNew();
    xfa.sourceSet.DataConnection1.update();
    xfa.sourceSet.DataConnection1.delete();

  • How do I create an update form, in a search.asp page.

    I have a search.asp page which when submitted transfers to
    the results.asp page. In the search I would like to also create an
    insert statement. The search.asp page has the following.
    Form: searchForm (Post)
    Text Field: KeywordSearch
    List Menu: CategoryTable
    List Menu: Location
    Button: Search
    When a client enters data in the search.asp page, I would
    like for the data, to be submitted to a database at the same time
    it searches the database. This using an insert statement. The
    reason for this is so that we can see what everyone is searching
    for.
    The database/table we created has the following.
    Table: tblSearches
    Field: idSearch (Auto Number)
    Field: location (Text)
    Field: category (Text)
    Field: user (Text)
    Field: keyWord (Text)
    At the moment I cant create an insert form because of the
    form that already exists in the search.asp page.
    Can anyone suggest how to do this.
    Ideally it would be good to be able to combine two forms into
    one, but I am told that this is not possible.
    TA
    Mally.

    Oh, I see. So is it Dreamweaver that wont let you create the
    insert statement using a form that is already submitting to a
    results.asp page? So if I create the insert statement by had it
    should work?

  • How do I pass a username form variable from a drop down list/menu to another page?

    Hi,
    I have a login_success.php page that has a drop down list/menu (which lists usernames). I want the user to click on their user name, and when they click the submit button the username information to be passed over to the username.php page which will contain a recordset, sorted by username.
    How do I pass the username info from the drop down list/menu to the username.php page?
    The drop down menu is connected to a recordset listUsername, I have filtered the recordset with the Form Variable = username, and I have used the POST method to send the username to the page username.php. I'm not sure how to structure the php or which page to place it on.
    <form id="form1" name="form1 method="post" action="username.php">
         <label for="username_id">choose username:</label>
         <select name="username_id" id-"username_id">
              <option value="1">username1</option>
              <option value="2">username2</option>
              <option value="3">username3</option>
              <option value="4">username4</option>
         </select>
         <input type="submit" name="send" id="send" value="Submit" />
         <input type="username" type="hidden" id="username" value="<?php echo $row_listUsername['username']; ?>" />
    </form>
    Could somebody help me please?
    Thanks.

    I would not post the variable over, In this case I personally would send it through the URL and use the $_GET method to retreve it. For Example.
    <html>
         <head>
              <title>Test Page</title>
              <script type="text/javascript">
                   function userID(){
                        //var ID = form1.userIDs.selectedIndex;
                        var user = form1.userIDs.options[form1.userIDs.selectedIndex].value;
                        window.location = "test.html?userID=" + user;
              </script>
         </head>
         <body>
              <form id="form1">
                   <select name="userIDs" id="userIDs" onchange="userID();">
                        <option>Select a User</option>
                        <option value="1">User 1</option>
                        <option value="2">User 2</option>
                        <option value="3">User 3</option>
                        <option value="4">User 4</option>
                   </select>
              </form>
         </body>
    </html>
    //PAGE TO RETRIEVE THE USERNAME
    <?php
    if(isset($_GET['userID'])
         $userID = $_GET['userID'];
         echo $userID;
         die;

  • CF Set form.variable for query and Next/Previous pages error

    I have a CF form with a select that posts to a CF "action" page.
    On the action page I: CFSET ItemNumber=#form.ItemNumber#
    I CFOUTPUT the 'ItemNumber' into the CFQUERY (which is an Inner Join dependant on the '#ItemNumber#')...
    All of the above works just fine and displays the database fields in color alternating rows, per the rest of the code.
    Here's the problem:
    I'm displaying 40 rows on a page per "Next and Previous" code. (CFPARAM name="start" default="1" and CFPARAM name="disp" default="40" along with the rest of the NextN code in the header and body). This does display 40 rows on the page and puts a link at the bottom of the page "Next 40 Rows", etc.
    Note: I'm only querying the database once and using the query (query name="data") to populate the table rows And the NextN code (CFOUTPUT name="data") And (CFIF start + disp GREATER THAN data.RecordCount, etc)...
    The problem happens when you click the "Next 40 Rows" link to display the 2nd page of rows. Since (I'm assuming) this NextN code is 're-reading' the same page from top to bottom, an error is thrown when the code tries to read the CFSET ItemNumber=#form.ItemNumber# at the top of the page.
    With the #form.ItemNumber# on this action page Originally coming from the previous posting of the form to this action page, when the "Next 40 Rows" link is clicked and the NextN code re-reads this action page - the CFSET ItemNumber (#form.ItemNumber) is not getting populated and throws the error...
    I hope I've not made this sound confusing.
    I can get the NextN code to work when I'm just querying the database without "flying in" a form variable. But when I CFSET a variable (#form.ItemNumber#) that is inserted into the query, the second page of the NextN throws an error and doesn't display.
    I would include the page code here but it would be fairly lengthy and, as well, the NextN code is a 'standard' CF code -- I've narrowed the problem down to the above "Element is undefined" (when the page tries to reload from the "Next 40 Rows" link) and am hoping there's a simple fix or another way to display the records in Next and Previous pages.
    Thanks to anyone in advance for shedding light on this.
    - e

    Thank you for the reply, Owain.
    Yes - The Next/Previous at the bottom of the page are hyperlinks.
    <a href="ThisPage.cfm?start=#Evaluate("start + disp")#">
    The following is at the top of the page (and is the variable from the form that I CFOUTPUT in the query):
    <cfparam name="ItemNumberDropdown01" default="">
    <cfset ItemNumber = #form.ItemNumberDropdown01#>
    The error report showed that the "Next Page" hyperlink was reading an undefined variable... although when the "action page" first opens from the form posting to it, it populates the CFSET just fine (per the cfparam and cfset above)... As you mention, the hyperlink clearing the form scope is what causes the error in trying to display the next set of records...
    The form page and the 'action page' are both secure pages with an application page setting the session, etc. Am I at risk in using an URL scope?
    Where would this URL scope be put? (The href is shown above - would the URL scope go in this? - How would this be written?)
    The CFPARAM and CFSET would still exist at the top of the 'action page' and still throw an error wouldn't it or would this be replaced with something else to read the form.variable for this 'first' action page to be displayed?
    Thanks again for the 'education' on this...
    - ed

  • My simple form page isn't passing along the form variable I need to load my update page?

    I have created a recordset on my update page that specifies a form variable filter that matches the form ID on my simple form page.  When I enter the information on that page and submit, I go to the update page but nothing is loaded.  I've tested the update page using a URL parameter and it loads perfectly.  Why isn't my form variable working?

    Thanks for responding.  Here's the code.  I can't help with the url since I'm running on MAMP.
    <!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>Untitled Document</title>
    <link href="assets/Trigger.css" rel="stylesheet" type="text/css" />
    </head>
    <body bgcolor="#FEFABA">
    <div id="wrapper">
    <table width="680" border="0">
      <tr bgcolor="#FEFABA">
        <td><img src="assets/images/featuredActivities/featuredActivity_logo.png" width="620" height="82" alt="Logo" /></td>
      </tr>
      <tr>
        <td height="98"><p>Update your information</p>
        <p>Please enter you Email Address and the click the Submit button</p></td>
      </tr>
      <tr>
        <td><form id="ml_email" name="ml_email" method="post" action="mailList_update.php">
          <label>
            <input name="text" type="ml_email" />
          </label>
          <label>
            <input type="submit" name="submit" id="submit" value="Submit" />
          </label>
        </form></td>
      </tr>
    </table>
    </div>
    <!--
    //-->
    </body>
    </html>

  • Lightwindow passing form variable to action page

    Hi,
    I have a form that is popup using lightwindow to allow users to fill out the form.  For some reason, I couldn't get the form.variables to pass to the action page and insert into a database.  Anyone has suggestions or ideas?
    thanks.

    link to open lightwindow pop up page.  of course i've all the js required on the top of the page
    <a href="form.cfm" params="lightwindow_width=500,lightwindow_height=600" class="lightwindow page-options">Form</a>
    here is the form
    <form id="form1" name="form1" method="post">
    <p><label for="fname">First Name</label><input type="text" name="fname" id="fname" class="inputText" /></p>
    <p><label for="lname">LastName</label><input type="text" name="lname" id="lname" class="inputText" /></p>
    <p><p><a href="hello.cfm" params="lightwindow_form=form1" class="lightwindow_action" rel="submitForm"><button>Submit</button></a> or <a href="#" class="lightwindow_action" style="color: blue;" rel="deactivate">Cancel</a>
    </p>
    here is the action page for the form (hello.cfm)
    <cfoutput>#form.fname# | #form.lname#</cfoutput>
    I do not know if this is out it's supposed to do it or not but the form variables are not passing over to the action page.
    thanks

  • Form on coldfusion page losing form variables

    OK, I am having a very strange problem. Several applications
    on our
    production web servers have started manifesting the same
    symptom. On
    the login page, you have a couple of fields for account name
    and
    password. When you hit submit the action page says it can't
    find the
    form variables. These are on a cluster. If you go to the
    servers
    individually, then everything works as it should. Our network
    people
    claim that we are not shifting from one server to the other.
    Has anyone
    else ever seen this behavior before on a single
    server?

    These are stand-alone servers that being load-balanced. They
    are supposed to stuck on the same server until the session ends. If
    we go to the individual servers and run the applications, it works.
    Otherwise, it fails randomly.
    quote:
    Originally posted by:
    fober1
    Hi,
    I have not seen that specific behavior on clustered or single
    web-servers.
    You did not write if you are using any cluster features of
    ColdFusion, but I assume you are using as stand-alone configured
    ColdFusion servers, and through LoadBalancer configuration (sticky
    cookie) you are making sure that users are always sent back to the
    same server.
    I would not expect the problem you have to be caused by such
    a load balancer configuration, but companies who implement load
    balancers often also use Proxy-servers, and now well they can mess
    up a lot of things with caching.
    (even Dan's problem could be caused by a proxy server: first
    request to verify if the requested page still has the same date,
    and then the request is actually sent to the server itself for
    execution).
    A quick way to verify if a proxy is messing with you is to
    attach any URL parameter: "www.mysite.com/index.cfm" may be cached,
    but "www.mysite.com/index.cfm?user=12345" should not be served from
    the cache and instead get sent to an actual web-server to return a
    customized response.
    Cheers,
    fober

  • Trying to move a list of form variables to session variables of the same name

    I am trying to move a list of form variables to session variables of the same name and I am having a lot of trouble.
    I have never had to post of this forum with a language question in all the 10 years I have been using ColdFusion. I was a qa Engineer @ Allaire/Macromedia back when it was going from one to the other. I have a pretty good grasp of the language.
    I have software that runs off a list. The fieldnames are variable and stored off in an array. It's survey software that runs off a "meta file". In this example; I have the number of fields in the survey set to 12 in the "metafile". I have each field declared in that file in array Session.SurveyField[1] and the above loop works fine. I include this "metafile" at the start of the process.
    I cfloop around a struct and it works wherever I have needed to use it; such as here - writing to the database for example;
    <CFQUERY NAME="InsertRec" DATASOURCE="Survey">
    INSERT into #variables.SurveyTableName#
    (EntryTime
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
    ,#Session.SurveyField[arrayindex]#
    </cfloop>
    <!--- EXAMPLE OF WHAT THE ABOVE GENERATES
    ,q01_name,q02_AcadTechORNA,q03_Water,q04_FirstAid,q05_CPR,q06_LifeGuard,q07_AED
    ,q08_ProjAdv,q09_Color,q10_SantaClaus,q11_Supervisor,q12_SupervisorOpinion --->
       VALUES
        ('#EntryTime#'
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
    <cfset thisname = "Session." & Session.SurveyField[arrayindex]>
    ,'#evaluate(variables.thisname)#'
    </cfloop>
    <!--- EXAMPLE OF WHAT THE ABOVE GENERATES
    ,'#Session.q01_name#','#Session.q02_AcadTechORNA#','#Session.q03_Water#','#Session.q04_Fi rstAid#'
    ,'#Session.q05_CPR#','#Session.q06_LifeGuard#','#Session.q07_AED#','#Session.q08_ProjAdv# ',
    ,'#Session.q09_Color#','#Session.q10_SantaClaus#','#Session.q11_Supervisor#','#Session.q1 2_SupervisorOpinion#' --->
    </CFQUERY>
    NOW HERE'S THE PROBLEM: I am running into trouble when trying to move the form variables to session variables of the same name. It is the only part of the software that I still need the datanames hard coded and that is a roadblock for me.
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
    <cfset thissessionfield = "Session." & Session.SurveyField[arrayindex]>
    <cfset thisformfield = "Form." & Session.SurveyField[arrayindex]>
    <cfset #thissessionfield# = #evaluate(thisformfield)#>
    </cfloop>
    I have tried it with or without the "evaluate"; same result. It doesn't give an error; it just ignores them (session variables look as such in the next page in the chain)
    q01_name=
    q02_acadtechorna=
    q03_water=
    q04_firstaid=
    q05_cpr=
    q06_lifeguard=
    q07_aed=
    q08_projadv=
    q09_color=
    q10_santaclaus=
    q11_supervisor=
    q12_supervisoropinion=
    Note: they exist because I CFPARAM them in a loop like the above at the start of the procedure) - and this works just fine!
    <cflock scope="Session" type="EXCLUSIVE" timeout="30">
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
    <cfset dataname = "Session." & Session.SurveyField[arrayindex]>
    <cfparam name="#variables.dataname#" default="">
    </cfloop>
    </cflock>
    I EVEN tried exploiting the Form.Fieldnames list using CFLoop over the list and the same sort of logic within and it still gives me nothing....
    Here's the FORM.FIELDNAMES value
    "Q01_NAME,Q02_ACADTECHORNA,Q03_WATER,Q04_FIRSTAID,Q05_CPR,Q06_LIFEGUARD,Q07_AED,Q08_PROJAD V,Q09_COLOR,
    Q10_SANTACLAUS,Q11_SUPERVISOR,Q12_SUPERVISOROPINION"
    Here's the logic; SAME RESULT - The session variables don't get set.
    <cfoutput>
    <cfloop list="#Form.FieldNames#" index="thisfield">
    <!--- <br>#thisfield# --->
    <cfscript>
    thisSESSIONfield = "Session." & thisfield;
    thisFORMfield = "Form." & thisfield;
    #thisSESSIONfield# = #thisFORMfield#;
    </cfscript>
    </cfloop>
    </cfoutput>
    The CFPARAM in a loop with variable output name works just fine; so does the post (which I included above) as does the SQL Create, Param Form Variables, Param Session Variables, etc.
    THIS even works for moving BLANK to each session variable, to zero them all out at the end of the process;
    <cflock scope="Session" type="EXCLUSIVE" timeout="30">
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
    <cfset thislocalfield = Session.SurveyField[arrayindex]>
    <cfscript>
    thissessionfield = "Session." & thislocalfield;
    </cfscript>
    <cfset #thissessionfield# = "">
    </cfloop>
    </cflock>
    Expanding on that code, you would think this would work, but it doesn't;
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
    <cfset thislocalfield = Session.SurveyField[arrayindex]>
    <cfscript>
    thissessionfield = "Session." & thislocalfield;
    thisformfield = "Form." & thislocalfield;
    </cfscript>
    <!--- debug --->
    <!--- <cfoutput>#thissessionfield# = "#evaluate(thisformfield)#"</cfoutput><br> --->
    <cfoutput>
    <cfset #thissessionfield# = "#evaluate(thisformfield)#">
    </cfoutput>
    </cfloop>
    And see that debug code in the middle? To add insult to injury... When I uncomment that it shows me this. So it certainly looks like this should work....
    Session.q01_name = "Me"
    Session.q02_AcadTechORNA = "N/A"
    Session.q03_Water = "Yes (certificate expired)"
    Session.q04_FirstAid = "Yes (certificate is current)"
    Session.q05_CPR = "No"
    Session.q06_LifeGuard = "Yes (certificate expired)"
    Session.q07_AED = "Yes (certificate expired)"
    Session.q08_ProjAdv = "Yes (certificate expired)"
    Session.q09_Color = "Gray"
    Session.q10_SantaClaus = "Yes"
    Session.q11_Supervisor = "Da Boss"
    Session.q12_SupervisorOpinion = "Not a bad thing"
    There must be some simpler way to do this. This way won't work against all odds even though it seems so much like it should.
    So I end up having to hardcode it; still looking for an automated way to set these #@%$*@!## session variables over the list from the form variables of the same @#@!$#%$%# name. Do I sound frustrated???
    No matter what I do, if I don't HARDCODE like this;
    <cfset Session.q01_name = Form.q01_name>
    <cfset Session.q02_AcadTechORNA = Form.q02_AcadTechORNA>
    <cfset Session.q03_Water = Form.q03_Water>
    <cfset Session.q04_FirstAid = Form.q04_FirstAid>
    <cfset Session.q05_CPR = Form.q05_CPR>
    <cfset Session.q06_LifeGuard = Form.q06_LifeGuard>
    <cfset Session.q07_AED = Form.q07_AED>
    <cfset Session.q08_ProjAdv = Form.q08_ProjAdv>
    <cfset Session.q09_Color = Form.q09_Color>
    <cfset Session.q10_SantaClaus = Form.q10_SantaClaus>
    <cfset Session.q11_Supervisor = Form.q11_Supervisor>
    <cfset Session.q12_SupervisorOpinion = Form.q12_SupervisorOpinion>
    I always get this from my next page because the session variables are empty;
    You must answer question 1.
    You must answer question 2.
    You must answer question 3.
    You must answer question 4.
    You must answer question 5.
    You must answer question 6.
    You must answer question 7.
    You must answer question 8.
    You must answer question 9.
    You must answer question 10.
    I tried duplicate as well, but I can not get the above to work...
    Can anyone help me do this thing that one would think is simple????

    I think if you use structure array syntax you should get the results you want.
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
          <cfset session[Session.SurveyField[arrayindex]] = Form[Session.SurveyField[arrayindex]]>
    </cfloop>
    Or probably even easier.
    <cfset session = duplicate(form)>

  • How to get the last page  SAP Script form

    How to get the last page  SAP Script form.
    I want to print a specific information in the last page of SAP form (Script). Please tell me how to get the last page number.
    Regards

    Hi
    You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
    From SAP Help:
    This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
    Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
    /: IF &NEXTPAGE& = '0'
       Last page
    /: ENDIF
    Max

  • Request.getParameter() from same page as HTML form

    I have a jsp page with a form. form contains a textfield, once the user submits the form, i want jsp scriptlet to get the
    value of the user input and carry out processing on it within the same page and give a result.
    problem is the first time the page is loaded, there is an error in the request.getParameter() statement since no form has
    yet been submitted i guess ....
    if i use another page ... it works ... but i want to display the information in the same page ...
    thanks

    I'd like to see an example where you'd get a NullPointerException from the line
    if(request.getParameter("foo") == null)
    but not one from
    if(null == request.getParameter("foo"))
    In either case, the only possibility for a NullPointerException would be if your request variable were null (but this would cause a NullPointerException in either method). Otherwise request.getParameter() returns a null value if the parameter does not exist, but will not throw a NullPointerException.

  • How to pass Applet form variables without showing it on top ?

    I am running one applet with some form variables. After submit I want to pass those to .asp file to store into database.
    If I use URL method then all are getting displayed on URL location of browser which I do not want. I want to pass many form variables to another .asp file, so it may not be good also.
    What is the best way of doing it ? Need urgent help about it.

    Well If you create a POST request instead as a GET request the variables will not show up in the URL.
    On tips how to do that you can either check out this thread:
    http://forums.java.sun.com/thread.jsp?forum=31&thread=56388
    or one of these:
    http://search.java.sun.com/Search/java?qt=applet+GET+POST+variables&col=javafrm&rf=0
    Sjur

Maybe you are looking for

  • Error while generating Web report for UML Modeling

    I am using Sun java studio enterprise 8, i design uml diagrams for that diagrams i am trying to generate a webreport while generating i am getting the error as follows "Cannot execute /usr/bin/firefox Check that a valid external browser properly is s

  • Why won't adobe cs5 photoshop uses only 3gb of my 12gb ram??? pls help

    hey guys can you help with this,.. i'm a bit confuse with my adobe cs5 photoshop in my system... i have an i7 970 processor and a tri channel 3x4 (12GB) ram.. but when i look at the EDIT>PREFERENCE>PERFORMANCE in my adbobe cs5 it only indicate 3GB av

  • Iphone internet

    How do i access the internet if there is no wifi available and i am on the move...Is there another way of accesing the internet and is it possible to get some sort of gps application installed on the iphone...

  • Playlists not showing up after moving itunes to new computer

    moved itunes to new computer and used an externa;l harddrive to move "iTunes" folder over.  the most recent "setup" of itunes on old computer is not showing on new computer.  For example "music" file size on external drive is 133GB - on new computer

  • Harman kardon makes cracking noises on my M40

    Hello, I have M40-101 and my problem is my speakers' cracking and popping noises(when using media player, winamp a little bit high volume). What can I do for that problem? is it hardware or software problem? thanks for your help... (I also try Start/