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;

Similar Messages

  • How to hide parameters values from address way?

    Hello!
    I have a servlet with a simple Authorization Form.
    I want to send the inputted values of login and password to the second servlet and I want to go to that second servlet.
    I see the inputted values of login and password in the address way of the second servlet. How can I hide it from there?
    Thanks beforehand!
    Denis.

    Use doPost() in your second servlet and method="post" in your <form> tag.

  • 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.

  • How can hide parameters in url (calling reports)

    hi,
    in portal i'm running reports.
    report url is like this;
    http://myportal/reports/rwservlet?report=report.rdf&p_userid='||v_userid||'&cmdkey=conn_ybs_1'
    when antone calls report the userid parameter shown in url.
    for example;
    http://myportal/reports/rwservlet?report=report.rdf&p_userid='||65874||'&cmdkey=conn_ybs_1'
    i don't want to show parameters value to users
    how can hide this parameter in url?
    thanks.

    in portlet i get userid
    v_userid := wwctx_api.get_user;
    and use v_userid the following portlet.
    bq. &lt;HTML&gt; \\ &lt;BODY&gt; \\ &lt;ORACLE&gt;declare \\ p_authid varchar2(50); \\ p_personel_turu varchar2(1); \\ v_userid varchar2(10); \\ begin \\ p_authid := wwctx_api.get_user; \\ p_personel_turu := substr(p_authid,1,1); \\ v_userid := substr(p_authid, 2,8); \\ htp.p(' \\ &lt;table border="0" width="100%" cellpadding="0" cellspacing="0"&gt;&lt;tr&gt;'); \\ if p_personel_turu = 'I' then \\ htp.p('&lt;td width="100%" bgcolor="#7496ec" align="left"&gt;*{size:2}{color:#ffffcc} &lt;img border="0" src="\img\resimler\bullet\bullet.gif" align="middle" width="19" height="19"&gt;{color}{size}{font:Verdana}{size:2}{color:#ffffcc}D&ouml;rt Aylık Vizite Kağıdı{color}{size}{font}*&lt;/td&gt; \\ &lt;/tr&gt; \\ &lt;tr&gt; \\ &lt;td width="100%" bgcolor="#ffffff"&gt;{font:Verdana}{size:1}{color:#006699} İş&ccedil;i Personel D&ouml;rt Aylık Vizite Kağıdı{color}{size}{font}'); \\ htp.anchor(curl=&gt;'http://myportal/reports/rwservlet?report=report.rdf&p_userid='||v_userid||'&cmdkey=conn_ybs_1',ctext=&gt;'*{font:Verdana}{size:1}tıklayın.{size}{font}*&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="100%"&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;',cattributes=&gt;'target="_blank"'); \\ end if; \\ htp.p('&lt;/tr&gt;&lt;/table&gt;'); \\ end; \\ &lt;/ORACLE&gt; \\ &lt;/BODY&gt; \\ &lt;/HTML&gt;

  • How To Hide Adobe Tool Bar in Web Dynpro For Java.

    Hi To All,
                I'm using NetWeaver 2004's. In Project i require to Hide Adobe Tool Bar.I already used Hide Reader Tool Bar Button from  Standard Library for Web Dynpro.But it was not Working. I want Programatical way to Hide Adobe Tool Bar.
      Can anybody Help me out.
    Regards,
    Roop Kumar.Annavarapu.

    Hello,
    this is possibble. please check the following code part:
    // Get interactibe form handler. interactiveFormID is the ID of the
    //interactive form assigned to the form at the designtime on the  
    //interactive form UI element property sheet.                     
    IWDPDFDocumentInteractiveFormHandler iFormHandler =               
       WDPDFDocumentFactory.getDocumentHandler(wdThis.wdGetAPI(),     
            interactiveFormID);                                                                               
    // Get appearance setter.                                         
    IWDPDFDocumentAppearance appearance =                             
       iFormHandler.getDocumentContext().getAppearance();                                                                               
    // Hide tool bars.                                                
    appearance.hideToolBars(true);                                   
    I hope this helps.
    Best regards,
    Dezso

  • How to hide a contact in Address Book?

    May I hide certain contacts in Address Book?

    I'm assuming you don't want to hide a contact from yourself ... it sounds like you just need to start using the multiple-user nature of OS X (System Preferences - Accounts). Use one login for yourself, and set up others for anyone else who uses your computer (or one "general" account for everyone else - make sure you set it as Standard and not Admin). They will have their own address book, and yours will remain private.
    Matt

  • How to hide the menu bar and Dock

    Howto hide the menu bar and Dock on Mac, I found a tutorial that addfunctions esto info.plist this
    <key> LSUIPresentationMode </ key>
    <integer> 4 </ integer>
    But does not work  which you know another way to do this?

    I have played with 'LSUIPresentationMode' in the past - I may be wrong but I think a value of "1" (and "2" for that matter) only really works in combination with 'LSUIElement' set to a string value of "1". The 'LSUIElement' property of course does away with the application's own menu items so isn't ideal for most applications and since you mentioned using "1" instead of "4", I assume you want your menu items visible all the time.

  • How to Create simple WCF/REST (JOSN,get and post) and deploy to Sharepoint 2013 Server.

    HI All,
       I wan to create a simple WCF/REST service and deployed to SharePoint server , i have created some sample svc file and put in to _vti_bin folder using SharePoint solution using vs 2013 but its not accessible from IIS its always asking the Widows
    Authentcation .
    however my exact requirement is custom service should be accessible without asking the authentication like _vti_bin/Listdata.svc is there any way to do like this ? 
    my reference:
    http://platinumdogs.me/2013/03/14/sharepoint-adventures-with-the-rest-api-part-1/
    http://msdn.microsoft.com/en-us/library/office/jj860569(v=office.15).aspx
    http://dotnetmentors.com/wcf/wcf-rest-service-to-get-or-post-json-data-and-retrieve-json-data-with-datacontract.aspx
    http://stevenhollidge.blogspot.in/2011/09/wcfwebapi-rest-json-services.html
    Thanks
    SujilKumar
    Software developer

    Hi Sujil
    Greetings. pls check this link
    http://social.technet.microsoft.com/wiki/contents/articles/24194.sharepoint-2013-create-a-custom-wcf-rest-service-hosted-in-sharepoint-and-deployed-in-a-wsp.aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How to hide parameters in the URL ?

    Hi,
    Iam using Reports 6i on web. Now Iam calling report from a report (Drill done report) using SRW.SET_HYPERLINK.
    Iam passing lot of parameters to this detail report.
    When I call the main report the URL looks like:
    http://devreports.wwt.com/dev60cgi/runrep.sh/15369?
    But when I click on the link in this main report for details, the detail report URL looks like this.
    http://devreports.wwt.com/dev60cgi/runrep.sh/15369?emp_detail&p_emp=45&p_job=clerk&p_format=PDF
    Iam hiding userid/passwd@database in the cgicmd.dat file
    I want to hide all the other parameters also like
    the Main report URL :
    http://devreports.wwt.com/dev60cgi/runrep.sh/15369?
    How to do this ?
    Please help me if anybody has the solution.
    Thanks alot.

    Hi Ram,
    Not sure if this is possible.
    However, one workaround might be the following:
    1. Write a javascript that submits the URL using, say a POST method, and does not show the parameters in the URL. You will have to write this javascript code in the "Before Report" Report Escape. For a generic example on how to use javascript in a report, see Metalink Note 125652.1. This note shows javascript to disable the right-click of the mouse on the report output.
    2. Use the Hyperlink peroperty of the report to call this javascript function, eg,
    javascript:myfunction('http://machine:port/reports/rwservlet?report=...+server=...+empno=&empno')
    I am not a javascript expert, so I cannot give you an example of the function, but I hope someone in your team can find out.
    Navneet.

  • How to hide parameters on URL

    Hi,
    I pass some parameters by URL while changing my BSP pages. How can I hide them so that they would be not visible in browser?
    Thanks in advance.

    Refer below link. It will solve your problem.
    Hide url Parameters
    <i>*Reward each useful answer</i>
    Raja T

  • How to hide document message bar

    Hi Guys,
    as you can see in the screenshot, how can i hide the document message bar in adobe reader 11?
    (sorry the text is in german)
    Thanks in advance!
    Greez
    Gerald

    primaryStage.initStyle(StageStyle.UNDECORATED);

  • How to hide the menu bar from a Transaction iView (SAP GUI for HTML).

    Hello all,
    I have created a simple SAP Transaction iView of type SAP GUI for HTML.  This iView has the Menu bar that has the buttons: Menu, Back, Cancel, and System.  My requirement is, I dont want to see the menu bar that has these buttons.  How do I go about it?  Please advice.
    Note:  My iView is a SAP Transaction iView and not IAC service related iView. 
    Thanks
    Vicky R.

    You'll want to set the parameter ~webgui_simple_toolbar in your webgui service.
    It is a binary parameter with the following values/options:
    0  : Hiding the page header completely (not recommended)
    1  : Standard setting
                        This is the recommended standard setting in which the title and the menu bar below it with the [Exit] and [Help] button and the application buttons are displayed.
    2  : Displaying the title line
    4  : Displaying the buttons [Exit] and [Help]
    8  : Displaying the active system buttons on the screen ([Back] and [Cancel])
    16  : Displaying the system menu
    32  : Displaying the application buttons
    128 : Deactivating the information block in the status bar (new)

  • How to hide parameters?

    Hi
    I have list of some products on my jsp page. If you click some product hyperlink is constructed like this:
    products.jsp?id=smth&smthelse=smthelse
    but I don't want my parameters to be displayed in URL.
    I created buffer page where I put my parameters in session attributes and then called response.sendRedirect(products.jsp) but URL remains the same (bufproducts?id=smth&smthelse=smthelse).
    Please help me.
    Thank you in advance.
    Qand.

    You can set them as session or request attributes on the click using onClick() and then let the next page load. Alternatively, you can have a form on your page that is hidden, and have the HREF cause the form to be submitted with the parameters you want. The form parameters aren't displayed in the browser's url bar.
    However, if you never want people to see these variables (they are sensitive data), using some sort of session or request attribute is probably best since that data is only on the server.
    Hope that helps.
    Michael

  • How to Hide infopath Tool Bar

    hi,
    i have a Infopath form library , so i have some custom button on the form which i want to use for save,close. i want to hide all the tool bar items from the ribbon bar except the PrintPreview.
    just PrintPreview should be enabled.
    below is the screen shot.
    Thanks
    sal

    In InfoPath Designer, click File -> Form Options
    You can select which buttons appear on the Ribbon there.
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

  • How to hide 'Sign In' bar from anonymous users

    Hi guys,
    I am using a custom master page for a site. I want to hide the top white bar which contains the sign in link, for anonymous users; and display the sign in link somewhere else.
    I followed some other questions and wrapped "ms-designer-ribbon"
    in a Security Trim web part, but it still shows the bar for anonymous users.

    You can check the below thread
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/d06897e5-b36d-4c65-bf77-c6ebc75d4e76/hide-sign-in-link-sharepoint-2013?forum=sharepointdevelopment
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

Maybe you are looking for