Info is being reposted if web page is refreshed after submission

hey all
i just finished my first web app. its a basic web app that gets input and puts it into the DB and refreshes the page with the new info on it. now, once you submit the info once, if u press refresh and click ok (this page as to repost data...) and same info gets submitted into the DB again. is there a way to keep this from happening?
thanks

sorry i didnt know u needed more info
here's the code
<form method="post">
<input type="submit" value="Tag The Wall"  />there is obviously more code, but the rest just deals with the input text fields. there are 2 fields where users type info in, and 2 hidden fields with logging information that is sent back to the db trhough the web page
my sql lines
<c:if test="${param.name != null}">
     <sql:update dataSource="${datasource}">
          INSERT INTO message (name,usermessage,postinfo,postedfrom) VALUES(?,?,?,?);
          <sql:param value="${param.name}" />
          <sql:param value="${param.usermessage}" />
          <sql:param value="${param.postinfo}" />
          <sql:param value="${param.postedfrom}" />
     </sql:update>
</c:if>
<sql:query var="messages" dataSource="${datasource}">
     SELECT name, usermessage, postinfo FROM message;
</sql:query>

Similar Messages

  • I can't keep the web page zoomed out, after I click a link or go to a differnet page, it goes back to being zoomed in, what can I do to keep it that way?

    I went to the toolbar, clicked on View, then Zoom, then Zoom Out. It does Zoom Out, but after I click a link or go to another web page, it Zoom's right back in. How do I keep it Zoomed Out where I want it permanetly?

    If you need to adjust the font size on websites then look at:
    * Default FullZoom Level - https://addons.mozilla.org/firefox/addon/6965
    * NoSquint - https://addons.mozilla.org/firefox/addon/2592

  • Help with using a web page from disk after saved from web

    Hi, I almost forgot the little I learned about web page development, so, I'm a total noob when it comes to this and I need your help.
    I saved as a complete web page on my hard disk this web page but when I open it in Firefox or IE, it doesn't display as much as I need it. I'm mostly interested  in displaying the logo images as they appear on the original web page. The browsers just show them briefly when refreshing but hide them right away. I can see the image files downloaded to my hard drive and if I open the page in Dreamweaver it displays these images  in the preview pane but I can't make them show in the browsers. From Dreamweaver I saved the page as in the folder where the images are and this also updated the code with the relative image links but the browsers still don't show them.
    I will greatly appreciate your help with this.

    I'm sorry, but your post is very confusing
    I saved as a complete web page on my hard disk this web page
    Does this include site definitions?
    when I open it in Firefox or IE, it doesn't display as much as I need it.
    I dont know what this means...are there images that are not being displayed?  Is there styling that is not being rendered?
    . I'm mostly interested  in displaying the logo images as they appear on the original web page. The browsers just show them briefly when refreshing but hide them right away.
    Again, I dont know what this means?
    I can see the image files downloaded to my hard drive and if I open the page in Dreamweaver it displays these images  in the preview pane but I can't make them show in the browsers. From Dreamweaver I saved the page as in the folder where the images are and this also updated the code with the relative image links but the browsers still don't show them.I will greatly appreciate your help with this.
    Do you have a link to the page, and perhaps some explanation that is more clear as to what your issue is.
    Gary

  • Web pages are different after I publish-hyperlinks off, and more...

    I created eight web pages with hyperlinks on photos and text. The photo hyperlinks work, but the text links do not.
    Some of my formatting has changed after publishing. Most common example, I have a thin, white line above several photos. I've tried several ways to correct the problems, all to no avail.
    After I publish to a folder, how do I find the file size of what will be published?
    Thank you, in advance.

    Some of my formatting has changed after publishing.
    Most common example, I have a thin, white line above
    several photos. I've tried several ways to correct
    the problems, all to no avail.
    The easiest way to get rid of this white line...click on the affected photo, open up the Inspector and click on the Ruler tab. Now increase the height of the photo by one or two pixels. This should work.
    The other method is to select the affected photo, open up the Inspector to the Shapes tab and change the opacity of the photo to 99%. This should also work.
    Basically, both methods work by forcing iWeb to re-render the image as PNG by changing the photo ever so slightly.
    After I publish to a folder, how do I find the file
    size of what will be published?
    After you publish to a folder, just select the folder in the Finder and type "Apple-i" to get the size of the folder. Is this what you are after?

  • Safari web page finally works after opening it in another browser. Why?

    Hi!
    I have this issue since I got my new MBP 2013. Sometimes when I try to open a new page in Safari it fails to open. Then I tried to use another browser such as Firefox or Chrome and open the web page in one of those browsers and it works just fine. Then I refresh Safari on the exact same page that wasn't working a moment ago and now it works.
    Is there a way to prevent having to open the page in another browser and then opening it in Safari?
    Thanks for your help!

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Web page keeps refreshing every 20 or 30 seconds out the blue

    I play KOC on facebook and i run scripts on that as well...suddenly out the blue today the page keeps refreshing on its on for no reason...if i disable the scripts it stops....i removed all the scripts and downloaded them again just in case something is interferring and it still continues...can yall help?

    Eh After Cured the Problem
    I again faced this Blink problem
    and now
    it has completly Crashed my display Screen
    its all black
    its a color BLACK -
    my N95 got ****
    :9
    what shud i do Nowwwwwwww Arhgggggggggggggg
    the warranty is from another Country and i am somewhere else!!
    completly LOST!!!!!!
    DAM N95-
    Worst cell phone ever made
    k1

  • How do I get the page to refresh after a certain amount of time so it jumps back to beginning of one page site? Its for an exhibition

    Hi,
    I am in an exhibition space where I need to display my Muse website offline and locally on the desktop. I am looking for a way for the website to refresh after a certain amount of time so it can go back to the beginning of the page. Can someone help? Please!

    You can try the steps mentioned here :
    http://stackoverflow.com/questions/2787679/how-to-reload-page-every-5-second
    http://stackoverflow.com/questions/17886578/refresh-part-of-page-div
    http://crunchify.com/how-to-refresh-div-content-without-reloading-page-using-jquery-and-aj ax/
    Thanks,
    Sanjit

  • Info from applet back into web page?

    I know that information can be passed to an applet via <param> tags, but can information be passed back to the page from an applet, perhaps to a javascript or php function?

    Well, you can call JS-Methods using liveconnect and the JSObject Interface
    Note that the browser has to support this which is often not the case. However IE and mozilla should be fine most time.
    have a look at docs for more info

  • How to stop firefox from blocking secure info from reaching non-secure web page? It's causing purchased products to not be delivered

    This is a new problem that is showing up not only in my software but many others. My software uses PayPal to process online purchases. PayPal is an secure site. When the customer returns to our site they land on a thank you page. The thank you page must receive the ipn message from PayPal to know what product download page to load for the customer so they receive the correct products, which they just purchased.
    FireFox is blocking this information from the secure site to our unsecure site and causing the customers not to receive download information.
    FireFox used to work well with our product delivery system but the latest update is causing all kinds of problems. To you have a fix for this inconvenience you browser is causing customers and companies who use a third party processing system?
    Best regards,
    Steve Yakim

    What is the exact error you are receiving? This will help us diagnose the issue in a better way.

  • OS-X 10.5.8 and Firefox 5 update results in NOTHING being printed from web pages. Printer works w/everything on my PC EXCEPT FF 5.0

    Latest upgrades from FF have resulted in NO printing from FF. Using a Cannon MX870 via wireless

    Freeze happened again several times this week-end, always with this message in the system.log:
    NVDA(OpenGL): Channel exception!  status = 0xffff info32 = 0x6 = Fifo: Parse Error
    I now have a strong feeling that it's a graphic card/driver problem related to OpenGL.
    I have stumbled upon many discussions about this problem (also with iMacs, MBP), dating mostly from 2009 (with 10.5.2, several people waiting for a system update, but I'm running 10.5.8 and the problem is apparently still here), but nobody seems to really know what causes this freeze. Does anybody have an update?
    It'd be great to know whether it's a hardware or software problem, before I order a new graphic card… (again, several passes of both standard and extended Hardware Test didn't reveal anything wrong).

  • Only in Firefox, a button on my web page is disabled after going to a page, then back using the back button.

    I have a web application that contains a physicians search page:
    http://www.hshsmedicalgroup.com/SearchPhysician.aspx
    I do the following:
    Select "find a physician"
    Type "Smith"
    Press "search"
    Select Smith entry
    Press "back" on browser
    "search" button is now disabled
    Only happens when you get back using the Back button.
    This doesn't happen in I.E. or Chrome.
    I see the issue in Firefox 3.6.13, 4.0 and 4.01.
    OS: Windows XP, Windows 7 and Mac.

    I would suspect a slightly incompatible addon of causing that to happen.
    Do you have that problem when running in the Firefox SafeMode?<br/> ''A troubleshooting mode.''<br />
    You can open the Firefox 4.0 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut. Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut to open it again.''
    If not, see this: <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • Web pages not loading after removing **** blocker

    I installed a **** blocker on my iMac and was not able to open certain sites. I removed the **** blocker and still can't open sites (not ****). I ave unplugged and plugged. I have reloaded Safari and the OS X. I have downloaded software from anti-spam to malware and still I can't access certain sites.

    Any third-party software that doesn't install by drag-and-drop into the Applications folder, and uninstall by drag-and-drop to the Trash, is a system modification.
    Whenever you remove system modifications, they must be removed completely, and the only way to do that is to use the uninstallation tool, if any, provided by the developers, or to follow their instructions. If the software has been incompletely removed, you may have to re-download or even reinstall it in order to finish the job.
    I never install system modifications myself, and except as stated in this comment, I don't know how to uninstall them. You'll have to do your own research to find that information.
    Here are some general guidelines to get you started. Suppose you want to remove something called “BrickMyMac” (a hypothetical example.) First, consult the product's Help menu, if there is one, for instructions. Finding none there, look on the developer's website, say www.brickmymac.com. (That may not be the actual name of the site; if necessary, search the Web for the product name.) If you don’t find anything on the website or in your search, contact the developer. While you're waiting for a response, download BrickMyMac.dmg and open it. There may be an application in there such as “Uninstall BrickMyMac.” If not, open “BrickMyMac.pkg” and look for an Uninstall button. The uninstaller might also be accessed by clicking the Customize button, if there is one.
    Back up all data before making any changes.
    You will generally have to restart the computer in order to complete an uninstallation. Until you do that, there may be no effect, or unpredictable effects.
    If you can’t remove software in any other way, you’ll have to erase and install OS X. Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very hard to solve.
    Trying to remove complex system modifications by hunting for files by name often will not work and may make the problem worse. The same goes for "utilities" such as "AppCleaner" and the like that purport to remove software.

  • Delay in loading web pages using wireless after 10.5.6 update.

    I've read the posts for the 10.5.5 updates, but I have been recently experiencing this problem after updating to 10.5.6.
    It is seemingly a DNS problem because of the delay in "Looking up" and "Waiting for" in Firefox, but I do not have DNSchanger trojan. I have done everything from entering the known DNS statically, dynamically, OpenDNS on either or both the router and laptop.
    I experience no problems at all when connecting to the router directly w/ an ethernet cable. And my download speeds, whether P2P or a large file through webserver is similar to what I experienced before the 10.5.6 update.
    I understand that it could be my ISP, but I was surfing fine less than a week ago. Is it merely a coincidence that I updated to 10.5.6? Any further suggestions?

    Thanx! The numbers didn't help me anything, but your post reminded me: I found the DNS numbers that my ISP had provided that I had put in the Ethernet TCP/IP section in Network Preferences, and just copied and pasted them into my airport TCP/IP section. Worked great!

  • Macbook remembering web pages in  Safari after restarting??

    Is there a way to do this like in windows with Firefox etc?
    Ta

    After relaunching Safari, choose to reopen all the windows from the History menu. This requires Safari 3 or newer.
    (37732)

  • Auto-sleep won't work when web pages auto-refresh

    Dear Apple,
    Around 4 years ago, I noticed that my computer stopped going to sleep. I first noticed it shortly after adopting Gmail for my email platform and was subsequently able to isolate the issue down to Gmail and other websites, such as Huffington Post, which auto-refresh. Apparently, any website that auto-refreshes at shorter intervals than the auto-sleep is set to kick in, prevent the computer's auto-sleep function from activating.
    I have spoken at length with AppleCare about this issue and understand that this is "by design." For instance, we wouldn't want the computer to constantly go to sleep while watching a movie or downloading and conversely, if we are actively working at our computers it's nice that Gmail auto-refreshes and keeps us appraised of incoming mail. However, since the vast majority of users now leave their browsers with multiple tabs open and due to the fact that more and more websites now auto-refresh, the auto-sleep function has become outdated and non-functional. While users can always manually put their computers to sleep, everyone at some time or another forgets to do so. This is exactly why computers are supposed to auto-sleep in the first place. Aggregated across millions of users, this results in a huge waste of electricity.
    I've been writing/calling Apple (through AppleCare and the online feedback form) about this issue for 4 years now. I keep hoping that with each operating system release, some sort of "smart auto-sleep" function will be incorporated that will recognize when websites auto-refresh and still allow auto-sleep to kick in. Unfortunately, this does not appear to be the case in Lion.
    I work in the energy efficiency field, specifically in lighting, and care deeply about this issue. I consider Apple to be an industry leader on this issue as well. I'm not familiar with the technical side of this issue, but I assume that with the right type of programming, the operating system could override a webpage's auto-update feature and activate auto-sleep, while not interfering with functions where a user would not want the computer to go to sleep, such as watching a movie. With Lion, Apple has focused its energy on making the computer adjust to the user,rather than the user adjusting to the computer. Yet, in this case, it appears to be the other way around.
    It is time for Apple to update the auto-sleep function so that it takes into account websites that auto-refresh. When I set my computer to auto-sleep after so many minutes, I want it to do so, regardless of whether I have a browser with auto-updating websites open. Apple must take this issue seriously, as the wasted electricity is too important to ignore any longer.
    Sincerely,
    An Energy-Conscious User

    I am obviously talking to Apple AND I posted this letter here, because a lot users seem confused about why their computers won't sleep. Even most AppleCare reps are confused. In the past, I couldn't find much in the way of explanations pointing to this issue, so I thought I post it here in case other people are looking for an explanation.
    The auto-sleep function was built before websites auto-updated and needs to be updated to accomodate them. For the average user, it doesn't make sense for the computer not to sleep just because Gmail is open. Just because some website auto-refreshes in my browser, doesn't mean I never want my computer to sleep. By the same token, if I wanted to turn off auto-sleep I could easily do so from within Energy Saver Preferences. The two should be independent, so the user has the choice.
    Why should I have to close my browser every time I walk away from my computer in order for it to sleep? I've acknowledged that in certain circumstance it makes sense for the computer not to auto-sleep: watching a movie, uploading, etc, but Apple has already accounted for those instances because the computer does not auto-sleep when those programs are running. All I'm suggesting is making the auto-sleep mechanism more sophisticated so that it isn't overridden by websites auto-refreshing. 
    Why the negative attitude, dwb? Based on the amount of time you spend in these discussion forums, you obviously never turn your computer off, so this doesn't really affect you. Maybe it's time to step outside and get some fresh air?

Maybe you are looking for