How can i execute some code in a jsp page on the same page ? plz read.

I have made a single JSP Page where in i want to delete users, create users, update table data.
I have all the UI on the first page. Now i want to write my all JDBC coding on just this single page. I don't want to create 3 separate pages. Can it be done ?

This is my page !!
I have 3 separate pages insert.jsp, delete.jsp, update.jsp to implement the jdbc coding. I know that i can get it done by calling a single jsp page using URL rewriting. But i want to code for events on this very page only.
<%@page language="java"%>
<%@page import="java.sql.*"%>
<HTML>
     <BODY>
          <form method=post action="insert.jsp">
               Username:<input type=text name=username><br>
               Password:<input type=password name=password><br>
               <input type=submit>               
          </form>
          <hr>
          <form method=post action="delete.jsp">
               Username:<input type=text name=username><br>
               <input type=submit>               
          </form>
          <hr>
          <form method=post action="update.jsp">
               Username:<input type=text name=username><br>
               Password:<input type=password name=password><br>
               <input type=submit>               
          </form>          
     </BODY>
</HTML>

Similar Messages

  • How can I change fullscreen background color, so that it is the same when viewing on mac and iPad? I want this to be able to use MathType in widget text.

    How can I change fullscreen background color, so that it is the same when viewing on mac and iPad? I want this to be able to use MathType in widget text.
    As an example, html widget has white background on iPad, and black on mac. The same goes for interactive widget.
    The MathType text inserted is inserted as a image, and will have the same color when in fullscreen as when not. So I need the textcolor to be the same in both views. Anyone know how to fix this?

    We're still not communicating. This is why I wanted an example .iba.
    Here's a re-creation of my own, going off what you described. You said "all html widgets and all gallery widgets" have this problem. So I inserted a blank HTML widget and a blank Gallery widget, and typed into both. Inserted a MathType equation into both. I don't see any difference when I preview it on my Mac compared to the preview on the iPad. I want to help, but I can't help if I can't duplicate the issue.
    I've attached the screen shots and the .iba file [link to .iba file].
    Feel free to email me directly at bobm at dessci dot com. If you're uncomfortable giving some information here, tell me anything you want in email. I work for the "MathType company", Design Science.

  • How can I listen to itunes and play a game at the same time on my ipad 4?

    How can I listen to itunes and play a game at the same time on my ipad 4? This means I need to run 2 apps at the same time itunes and my game.  The game has its own sound control so I can turn off its sound while i listen to itunes tracks.  But I don't know how to set it up so the ipad does both.

    Anytime you open an app that has a persistant sound stream - a movie, a podcast, some games - it will overide the music app's stream. nothiong you can do to change it.

  • Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Thank you Joe - I tried this but it's only showing a teensy amount of music - the stuff on the second users account as opposed to the giagntic library on the 'main' account. I actually went to a Genius Bar and they said that apple doesn't really want you to share music between accounts - parents don't want to hear their kids music etc. Which seemed strange, but it might be the case sadly   Thanks anyway!

  • How can i copy my itunes library to another computer in the same household?

    How can I copy my itunes library to another computer in the same houehold?

    If you just want to share the iTunes library with other computers in your house: http://support.apple.com/kb/ht3819
    If you want to move the iTunes library:
    For Windows: http://support.apple.com/kb/ht1364
    For Mac: http://support.apple.com/kb/ht1449

  • Can 2 different users with 2 different Iphones use the same itunes to backup each phone separately? if not how can I have a backup for 2 different iphones on the same laptop?

    can 2 different users with 2 different Iphones use the same itune program to backup each phone separately? if not how can I have a backup for 2 different iphones on the same laptop?

    Here is your answer:
    http://support.apple.com/kb/HT1495

  • How can i share purchased apps between 2 diff users on the same mac?

    How can I share purchased apps between 2 diff users on the same mac?

    A purchased app is associated with an Apple ID. A user with a different Apple ID cannot use the app unless they also use the same Apple ID.
    I cannot use my wife's apps nor she mine because each were purchased with different Apple IDs.

  • How can I edit multiple clips with different frame rates on the same timeline

    how can I edit multiple clips with different frame rates on the same timeline

    You do not want to edit material from different frame rates on one timeline. You CAN do this, but it is a very bad idea - and this is why.
    Once you establish the sequence frame rate - lets say it is PAL material at 25fps, any material that you drop into the sequence other than 25 fps will have to be changed to play at 25 fps. If the material you add is NTSC (29.97), FCP will DROP 5 frames per sec to bring the frame rate down to 25 fps. Which 5 get thrown away? Every 6th one. This yields a funky cadence that becomes even more complex as as there are also interlaced fields (DV/NTSC is an interlaced format). Oh, and by the way, the image sizes are different as well. DV/PAL has 576 lines of resolution and DV/NTSC has 480. FCP has to scale up the NTSC to fit the PAL frame.
    You do not want FCP adjusting these things on the fly. You want to do a thoughtful (and time consuming) conversion so that you end up with all your material in one format with the best possible image from the conversion process. Compressor can do an adequate job with Frame Controls turned on. The Natress Standards Conversion FCP plugin is another way to go. A third option is to find a post house that can do the conversion for you using a hardware based process.
    The good news is, once everything is in the same format, editing it will be painless and the output process very quick.
    Whatever frame rate/ image size you select, I'd suggest using ProRes for the codec. It is 4:2:2 color and will withstand color correction and composting with much more grace than any variant of DV based codecs.
    Have fun.
    x

  • HT1660 how can I use one single library for all users on the same laptop?

    how can I use one single library for all users on the same laptop?

    You are most of the way there. Each user having access to hard drive is the key. If users are limited in file privileges this is harder.
    Any files you add to your library and any files she adds to her library are available to the other. Just not automatically. Each user must add the files to their own library using the add file or add folder option from menu bar.
    What I have done is set library location to a location outside of My Documents\My Music. On my network storage I have a folder names s:\itunes. Both accounts iTunes are set to use this location for the library.

  • My ipad imessages are coming up on my husband's iphone. Is that because we share an apple id account. How can we have separate apple id's and still share the same music library.

    my ipad imessages are coming up on my husband's iphone. Is that because we share an apple id account. How can we have separate apple id's and still share the same music library.

    The biggest problem I have is with cross texting. My friends send my a imessage on ipad to ipad and it comes up as message on my husband's phone as well as my ipad?
    My friends definitely do not want my husband seeing their texts. (and I dont really need him to see my responses either)
    Also, apple id is based on my email account, how do I create a new apple id without setting up a new email account?

  • How can I open two screens of Adobe digital editions at the same time?

    How can I open two screens of Adobe digital editions at the same time?

    I doubt that you can. Doesn't the Sound prefpane require you to select just one output device?

  • How can you listen to music and play a game at the same time?

    How can you listen to music and play a game at the same time?
    I am playing music, by starting the Crash Baandicoot Nitro Kart 3D game it shuts off the music playing. Is there a way around this?
    It seems like this should be possible.
    Message was edited by: RuthlessVengeance
    Message was edited by: RuthlessVengeance

    Select the music play list you want to listen to and start it playing. Go back to the home screen and start the app you want to use, music will stop. Press the home button two time quickly and it will bring up a simple control for controling the music. This works for me with all of the apps I have purchased including games. Just a note you can pull up the same music control if the iPod is a sleep and locked by pressing the button three times quickly.
    Mike

  • How can i get my playlists on my pc to be the same on my laptop

    how can i get my playlists on my pc to be the same on my laptop

    It is possible, but only a certain amount of times, youll have 2 chk support, but i is possible!

  • How can i transfer iPhone 3G photo to iPhoto without repeating the same photo to iPhoto?

    How can i transfer iPhone 3G photo to iPhoto without repeating the same photo to iPhoto?

    Sorry, you question doesn't make sense. If you're trying to import photos, in your camera roll, to iPhoto, iPhoto doesn't import them twice.

  • HT201272 I downloaded a TV show directly to my IPAD, how can I download that TV show to other devices on the same account without paying twice?

    Title says it all...
    I downloaded a TV show directly to my IPAD, how can I download that TV show to other devices on the same account without paying twice?

    Whether you can re-download them for free depends upon what country that you are in - tv shows can't be re-downloaded in all countries. If they show in the Purchased tab in the iTunes app on your other devices, or the Purchased link under Quick Links on the right-hand side of the iTunes store home page on your computer's iTunes then you can re-download them. Otherwise you can copy them from your iPad to your computer's iTunes via File > Transfer Purchases and then sync them to your other devices.

Maybe you are looking for

  • Error while running client program

    Hi, I am writing a sample program. Below is the server code. package helloWorld; import javax.jws.*; @WebService public class HelloWorld {      @WebMethod      public String hello() {           System.out.println("Print data");           return "Test

  • How to finish ABAP program in the process chains

    Hello All, we have one ABAP program in the process chains which was created in the BW system only. this program we are using in the synchronous mode. according to my understanding we can not capture the failure of the ABAP program when it is in the s

  • How to split a condition value across line items with varying percentages?

    Hello, can anyone suggest how this can be resolved.  This is the scenario.  My client wants to be able to determine pricing for a sales document with a wide range of conditions.  One particular condition contributes to the total price of each sales i

  • Database session rollback.

    How can I issue a database session rollback from within an ADF jpanel? Here are a few things I tryied: I used: panelBinding.getOperationBinding("Rollback");      -->This does not seem to rollback anything. panelBinding.releaseDataControl(); panelBind

  • Application Items - is there a way to find all pages containing an item?

    Hello, I'm taking over support on an APEX application which uses application items. There's no documentation on design so I'm having to go through the app manually to understand it. Is there a way to see which pages a given app item has been used on?