Can I do this in JSP instead of ASP?

The code below obviously submits a user's input to an .ASP page which then displays the appropriate data from an SQL2000 data base.
I've seen the examples where the submit form code is part of the JSP, but is it possible to use the javascript code below to send info to a JSP which then does it's 'select * from table where name = "userinput" ' from Oracle and then displays the appropriate data?
Thanks much,
Stephen Watts
*** Javascript code example ***
<HTML>
<HEAD>
<TITLE>Input Test Page</TITLE>
</HEAD>
<BODY BGCOLOR="#ffffff">
<script language="JavaScript">
function properformat()
if (document.NameForm.elements[0].value.length<2)
alert("Please check your entry in the NAME field. If you are searching by a partial name, please enter at least 2 characters.");
document.NameForm.elements[0].focus()
return false;
</script>
<CENTER>
<HR>
<FORM METHOD="post" ACTION="http://test.domain.com/stephen/utilnamelist.asp" name="NameForm" onsubmit="return properformat()">
<B>Name or Customer Number:</B>
<BR>
<INPUT NAME="DataSearch" SIZE="40">
<P>    Return <select name="Results">
<option selected>10</option>
<option>25</option>
<option>50</option>
<option>100</option>
</select> record(s) <BR>at a time </P>
<P align=center>
<INPUT TYPE="submit" VALUE="Submit">
<INPUT TYPE="reset" value=Reset> </P>
</FORM>
</CENTER>
</BODY></HTML>

The short answer is: yes.
The JavaScript code executes on the client, so it is totally independant of the server code. The form could be submitted to ASP, JSP, PHP, etc. without the client knowing or caring which is being used.

Similar Messages

  • HT5361 I want to permanently remove years old emails from my IMac Mountain Lion system.  How can I do this by year instead of laboriously doing it one message at a time?

    I want to permanently remove years old emails from my IMac Mountain Lion system.  How can I do so by year rather than slowly removing one message at a time?  Many thanks.

    Another option is to create a smart mailbox that includes emails with date received before a desired date.
    Then, select one message in the Smart Mailbox and cmd-A to select all. Then delete.

  • Recent upgrades prevent loging into Citibank, can you fix this?

    Attempts to login to Citibank.com give "We've had a problem processing your request." This error appears to be from FIrefox, not Citibank, as they have no record of attempted logins. I have cleared citibank cookies and that doesn't help.

    Maybe its the new mixed content blocker?
    Starting in Firefox 23, if a secure page includes certain types of insecure content, Firefox blocks the insecure content and a shield icon will appear in the address bar. See this article for more information about the new mixed content blocker: [[How does content that isn't secure affect my safety?]]
    To temporarily allow the mixed content to be displayed:
    *Click the '''shield icon''' [[Image:Mixed Content Shield]] in the address bar and choose '''Disable Protection on This Page''' from the dropdown menu.
    [[Image:Fx23MixedContentBlocker]]
    To allow insecure content to be displayed in all secure pages, enter '''about:config''' in the address bar and double-click on this preference, to toggle it from true to false:
    '''security.mixed_content.block_active_content'''
    You can also use this add-on instead, to toggle the preference:
    *[https://addons.mozilla.org/firefox/addon/toggle-mixed-active-content/ Toggle Mixed active content] add-on
    You may want to do this only for the current session, then reset the preference back to "true" and check back with the site to see whether it's been fixed, since this is a global setting that exposes you on all sites, not just the one you care about.
    Let us know if this helps!

  • HT5654 itunes will not restore my iPad 2, how can I fix this

    I cannot restore my iPad 2 on itunes. How can I fix this problem?

    Instead of responding to an 8 month old thread that is unrelated to your issue and was a waste of everyone's time to begin with, restore your device as new.
    This is covered in the User's Guide which can be found in Safari on the device or by selecting Support at the top of these forums, then the device in question and Manuals.

  • When I create a New Folder (on the desktop or in Finder), the system uses the Generic Document Icon instead of the Generic Folder Icon. How can I change this back?

    When I create a New Folder (on the desktop or in Finder), the system uses the Generic Document Icon instead of the Generic Folder Icon. How can I change this back?
    All of a sudden I noticed that most of the folders on my computer were no longer using the folder icon, but the generic document icon. I had to manually change back the icon being used by opening Get Info for each folder and copying and pasting the generic folder icon from some folders that remained unchanged. Now whenever I create a New Folder (right click -> "New Folder"), the icon that shows up is the generic document icon (white page with top right corner turned down). And I have to manually change it so it shows up as a folder in Finder or on my desktop. I don't know why or how this switch happened. All of the folders now on my computer look ok, but I need to change the default so when I create a New Folder it uses the correct icon.
    I have also Forced Relaunch of my Finder and rebooted the system. I downloaded Candybar but am not sure what will fix anything, so I haven't proceeded.
    Anyone know how I can do this? Thanks.

    Anyone?

  • When I rip a CD to iTunes. All goes well until I click on All Albums. If there are other artists named with the Title Artist they are shown as different albums so I end up with 16 albums containing 1 track instead of 1 Album with 16 tracks. Can I fix this

    When I rip a CD to iTunes all goes well until I click on All Albums. If there are other artists named as well as the Title Artist, I end up with what appears as 16
    Albums with 1 track instead of 1 Album with 16 tracks. Can I fix this ?

    Had a similar problem with two tracks from a cd being segregated in a separate list, but with the same album title and artwork as the other 19 tracks. I found that by double clicking the artist field next to the album icon you can then edit that info.  In your case it sounds as if you might want to erase the artist info altogether. Once you have done that, all the tracks magically group together, as they should have done in the first place. Oh there might be a dialog box first, asking if you really want to do this.
    Hope this helps.

  • When I want to attach a file to an e-mail I'm sending from my iCloud account it makes the file show up in the body of the e-mail instead of attaching it as a separate file the receiver can open.  How can I change this?

    When I want to attach a file to an e-mail I'm sending from my iCloud account it makes the file show up in the body of the e-mail instead of attaching it as a separate file the receiver can open.  How can I change this?

    It should be an attachment.  Your Mac just displays a preview of certain attachments (such as .pdfs) in the body of the message.  A PC, for example, will see it as an attached file rather than a preview.
    You can save the attachment on your Mac by Control-clicking on it and selecting Save Attachment.

  • Can I partition my hard drive to hold Windows 8 (Beta), instead of Windows 7, and can I do this with an external CD drive?

    I have a late 2008 Macbook Pro with Mac OS X 10.8 Mountain Lion installed, but my CD drive inside my computer is damaged*, and it's far cheaper to buy an external CD drive than to repair it entirely. Before I do either, I would like some grasp of whether or not it's worth my time and money, as I've yet to order the external drive or make a genius bar appointment.
    Also, the reason I'm choosing Windows 8 (Beta) is because it's free.
    *I dropped my computer once two years ago. I haven't even used my CD drive until recently when trying to install Windows 8. I assume the drop was the issue. I've used compressed air to remove dirt/dust as well as resetting the PRAM multiple times and nothing seems to work, but I'm not worried about it.
    Thank you.

    Can I partition my hard drive to hold Windows 8 (Beta), instead of Windows 7, and can I do this with an external CD drive?
    No and No.
    1: Apple only supports Windows 7 at this time in BootCamp (direct install into a bootable partition) because Win 8 is in Beta and no Mac hardware drivers are available yet from Apple for Windows 8.
    2: You can't install Windows from a external cd drive into BootCamp, it has to be a internal one far as I know, perhaps a USB will work I don't know.
    Yes:
    1: You can download and install Windows 8 Beta into a the free virtual machine software called VirtualBox, which Windows 8 will run in a window in OS X. This is better as it's still in Beta and Windows Beta releases will expire. Plus Windows 8 is a pain in the behind and you will want to be able to have VirtualBox or OS X be able to regain control over the computer.
    http://osxdaily.com/2012/03/03/try-windows-8-consumer-preview-virtualbox/
    Windows in BootCamp or Virtual Machine?

  • My new Photoshop Elements 12 has a RAW file plug-in, but when I try OPEN to select a photograph, there are only generic icons instead of pictures-- I can't tell one photograph from another! How can I fix this so I can tell which photograph I want to open?

    My new Photoshop Elements 12 has a RAW file plug-in, but when I try OPEN to select a photograph, there are only generic icons instead of pictures-- I can't tell one photograph from another! How can I fix this so I can tell which photograph I want to open? Thank you!

    Thanks R_Kelly:
    Adobe Photoshop Elements Version: 12.0 (12.1 (20140303.12.1.49334)) x32
    Operating System: Windows Vista 32-bit
    Version: 6.0 Service Pack 2
    System architecture: Intel CPU Family:6, Model:15, Stepping:11 with MMX, SSE Integer, SSE FP, SSE2, SSE3
    Physical processor count: 4
    Processor speed: 2400 MHz
    Built-in memory: 3069 MB
    Free memory: 1631 MB
    Memory available to Photoshop Elements: 1598 MB
    Memory used by Photoshop Elements: 69 %
    Image tile size: 128K
    Image cache levels: 8
    Video Card: ATI Radeon HD 4800 Series
    Video Mode: 1680 x 1050 x 4294967296 colors
    Video Card Caption: ATI Radeon HD 4800 Series
    Video Card Memory: 512 MB
    Application folder: C:\Program Files\Adobe\Photoshop Elements 12\
    Photoshop Elements scratch has async I/O enabled
    Required Plug-ins folder: C:\Program Files\Adobe\Photoshop Elements 12\Required\
    Primary Plug-ins folder: C:\Program Files\Adobe\Photoshop Elements 12\Plug-Ins\
    The first thing I did was UPDATE. I have all the latest updates available (according to the updater). The Camera Raw Plug-in says it is version 8.0.
    The RAW files are from a Canon T3i. It's a very common camera, I can't believe it wouldn't be supported.

  • Hi I am from Spain and I am new on Macworld, recently I have bought a Mac Book pro, the keyboard is not configured rightly when I have to write @ I have to press g instead of @ key , how can I solve this problem ?. Thanks in advance.

    Hi ,
    I am from Spain and I am new in MacWorld, recently I have bought  a MacBook Pro , but teh keyboard is not configured rightly, when I want to write @ I have to press g instead of the @ key, or the symbol for questions ?, I have to press :: key. Please how can I solve this problem ?. Thanks in advance.
    BR,
    XAvier

    xavier85 wrote:
    I am new in MacWorld
    Sorry to disappoint you, but this isn't MacWorld.
    when I want to write @ I have to press g instead of the @ key
    Are you sure you don't have to press ⌥-G (Option-G) to get @?
    Anyway, sounds like a keyboard/keyboard layout mismatch.
    Go to System Preferences > Language & Text > Input Sources. From "Select input methods to use" enable (check) the following
    Keyboard & Character Viewer
    U.S.
    Spanish
    Spanish - ISO
    Also enable "Show Input menu in menu bar".
    The Input menu should appear to the right of your menu bar, with the icon of a national flag. From this menu, choose "Show Keyboard Viewer". Then compare the layout displayed by Keyboard Viewer with the label on your MBP's keyboard. If it doesn't match, choose a different layout from the Input menu.
    My suspicion is that you're using a US keyboard with a Spanish keyboard layout, hence the difference you noted.

  • I signed in as my dad's ID, and now, I'm signed in as my own ID.  The problem is, when I try to verify any update, it asks for my dad's ID password instead of mine. How can I fix this?

    I signed in as my dad's ID, and now, I'm signed in as my own ID.  The problem is, when I try to verify any update, it asks for my dad's ID password instead of mine. How can I fix this?  I've already tried to sign in and sign out, but it doesn't work...

    You need to delete and redownload those applications. His Apple ID is stored inside them.
    (115505)

  • I use the apple email in my mac air. When I foward messages, people that use Outlook receive the text in form of attachment instead of the message opened in the body of the email. How can I solve this?

    I use the apple email in my mac air. When I foward messages, people that use Outlook receive the text fowarded in form of attachment instead of the message opened in the body of the email. How can I solve this? Thanks. Best regards.

    this:
    Did not exist at the point of delivery to the consumer.
    Nor did the white corrosive agent present exist at the point of sale.
    " exposure   of copper   alloys   to   moisture   or   salt   spray   will   cause   the formation  of  blue  or  green  salts  called  verdigris.  The presence   of   verdigris   indicates   active   corrosion."
    I see also 2 contact points with DEEP corrosion pitting not indicative of any defect from the factory.

  • Having trouble with Yahoo home page sign in. Some time it brings up my wife's Yahoo log in instead of my log in how can I fix this?

    When I open Firefox it is suppose to take me to my Yahoo home page. But it opens up showing my wifes Yahoo sigh in page in stead of mine. Having trouble with Yahoo home page sign in. Some time it brings up my wife's Yahoo log in instead of my log in how can I fix this?

    Did your wife tick the box on the Yahoo sign in page to remember her for two weeks?
    It would be best two have two separate Firefox profile folders, one for each of you to prevent such problems.<br />
    Then you also do not have problems with deleting or changing bookmarks.
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

  • I click a link but it doesn't open. Instead I get a popup saying "Open the link in a new window," "Open link in a new tab," etc. How can I kill this popup or whatever it is forever?

    I click a link but it doesn’t open. Instead I get a popup saying “Open the link in a new window,” “Open link in a new tab,” etc. How can I kill this popup or whatever it is forever?

    That happens if the server sends the file as text/plain.
    You can see this if you open "Tools > Page Info > General": Content-Type: text/plain
    Files send this way will always open in a tab.
    *https://developer.mozilla.org/Tools/Web_Console

  • How can i  apply this  java program for  a jsp page?

    import java.io.*;
    import java.util.*;
    public class FileProcessing
      //create a vector container  for the input variables
         Vector variables = new Vector();
      //create a vector container for the constants
         Vector constants = new Vector();
      /*create a string expression container for the equation
         as read from the file */
         String expression = " ";
      //create double result container for the final result
         double result = 0;
         public boolean processFile(String filename,String delim)
          //index for values vector
              int num_values = 0;
          //index for constants vector
              int num_constants = 0;
          //current line being read from the external file.
              String curline = " ";
          //start reading from the external file
              try
                   FileReader fr = new FileReader(filename);
                   BufferedReader br = new BufferedReader(fr);
                   while(true)
                        curline = br.readLine();
                        if(curline == null)
                             break;
                    //determine the type of current interaction
                        boolean variable = curline.startsWith("input");
                        boolean constant = curline.startsWith("constant");
                        boolean equation = curline.startsWith("equation");
                        boolean output = curline.startsWith("result");
                   //on input variables
                        if(variable)
                          StringTokenizer st = new StringTokenizer(curline,delim);
                          int num = st.countTokens();
                          int count=0;
                          while(st.hasMoreTokens())
                               String temp = st.nextToken();
                               if(count==1)
                                    byte b[]= new byte[100];
                                    System.out.println(temp);
                                    System.in.read(b);
                                    String inputval = (new String(b)).trim();
                                    variables.add(num_values,inputval);
                                    num_values++;
                               count++;
                        // on constant values
                        if(constant)
                             StringTokenizer st = new StringTokenizer(curline,delim);
                             int num = st.countTokens();
                             int count = 0;
                             while(st.hasMoreTokens())
                                  String temp = st.nextToken();
                                  if(count==1)
                                       byte b[]= new byte[100];
                                       System.out.println(temp);
                                       System.in.read(b);
                                       String cons = (new String(b)).trim();
                                       constants.add(num_constants,cons);
                                       num_constants++;
                                  count++;
                        // on equation
                        if(equation)
                             StringTokenizer st = new StringTokenizer(curline,delim);
                             int num = st.countTokens();
                             int count = 0;
                             while(st.hasMoreTokens())
                                  String temp = st.nextToken();
                                  if(count==2)
                                       this.expression = temp;
                                  count++;
              // now we are ready to evaluate the expression
                       if(output)
                          org.nfunk.jep.JEP  myparser= new org.nfunk.jep.JEP();
                          myparser.setAllowAssignment(true);
                          for(int i=1;i<variables.size()+1;i++)
                             String name = "arg"+Integer.toString(i);
                             myparser.addVariable(name,new Double(variables.get(i-1)
                                                .toString()).doubleValue());
                          for(int i=1;i<constants.size()+1;i++)
                               String name = "arg" +Integer.
                                         toString(i+variables.size());
                               myparser.addConstant(name,new Double(constants.get(i-1).toString()));
                   //output is obtained as follows
                          myparser.parseExpression(expression);
                          result = myparser.getValue();
                          System.out.println("Assay value: "+result);
              catch(Exception e)
                   System.out.println(e.toString());
              return true;
         public static void main(String[] args)
              FileProcessing fp = new FileProcessing();
              fp.processFile("input.eqn",":");
    }//my text file name is: "input.eqn" (given below)
    input:Enter Value1:arg1
    input:Enter Value2:arg2
    input:Enter Value3:arg3
    constant:arg4
    constant:arg5
    Equation:arg1+arg2+arg3
    result:

    how can i apply this java program for a jsp pagewhy do you want to do this ?
    Your program reads from a file on the disk and formats based on a patterm.
    Jsp is not intended for such stuff.
    ram.

Maybe you are looking for

  • Export selected item as PNG with Alpha

    Hello. I'm building game graphics in Illustrator.  I have thousands of individual sprites to export, up until now I've been copying and pasting in Photoshop and exporting through there, but that is tedious and slow.  Inkscape has an option to export

  • SQLs erver migration performance issue

    We are performing migration from oracle to MSSQL server 2005 (Windows 2003/SAP 4.6D).Our target system configuration is like below: ->OS - Windows 2003 x64 ->DB - MSSQL server 2005 SP4 ->SAP - 4.6 D kernel ->CPU - 4 processors (2.67ghz each) ->RAM -

  • Converting SCOM Management Packs to excel format

    Hi All, How to convert Management Packs (sealed/unsealed) to MS Excel format? I know about MP Viewer and MP Author tools which open up the MP and shows its rules/monitors/discoveries/workflows/etc. But I have some customers who first wish to see the

  • About sccheck error.....

    Hi When I run the sccheck utility to check the cluster, I get the following error. root@n1 # sccheck sccheck: n2: Explorer run failed: sccheck: n2 error: Unexpected early return from server. sccheck: n1: Explorer run failed: sccheck: n1 error: Unexpe

  • Foreign trade - legal control.

    Hello, Could you please tell me what skills/informations are needed to configure the Legal control? I mean although I understand the function and know how to configure, I have to read the foreign trade law to map the law into the system. I think the