How to hide parameters showing up in browser when using jsp?

I am a jsp newbie. I have a simple form like this:
<form type=post action="http://localhost:8080/MyTestServer/TestCodes.jsp">
<table>
<tr>
<td>Your name <INPUT type=text name="YourName" value="Your Name"></td>
<td>Your ID <INPUT type="password" name="YourID" value="Your ID"></td></tr>
</table>
<br><input type="submit" value="Submit">
</form>
and part of TestCodes.jsp codes are simply like this:
String name=request.getParameter("YourName");
String ID=request.getParameter("YourID");
It works fine.
However, my problem is, in the browser, it shows like:
http://localhost:8080/MyTestServer/TestCodes.jsp?name=John&ID=12345
I dont want those parameters are shown in the browser.
Pls tell me how to hide them. Thanks a lot.

Hanna wrote:
<form type=post action="http://localhost:8080/MyTestServer/TestCodes.jsp">
Your form is written wrong. "type" is not the right attribute.
<form method="post" action="http://localhost:8080/MyTestServer/TestCodes.jsp">Since no method attribute was given, the browser defaulted to GET. Also note that you should always quote your attribute values.
You should read up on GET and POST. There's a little more to it than whether parameters are "hidden" or not.

Similar Messages

  • How to hide parameters in bar address ? (GET vs POST)

    Hello,
    I have to develop a web application and I would like to resolve some security issues.
    My problem is that, when I pass parameters from a stored procedure to another, every parameters are shown in the bar address.
    According to you, what is the best solution ?
    I have tried to use the POST method for forms but it only works for one button.
    Example :
    /* -------- Form -------- */
    HTP.PRINT('<form name="subProjectManagement" action="./C3bd7.incr2n.addSubProject">');
          HTP.PRINT('<input type="hidden" name ="p_id_proj" value="2060" />');
          HTP.PRINT('<input type="hidden" name ="error" value="" />');
          /* -------- "Add" Button -------- */
          HTP.PRINT('<input type="button" name="add" value="Add" onClick= this.subProjectManagement.submit()/>');
          /* -------- "Delete" Button -------- */
          HTP.PRINT('<input type="button" name="delete" value="Delete" onClick="Delete()"');     
    HTP.FORMCLOSE;- When I click on the "Add" button, the procedure addSubProject is called and the parameters are well hidden in the bad adderss.
    - For the "Delete" button, I made a different process because I can't put two different submit buttons in one form. In another word, the POST mechanism can't work for the "Delete" button so I do not know how to hide parameters in this case.
    As for direct links, I do not know what do to.
    Example :
    HTP.PRINT('<a href="./c3bd7.incr2n.subprojectList?p_id_proj=' ||p_id|| '">Go back</a>');- I am using this kind of link to switch from a page to another, and once again I do not know how to hide the parameters...
    The official documentation encourages to use cookies (http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_web.htm#CHECAHEB) : is it easy to implement ?
    Thank you a lot in advance !
    Best regards.
    Edited by: user11922628 on 12 janv. 2010 04:42

    Hi,
    if you willing to investigate how one could reuse session variables, then that might offer you some solution. Browser session variables can be passed on from page to page. Trouble is, back and forward browser buttons don't work so well.
    P;

  • How do I always show a Firefox icon when dragging a URL shortcut to the desktop?

    Win 7 Pro 64
    When dragging a URL shortcut to the desktop, I sometimes get the websites favicon regardless if the site has a favicon or not.
    How do I always show a Firefox icon when dragging a URL shortcut to the desktop?
    Thank you

    LIke many others, I had the same problem with v.26. I had a whole slew of URL shortcuts that the icons went to blank white squares. Here is what I did to fix: First I put them all in a folder to make sure there weren't any left on the desktop.
    Next, I opened that folder, went to the first shortcut and double clicked it to open the web page. When it opened, I used the mouse to drag the URL onto the desktop creating a new shortcut. Again the white square icon resulted.
    So I right clicked the shortcut, clicked on "Properties" and under the "Web Document" tab, clicked "Change Icon". A new pop-up window opens that attempts to find a new icon in the windows shell files.
    I instead clicked "Browse" and inserted the directory path to the Firefox program file:
    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    SIX icons were shown, the top left being the familiar white square with the Firefox logo, which I selected, then clicked my way back out on the "OK" buttons.
    NOW, I opened each URL link in the folder, and once opened in a new browser window, dragged the URL's to the desktop and NOW Firefox assigned each one the new correct icon automatically. Once done with all the shortcuts, I deleted the old ones from the folder and the folder itself. End of problem. Now when I save new shortcuts by dragging URL's to the desktop it saves them correctly.

  • How can I show additional tab rows when using many open tabs?

    How can I show additional tab rows when using many open tabs?

    What method (code) did you use to get the Tab bar displaying in the space used for the Navigation Toolbar (location bar)?
    The Tab bar should be displayed above the Navigation Toolbar.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • [svn:fx-trunk] 10545: Make DataGrid smarter about when and how to calculate the modulefactory for its renderers when using embedded fonts

    Revision: 10545
    Author:   [email protected]
    Date:     2009-09-23 13:33:21 -0700 (Wed, 23 Sep 2009)
    Log Message:
    Make DataGrid smarter about when and how to calculate the modulefactory for its renderers when using embedded fonts
    QE Notes: 2 Mustella tests fail:
    components/DataGrid/DataGrid_HaloSkin/Properties/datagrid_properties_columns_halo datagrid_properties_columns_increase0to1_halo
    components/DataGrid/DataGrid_SparkSkin/Properties/datagrid_properties_columns datagrid_properties_columns_increase0to1
    These fixes get us to measure the embedded fonts correctly when going from 0 columns to a set of columns so rowHeight will be different (and better) in those scenarios
    Doc Notes: None
    Bugs: SDK-15241
    Reviewer: Darrell
    API Change: No
    Is noteworthy for integration: No
    tests: checkintests mustella/browser/DataGrid
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-15241
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase .as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColu mn.as

    Hi Matthias,
    Sorry, if this reply seems like a products plug (which it is), but this is really how we solve this software engineering challenge at JKI...
    At JKI, we create VI Packages (which are basically installers for LabVIEW instrument drivers and toolkits) of our reusable code (using the package building capabilities of VIPM Professional).  We keep a VI Package Configuration file (that includes a copy of the actual packages) in each of our project folders (and check it into source code control just as we do for all our project files).  We also use VIPM Enterprise to distribute new VI Packages over the network.
    Also, as others have mentioned, we use the JKI TortoiseSVN Tool to make it easy to use TortoiseSVN directly from LabVIEW.
    Please feel free to contact JKI if you have any specific questions about these products.
    Thanks,
    -Jim 

  • How do I resolve "Error processing your request", when using Download link in My Orders (photoshop 5

    How do I resolve "error processing your request" when using the download link in My Orders for photoshop 5

    As Jeff already hinted at, try a different browser. Such issues almost always are local problems on your end. Something is either changing or blocking the HTTP headers used for forwarding (could be your router, a desktop firewall or other security tools) or a JavaScript is not running/ being blocked.
    Mylenium

  • How to turn OFF trackpad on MacBook Air when using Magic Trackpad

    How to turn OFF trackpad on MacBook Air when using Magic Trackpad. Anyone have a clue on how to do this?

    Do you get more than one trackpad in system preferences? If not, which trackpad does it show in the "movie" in Preferences?

  • How do I have my phone Make sound when using "Find my phone" app

    How do I have my iPhone make sound when using "find my. Phon" app?

    You can have the app send you an email when it is found, and you can set your email tone under settings-> sounds

  • How to add interface to customlize MXML Component when use Flex Builder 3?

    How to add interface to customlize MXML Component when use
    Flex Builder 3?

    David,
    I don't believe you can add the interface via the creation
    dialog in FlexBuilder 3. You can always manually add the
    "implements" property to your MXML Component root tag. Something
    like this: <mx:VBox implements="com.mycorp.IMyInterface">
    If you want autogeneration of the interface, then create an
    ActionScript class with that interface and then copy the generated
    functions and setter/getters into the script block of your MXML
    component.

  • How can i upload files in servlets and also using jsp

    means that uploading files(.doc) or any files by using servlets and jsps

    yawmark wrote:
    saichand wrote:
    means that uploading files(.doc) or any files by using servlets and jsps
    [http://www.google.com/search?q=How+can+i+upload+files+in+servlets+and+also+using+jsp]
    ~Good topic titles are indeed brilliant search keywords. It's sad to see that it won't even come in the mind of the topicstarters to Google it before posting the topic.

  • How do I create columns in my text when using pages?

    How do I create columns in my text when using pages?

    Presuming you are using Pages 5.2.2:
    select the text > choose the number of columns in the Format > Layout sidebar
    Peter

  • How to code the function of  add+delete+edit using jsp??

    how to code the function of add+delete+edit using jsp??i'm also using the ms sql server 2000 as a database. pls help me!!

    Hi,
    I think you will find the following useful.
    Performing Inserts, Updates, and Deletes
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/inserts_updates_deletes.html

  • How do i get passed the billing step when using my apple id to download apps

    how do i get passed the billing step when using my apple id to download apps on my ipod touch

    DId you enter a valid payment method?

  • Nokia N97 How to hide images from the photo browse...

    I'm not even going to ask about how to hide sensitive images, i just deleted them, but still
    there are several programs that use images for they're normal behaviour, i had this same issue
    with my nokia n95, but i simply set the image atributes of the pictures i didn't want to show in the photo browser,
    and that solved the problem, but with my new n97 this is of no use, i also tryed setting the image atribute as sys file
    and that did not solvet either... Please help, i do not like having 500 images from a software showing up in my gallery...
    Thanks in advance

    how to move image from gallery to a certain album (not copy)

  • How to hide hidden files in Java Browser

    My application has a browser. I use the following method from FileSystemView
    public File[] getFiles(File dir,
    boolean useFileHiding)
    with false as the second argument so that the browser doesn't display hidden files.
    It doesn't work completely.
    I found out there are two types of hidden files in Mac. the ones that being with "." (unix based) and the ones that have an invisibility attribute for the meta of the file (folders like /usr, /bin, /tmp, /etc).
    The getFiles filter works only for hidden files that start with "." but it still shows the second type of hidden files.
    For the second type of hidden files in Mac, how can I get the invisibility file attribute information in Java so that I can hide them from the file browser?
    I am aware of GetFileInfo and the SetFile tool allows setting those flags. But how can I call those functions from java? And once i get the attributes of a file I don't know how to apply a filter to FileSystemView?
    thanks,

    The GetFileInfo tool that ships with the XCode Tools can display the file's information. Additionally, the SetFile tool allows setting those flags. How you use java to implement those, I suggest you ask at the Unix forum under OS X Technologies.

Maybe you are looking for

  • Why is so hard to get a good deal when it's time to upgrade!

    I dont understand this at all, All I Want is to get the same service plans as my neighbors and family. I have been a Verizon Fios customer since the service was introduced years ago. And, I was never happier, until it came time to upgrade.  And it ha

  • Not able to access CAS service through Endeca workbench: getting an error "CAS Console must be accessed through Workbench"

    Getting an error while accessing the Datasource tab through Endeca workbench "CAS Console must be accessed through Workbench". Verified both ws-extensions.xml and casconsole.properties files which exists under %ENDECA_TOOLS_CONF%/conf, both files sha

  • Link to interactive report with filters

    I want to put a link to a page with an interactive report. But the link should setup a filter for the interactive report. For example, if I'm looking at a client, I want a link that sends me to the activity reports, but filtered to show only that cli

  • Safari 3.2.1  OS X 10.5.8

    I desperately need to update the web browser but nothing seems to work. I've tried the softward update icon which shows no update available and tried downloading manually updates for my OS X 10.5.8. Any ideas?

  • [ ? ] Targetting function inside imported SWF

    Hi, Is it possible to target function that's inside imported (or Loaded) swf file? I want to load external swf file into my fla project file, and then with a press of a button (for example) trigger a function that's inside that imported (or Loaded) s