Servlet \ IE Address Bar

Hi,
I have a page in which users fill out a form and then ithey press the send button. The send button generates a request to a servlet via the GET method and passes it all the arguments. Now the user is taken to another page (LETS call it 'PAGE A'). This 'PAGE A' is dynamically generated by the servlet (through println statements). Now here is the problem, on this page the browser address bar shows the servlet along with the arguments . Now if a user hits refresh , the arguments are passed to the servlet AGAIN. I want to stop this form hapening. Therefore, right now I am foucssing on using something which puts clears the browser bar and instead puts dummy arguments to the servlet. The servlet would catch those dummy argumetns and nothing when that happens. Any ways to do this OR other ideas and suggestions are most welcome.
NOTE: Including some sort of pageID in the argument list isnot an option.

I forgot to post one additional thing. I dont know whay the following this wold not work with the servlets:
HttpServletResponse.sendRedirect(HttpServletResponse.encodeRedirectURL("yourURL"));.
Also, what would be he procs and cons of using the above sttement to put a dummy argument and if the user hits a refresh, it could be caught as a filter and then

Similar Messages

  • Unable to invoke Servlet Directly in address bar in Weblogic10.3

    Hi,
    I am trying to invoke the servlet directly in the address bar as below
    http://localhost:7004/servlet/loginToApp
    but It's giving me following error :
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI...................
    but the same servlet is getting invoked when I use it in jsp form submit
    <html>
         <body>
              <form method="post" action = "http://localhost:7004/servlet/loginToApp">
                   <input type="submit"/>
              </form>
         </body>
    </html>
    in web.xml I have
    <servlet>
              <servlet-name>loginToApp</servlet-name>
              <display-name>loginToApp</display-name>
              <description></description>
              <servlet-class>abc.Common.ClientBeans.LoginToApp</servlet-class>
    </servlet>
    <servlet-mapping>
              <servlet-name>loginToApp</servlet-name>
              <url-pattern>/servlet/loginToApp</url-pattern>
         </servlet-mapping>
    This works fine on Weblogic 8.3.
    Please Help here.

    Hard to tell exactly.
    I note that your JSP page does a "POST" submit, whereas when you enter the direct URL of the servlet on the address bar, it'll result in a "GET" request.
    <form method="post" action = "http://localhost:7004/servlet/loginToApp">
    I don't know what error WLS will return if the servlet can't handle a GET, but it may be something to look at.
    Do you have a doGet() method in your servlet code?
    -steve-

  • Http redirects not changing url in address bar

    I'm going crazy trying to fix a major bug in our application. Http
    redirects are not changing the url in the address bar of the latest versions of internet explorer. But this only happens if the redirected page is an xml page with an xslt reference for the browser to do the transformation. Mozilla seems to work fine, but I seem to have encountered a major bug in Internet Explorer. If anybody can help or at least point me in a direction I'd be SO grateful. This doesn't seem to be a java servlet specific issue, but that's what we're using so I thought I'd ask the question here too.
    We have an MVC type framework we developed. For example, if you were to add something to a shopping cart, the url might be:
    http://ecommerce.com/cart/add?sku=54321. In the add servlet, we would add the sku to your shopping cart and then redirect to, let's say,
    http://ecommerce.com/displaycart. I think this is how most MVC frameworks work. And it works great for us.
    The problem began when we started sending XML to the browser with an XSLT stylesheet. So now the browser does the transformations (if the browser is capable of doing them, which we check) instead of the server. This is a major part of our project. One of the reasons we started this.
    The problem is that Internet Explorer no longer updates the url in the
    address bar after a redirect. Mozilla works great though. We haven't
    tested on other xslt capable browsers yet. In the example above, what would happen is after adding something to your shopping cart, the "displaycart" page would be shown but the http://ecommerce.com/cart/add?sku=54321 url would be shown in the address bar. It wouldn't seem to be too big of a deal since everything works. But now all the relative links are messed up. They start from the "cart" directory. So we need absolute links. But that introduces many other problems. We then need to know the host and the parent directories (not as easy as it seems).
    So is there a solution? Is this a big bug that nobody has realized yet (or maybe they have, but my searches don't see it) in internet explorer? Is there a way for the redirected url to appear in the address bar from a browser-based xslt transformation in internet explorer? By the way, I'm testing with the latest version of IE6.0 as of July 7, 2003.
    When testing, redirects work perfect if I do the xslt transformation on the server side and just send plain html to internet explorer. And it works perfect with either serverside or browserside xslt transformations in mozilla.
    Scott Mueller
    AccelerateBiz Incorporated

    As I've been reading in the specs, microsoft, etc, it seems that it's not what's supposed to happen. But the specs are not very specific about this. However, internet explorer DOES always replace the url in the address bar with the redirected url if HTML is being returned from the redirected servlet. As is the case with all other browsers. So, at least, this behavior is the de-facto standard.
    BUT when the redirected to page is an xml page which references an xslt stylesheet.. then, ONLY in internet explorer, the original url is what's shown in the address bar (and, more importantly, what's used as the base url). Regardless of what the links look like or how they're manipulated in the transformed HTML that ends up being shown, I can't seem to make the url in the address bar the redirected url..

  • How to Hide userid and password in the address bar

    Hello Dears
    I am using OAS 10g and calling a form from my web portal designed in ASP.Net. I pass userid and password to OAS as parameters and form is accessed but the problem is that userid and password are displayed in the address bar. How can I hide this info to secure my application.
    Note: This is a multi-user environment.
    Please guide. thanks
    Inayat Qazi

    On your reports server in the reports\conf directory there is a file called cgicmd.dat
    This file allows you to create a key that will be replaced with the entry from this file. You can put your userid and password parameters in here and thus remove them from the address line.
    Key value entries look like this in the file:
    examplekey: userid="scott/tiger@myoracleinstance" %*
    your url would then look like this:
    http://myreportsserver/servlet/rwservlet?examplekey&report=myreport.rdf&destype=cache

  • How  to do getRequestDispatcher().forward with client address bar changed?

    getRequestDispatcher().forward will not change the address bar of client, this will cause some problem,
    Following is our webapp folder:
    /test1/a.jsp(This page include <img src="images/1.gif" ....>)
    /test1/images/1.gif
    /servlet1 (This is a servlet with the code getRequestDispatcher().forward("/test1/a.jsp") ) When run /servlet1 , the image "1.gif " can not display, because
    it refers to "/images/1.gif" and not "/test1/images/1.gif".
    Is there any good idea to resolve this problem?
    Thanks!

    The standard solution is to use a <base> tag to indicate to the page where relative links should be resolved from.
    eg
    <head>
    <base href="http://www.myserver.com/test1/images/a.jsp" />
    </head>
    <body>
    <img src="images/1.gif" ....>
    </body>You can build it dynamically using request.getServerName(), request.getContextPath()...
    Struts provides a <html:base/> tag which does this for you.
    Cheers,
    evnafets

  • Hiding .jsp name in the address bar

    hello ,
    first i want to describe my problems.i have a .jsp file and i want to replace the .jsp name to another name in the address bar.
    i want to hide the .jsp name in the address bar.
    can u give an example code.then i understand more details.
    thanks

    I'll give you an example of how this can be done in Tomcat and in essence it should apply to any servlet container.
    Tomcat has a web.xml file in it's conf directory that decides the basic mappings etc for ALL webapps in this tomcat instance. Now, if you wanto to do this just for a particular webapp then edit the web.xml file for your webapp.
    If you want to call your files /something.foo all you need to do is map this extension to the jsp servlet for interpretation. Otherwise it will be treated as a text file.
    <!-- The mapping for the JSP servlet -->
    <servlet-mapping>
    <servlet-name>jsp</servlet-name>
    <url-pattern>*.foo</url-pattern>
    </servlet-mapping>
    You can add all the mappings you want. All you're really doing is masquerading the .jsp extension.
    Hope this is what you were looking for.
    Charlie

  • Can no longer enter data in the address bar {url Bar}, it correctly follows data from google search bar. It was a 1 month old installation so not a lot of complications

    I was not adding anything to Firefox. I Refused tool bars embedded in several application installs on this new computer. Was working fine. Then had a problem with Google search, restored default values and re-tooled Firefox. At this point all worked fine. Then my url, address bar changed color to the same color as the program shell, a grey brown as opposed to the white it was before. With the change in color it no longer allows me to change the data showing in the bar. I can not delete or add data. I used to add a url and navigate to the domain. Now I can not

    Greetings,
    TY for the reply, the information was enlightening to be sure. I never knew safe mode was an option with Firefox. I have so many tasks running that I didn't want to shut things down. What I did is turn off some of the last plug-ins I installed. That did not fix the problem at least in the first look. What happened next was very interesting none the less. I had a moment of mouse spastic wrist syndrome and accidentally moved a tab in such a way that it opened in a new window. The URL bar was white and editable. So I moved all my tabs to the new window and everything works as it should. I have restarted Firefox this morning and it came back with the bar editable and I am speechless to understand what I may have done to correct the problem if anything ??

  • All the lettlers on my desktop and in the address bar appear as symbols. Also, I can't run firefox because it keeps giving me a crash report. I'm running Vista, if that helps.

    This is my parent's computer. Here are the facts: After using facebook the previous evening, the next time the computer was used all of the desktop displayed symbols instead of letters/words. Upon trying to open Firefox a window labeled Firefox crash report opened. No matter what options you choose (send report, don't send, etc) when you click on an option, another Firefox crash report window opens. So I can't open Firefox. Simple solution would be to uninstall Firefox and reinstall it; however, it is very hard to navigate the computer with no words and all symbols. I am able to open up Internet Explorer, but anything in the address bar or search bar also appears as symbols. If I were to type in a specific site in the address bar, the site will load properly in words but the address bar still shows symbols. After much playing around, I was able to update Avast antivirus and run a full scan and nothing was found. I updated Malware Bytes and ran in for an hour but it never fully finished running before I had to leave. Please help.

    Try to disable hardware acceleration.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    If disabling hardware acceleration works then check if there is an update available for your graphics display driver.
    Try to toggle some Boolean gfx.font_rendering prefs on the about:config page to disable some features.
    Filter: gfx
    Some to try:
    * set gfx.direct2d.disabled to true to disable Direct2D
    * set gfx.font_rendering.directwrite.use_gdi_table_loading to false.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default or changed via the right-click context menu.

  • When I drag and drop an icon from the address bar to the desktop is does creat the shortcut but will not display the website icon, only the firefox icon, how can I display website icons?

    When I drag and drop a website icon from the Forefox address bar to the desk top, the short cut is created but the icon that appears is the firefox Icon. I want to disply the icon from the website that the short cut refers to. I have checked all I can think of in my computer to no avail.

    You have to assign the favicon yourself to the desktop shortcut (right-click the shortcut: Properties) after you have dragged the link to the desktop.
    You can usually find the favicon in Tools >Page Info > Media and save the icon there.
    Otherwise use the main domain of the website and add favicon.ico (e.g. mozilla.com/favicon.ico ) to display the favicon in a tab and save that image to a folder.

  • I can no longer access websites through the location bar (address bar).

    A few days ago, my location bar (address bar) suddenly stopped working. When I typed in an address and clicked on Enter, nothing happened - and I mean nothing. The cursor at the end of what I had just typed into the location bar just sat there, blinking at me. Clicking on the arrow at the right end of the location bar didn’t work either. On the other hand, if I clicked on a link in a website or e-mail, I would be taken right to the website at the other end of the link. And when I clicked on a bookmark, I was taken to the bookmarked site. It is only when I type or paste something into the location bar that I am unable to reach the sought after website. Exiting and then re-entering Firefox did not help, nor did rebooting my computer. I was using version 6.0.2 at the time. I upgraded to version 7.0.1; that didn’t help either. Help!!!

    That is a signature symptom of the "AVG Safe" extension in the Link Scanner component of AVG Free, but you don't have that extension on the computer you posted from, see http://kb.mozillazine.org/Problematic_extensions
    There is also these which you don't have either
    Top of Firefox window non-responsive, toolbars non responsive -- also see [http://kb.mozillazine.org/Problematic_extensions Problematic extensions]
    *caused by Yahoo Toolbar -- https://support.mozilla.com/questions/890908
    *caused by Babylon Toolbar -- https://support.mozilla.com/questions/890670
    Try disabling the Foxit PDF creator as it has an ask.com authorship signature.
    If that doesn't work see if Firefox works in Safe Mode. If it does it is probably an extension problem.
    # Restart in (Firefox) Safe Mode with Help ("Alt+H") > "Restart with Add-ons disabled" to restart immediately (one-time) in safe mode. Do not check-mark any of the items (they are certainly not safe as they make those changes permanent).

  • I can no longer get my address bar, back or foward buttons, tool bar, menu bar or anything else. How can I restore?

    When I open Firefox I do not get an address bar only Google comes up. I don't get a back or forward button nor do I get the tool bar or menu bar. There is no default button. I read the forum but I can not make any corrections because I don't have a tool bar displayed. I am using 3.6. When I turn off my computer and then turn it back on, the default settings still do not return.

    It is a long while since I tried Google Toolbar, I am not sure what it changes. But I would not expect it to totally remove your options to use the ordinary toolbars.
    ■ Try
    * press the''' alt '''key on the keyboard, that may return the menu bar
    * once you have the menubar '''View -> Toolbars ->''' and select which you need
    * you may also use View-> Toolbars -> Customise and drag items back or use the restore default set option.
    * right clicking on the toolbars also gets you to the customise and show toolbars options
    ■ have a look at [[Back and forward or other toolbar items are missing]]
    PS
    I hope you do not need to resort to editing registry settings, the firefox 'dragons' in prefs are user friendly compared with Windows registry. Messing up firefox prefs only really affects firefox normally; whereas errors in a registry edit may prevent you from even booting the computer.

  • The Url History in the address bar is not working anymore. Reinstalling/Updating does not fix this. How to I get this working again?

    I'm talking about the Address Bar.
    For example: You type in Google and it shows www.google.com etc. Because this is in your history.
    But this has stopped working since I emptied my cookies. But not my history. I also checked if my history is still there. Which it is.
    And I cant find out why at all.
    I'm sorry if I really can't give much info. But this is what I concluded. Seeing English ain't my native language. My google searches for this question seem to be either in the wrong direction or this is something that never happened before.

    Tools>Options>Privacy - Click the drop down menu under Location Bar and set when using the location bar, suggest to - History and Bookmarks.

  • If you view Firefox in full screen can you get favourite toolbar to appear with the address bar?

    When you put Firefox in full screen all the toolbars disappear. When you hover over the top of the screen the address bar and 'open tabs' bar appear. Is it possible to get the favourites toolbar to appear as well?
    If not is there any other way to access favourites without having to close Firefox?

    You can also toggle that setting if you hover the mouse to the top and right click a toolbar to open the toolbar context menu: Hide Toolbars.
    That won't show the bookmarks toolbar AFAIK even if it is selected. You can access the bookmarks via the Bookmarks menu button if you place that button on a visible Navigation Toolbar or Tab bar.
    Add code to userChrome.css below the @namespace line to make the Bookmarks toolbar visible in full screen mode.
    * http://kb.mozillazine.org/userChrome.css
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #PersonalToolbar[moz-collapsed="true"] { visibility: visible !important; }</nowiki></pre>
    * http://kb.mozillazine.org/Editing_configuration
    * ChromEdit Plus: http://webdesigns.ms11.net/chromeditp.html

  • ATTENTION MOZILLA DEVELOPERS!!!! I have had numerous issues all occuring within 24-48 hours,The latest is location/address bar not working completely! Who has solutions and fixes that actually work???

    Windows 7 32bit Firefox 3.6.1.1 .... I really liked Firefox until recently!!!!
    I'm not even going to explain all the problems I have had in the last 2 days, but i will tell you i have read so many forums and have done A LOT of fixing, 8 hours worth!! So before someone suggests for me to try a common fix I have done almost all things like. <br />
    Disable extensions<br />
    Disabled/Remove add ons<br />
    Tried all in safe mode<br />
    Deleted files in Firefox Profile<br />
    Renamed files in Firefox Profile<br />
    I have done almost everything except remove Firefox and use a different browser. <br />
    What gets me most is this site (Mozilla support) is the least helpful!! i have found solutions that worked off of Non Mozilla forums!!<br />
    Ok here goes...... <br /> 1. Auto complete works in location/address bar, when I click ENTER on keyboard or click the blue arrow in address bar NOTHING HAPPENS!!! I can go to bookmarks click on one and it will go right to the page! It's like the address bar is dead! <br />2. I have NO search engines in the search bar located right next to address bar, the only solution I found for that called for typing commands in the address bar, which i can do but it wont do anything!!!<br />
    Please keep in mind I did a full Google search on these problems and have found that a lot of people have the same issues regardless of Firefox versions or Operating systems!! <br />
    This is my last attempt to get accurate and proven solutions/fixes to these problems before I wash my hands of Mozilla, I'm sure someone will tell me to just do it!!!<br />
    I am hoping to get knowledgeable responses to this post!!
    THANKS,
    Robert
    I just found out this: Posted November 3, 2010 8:12:18 PM PDT:
    When I go to Firefox profiles folder i have 3 different profiles all with default at the end!!! Which one do i rename and wgich do I delete? See issues just keep getting stickier a more complicated!!!
    Thanks,
    Robert

    You can locate the current [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] this way:
    *Help > Troubleshooting Information > Profile Directory > Open Containing folder
    If the 11.01 & 11.02 are empty backups then make sure that create a backup of the other .json backups elsewhere as soon as possible to avoid losing backups that may still work.
    The other profiles appear to have older bookmarks. You can check the file compatibility.ini in a profile to see which version of Firefox last used that profile.
    A possibility is to create a fourth profile to test each of the JSON backups and check which bookmarks they store. If you open that profile with the -no-remote switch then you can copy and paste bookmarks from one profile (instance) to another profile. Both profiles need to be open at the same time to do that.
    See http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile
    http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox

  • I want name on address bar goes to home page, not search engine

    Just today I hooked up a new modem/router that I purchased at a WIndstream store. I have been browsing the internet for years with Firefox. I have changed the keyword.url setting in my Firefox configuration (see https://support.mozilla.com/en-US/questions/833252#answer-197476) so that the new version would act like the old version and go directly to the webpage when the name was typed in the address bar. For example: when I type in "windstream" (no ".net" or".com") I would go directly to windstream' home page.
    However, when I hooked up my new modem/router I my browser is hijacked and goes to a Windstream search page. I have tried everything from re-installing Firefox, re-changing the "keyword.url" setting, I even tried the Firefox ad-on here (https://addons.mozilla.org/en-us/firefox/addon/browse-by-name/).
    All to no avail......there is something that has changed by adding Windstream's hardware and connecting to their network that will not allow me to use this function of Firefox.
    Nothing else changed, but a new piece of hardware.....
    Changed keyword.url to : http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=
    Re-installed Firefox after cleaning all history and cookies.
    Tried the add-on "Browse by name"
    Wasted my time calling Windstream tech support.
    Changed to openDNS
    Tried to disable the feature through Windstream's web page, but then it just happens with the new search engine.

    Opt-out of Windstream's search service: Type in something to get their sneaky web search page to come up, then click the tiny link at the bottom right "about this page". That sends you to a page where you can opt-out of their service.
    To opt-out from their "valuable" sneaky service, you have to choose to opt-in to another search service.
    You have to do this with each browser. And it still sends you to your search engine's results page, not to your URL the way you might want it to.
    I would rather the default be to allow me to opt-in if I choose to, not have to jump through hoops to find out how to opt-out. It's taken me weeks to discover this. Annoying!

Maybe you are looking for

  • Number of Messages for a Topic

     

  • Re: How to add targets manually, in OEM 12C, through command line...

    I am trying to add the rac targets using emcli interface. Before adding rac_database as target type we need to add a cluster. I Used the following command to add a cluster but it fails with internal error. and the log files do not show any error. Any

  • Dynamic Link Premiere and After Effects CS4

    I am new to owning the whole suite, so I did not realize that you could use dynamic link. I figured out that I could import premire projects into AE (without linking) I just imported them and assumed I would create my effects and render out the proje

  • Something wrong with sleepmode?

    When my MacBook is in sleepmode with the lcd open, I can hear a sound after a few minutes from the dvd-drive and then the mac is out of sleep mode.. Is this normal? Should I always close the monitor to enter sleepmode instead?

  • Damaged and Lost Data - URGENT HELP

    Can anyone help me. I need to recover some data from a usb stick that has become corrupted. It seemed as though the stick had hung so after a bit i took it out and now it sees nothing when plugged in apart from a weird file. Although if I perform a v