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

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 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 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 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 AUTOMATICLY based on radio buttons being pressed

    I have multiple radio buttons and with each radio button I have parameters that appear on screen for user to enter data.   Is there a way to make the selection blocks appear and disappear automatily based on the user  pressing the radio button?
    My current coed works only if I press the enter key but not automatily when the radio button is pressed.

    hi, have a look this example, it works as u want.
    SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
    PARAMETERS: r_ps TYPE c RADIOBUTTON GROUP rd DEFAULT 'X' USER-COMMAND abcd, "radio button server
                   r_as TYPE c RADIOBUTTON GROUP rd . "radio button for application server
    SELECTION-SCREEN END OF BLOCK blk2.
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
    PARAMETERS: p_pfile TYPE rlgrap-filename MODIF ID ccc, "presentation server input file
                    p_afile TYPE rlgrap-filename MODIF ID aaa. "application server input file
    SELECTION-SCREEN END OF BLOCK blk1.
    AT SELECTION-SCREEN OUTPUT.
      IF r_ps = 'X' .
        LOOP AT SCREEN.
          CASE screen-group1.
            WHEN 'CCC'.
              screen-input = 1.
              screen-invisible = 0.
              MODIFY SCREEN.
          WHEN 'AAA'.
              screen-input = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ELSE.
        IF r_as = 'X'.
          LOOP AT SCREEN.
          CASE screen-group1.
            WHEN 'CCC'.
              screen-input = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
          WHEN 'AAA'.
              screen-input = 1.
              screen-invisible = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
        ENDIF.
      ENDIF.
    START-OF-SELECTION.
    Regards

  • How to hide dynamic parameters values in the URL with Reports 6i

    Hi,
    I want to know a way of hiding the parameters values when asking for a report through the web.
    Now I'm using the Reports 3.0.5.8 with a Cartridge defined in the Oracle Web Application Server 3.0.1.0.1. When you ask for a report with the parameters DESTYPE = cache and DESFORMAT = pdf, it is fully generated and in the Address or Location box of the browser, you can see http://webserver/cache/report.pdf (where cache is the virtual directory defined in the OWAS in which the .pdfs are cached). So, users cant see the Url used to generate the report.
    Im trying to upgrade this configuration to Reports 6i with Cgi in a web server. I generate reports with no problems. The problem I have is I cant find how to hide the parameters values as before. I mean, when I ask for a report, once its generated I can see http://webserver/cgi-bin/rwcgi60.exe?server=ServerName&report=report.rdf&userid=user/pass@connection&destype=cache&desformat=pdf&P1=value1&P2=value2 in the Location box. It allows user to ask for another report changing the values of the parameters. I use these parameters to execute some query written in the Data Model. For example, imagine that the P1 represents the company id, the user (that is supposed to see only data of its company) can change this id, ask for a new report and see data of another company.
    Ive already tried to use the key mapping option, but its not useful to me because the parameters values are dynamic and its impossible to define different entries in the cgicmd.dat for each possible value. The option of loading the parameter form before running a report is not useful to me either, because there exists specific screens for this purpose.
    Is there any solution?
    Thank you.
    Marma Bonfiglio.

    Hi Rakesh,
      I am using BI  7.0
    The last option I have is 'Hide' for 'Calculate single values as' .
    I have the below options  for 'Calculate single values as'
    1. Normalise  according to Next group  level  Resul.
    2. Normalize according to  Overall Result
    3. Rank number
    4.Olympic Rank Number
    5.Maximum
    6. Minimum
    7.Counter for all detailed values
    8.Counter for all detailed values that are non zero
    9.Moving average
    10.Moving average  That is  Not zero ,null or Error
    11. Hide.
    So could you please tell me where i can find 'suppress result' option for the keyfigure .
    Many thanks

  • HOW TO HIDE FIELDS IN A CUSTOM TABLE

    Hi all,
    I've a requirement where there's a maintainence view attached to  a custom created table. Whenever I add new entries via View, on saving the record, 2 of its fields only should appear.
    For example, if my table looks like this,
    SAP ID     OBJECT ID     FROM DATE     TO DATE
    Once i add a new record, when i press save, only 2 of fields say, SAP id and Object Id should appear instead of all the fields.
    Can someone throw light on this if you're aware? Any input in this regard will be highly valuable to me and appreciated. If someone is unable to intrepret this question, do let me know, I'll detail it again.
    Thanks in Advance,
    Vaishnavi Varadarajan

    hi Vaishu,
    Hide parameter / select option in selection screen
    We can Hide parameter / select option in selection screen dynamically by manipulating screen object.
    SCREEN is like an internal table with a header line. However, you do not have to declare it in your program. Go to debugging mode and then view structure of screen.
    You can modify SCREEN in your ABAP program during the PBO event of a screen. Its contents override the static attributes of the screen fields for a single screen call. The only statements that you can use with SCREEN are:
    LOOP AT SCREEN.
    MODIFY SCREEN.
    ENDLOOP.
    We can hide parameter by set screen-active to 0.
    Here is example of how to hide parameter in selection screen. Write it, and change click on radiobutton to hide parameter.
    REPORT ZAALGAL0006.
    DATA: d_ucomm LIKE sy-ucomm.
    PARAMETERS: p_grpa1(10) MODIF ID A,
    p_grpa2(5) MODIF ID A,
    p_grpb1(2) MODIF ID B.
    PARAMETERS: p_actA RADIOBUTTON GROUP rad1 USER-COMMAND ACT DEFAULT 'X',
    p_actB RADIOBUTTON GROUP rad1.
    AT SELECTION-SCREEN.
    d_ucomm = sy-ucomm.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT screen.
    IF p_actA = 'X'.
    IF screen-group1 = 'B'.
    screen-active = 0.
    ENDIF.
    ELSEIF p_actB = 'X'.
    IF screen-group1 = 'A'.
    screen-active = 0.
    ENDIF.
    ENDIF.
    MODIFY screen.
    ENDLOOP.
    START-OF-SELECTION.......
    pls refer the below sites for reference. they may help you
    http://www.blogtoplist.com/software/blogdetails-14026.html
    http://sap.ionelburlacu.ro/abap/sap2/Other_Useful_Tips.html
    https:/.../servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/905e3d36-0301-0010-30ac-b55865545635
    thanks
    sagar
    reward me points if usefull

  • How can hide the command line of a t.code in the portal

    Dear Experts.
    I have the following doubt:
    How can hide the Command Line of a Report that is called with a T.Code in the portal?
    Attach Image:
    [Image T.Code|http://www.freeimagehosting.net/uploads/eab3b6a03c.jpg]
    When I created a service using the T.Code SICF for the T.Code , I can hide buttons and the filed command line  using
    ~webgui_simple_toolbar
    ~singletransaction
    ~NOHEADEROKCODE
    With notes 1010519, "SAP GUI for HTML: Simplified Title Area Without Menu and OK Code" and 959417.
    But the problem is that when I create the service in the T.Code SICF, I also have that create an Iview IAC in the portal.
    The Question is : How can hide this fields and buttons if I want Publish the T.code using an Iview Transaction in the portal?
    In this moment I have used the two options:
    1 option) I created a service using the t.Code SICF for my Transaction and I also created an Iview IAC in the portal for call the service.
    RESULT:
    SAP Web Application Server
             500 Connection timed out
            Error: -5
           Version: 7000
           Component: ICM
           Date/Time: Sat Jun 12 20:26:39 2010 
           Module: icxxthr_mt.c
           Line: 2698
           Server: xyxab...
    Error Tag: {-}
    Detail: Connection to partner timed out after 60s
    2)  created an Iview Transaction  in the portal and  call my transaction.
    RESULT.
    [Image T.Code|http://www.freeimagehosting.net/uploads/eab3b6a03c.jpg]
    But not can hide the field Command Line and other buttons.
    I think that the command :
    ~webgui_simple_toolbar
    ~singletransaction
    ~NOHEADEROKCODE
    Only can be used if I create a service using the T.Code SICF .
    Best Regards
    Carmen.

    Hi Carmen,
    The bottom line is that this cannot be done for transaction iviews without modifying the standard webgui service in SICF, which is probably not a good idea (since it affects everyone using SAP GUI for HTML). (You could hack the appintegrator to add the ~webgui_simple_toolbar parameter to the transaction URL template in the portal, but again its not a recommended thing to do ...). Better to create an IAC service in SICF with ~webgui=1 where you set the required appearance using an appropriate value for ~webgui_simple_toolbar, and then create an IAC iview to point at this service.
    You can even override the ~transaction value configured in the new service in individual IAC iviews by entering the appropriate value in the application parameter of the iview, for example:
    ~okcode=/nSU01
    And you can pass parameters in the same way:
    ~okcode=/nSU01 USR02-BNAME=xyz;USREFUS-USERALIAS=abc;
    By the way, it would not be recommended to create a URL iview to access an IAC, since you are likely to encounter session management issues in this scenario - better to use an IAC iview.
    Regards, Rory

  • ORACLE 10g Reports- how to hide the parameter screen

    QUESTION:
    : I have a report that was designed in 6i. It has a parameter screen. Now I converted the report to 10g and pass parameters to the report from a form. Therefore the 6i parameter screen is not required. However, when I look into the report editor PAPER PARAMETER FORM icon, the old 6i parameter layout appears.
    HOW do I stop the 6i parameter screen from appearing? I dont need it anymore since the parameters are passed in from a form.

    Hi,
    Do this
    Go to DevSuiteHome_1\reports\conf\cgicmd.dat
    this file contains theMapping file for Oracle Reports
    see this link
    how to hide url (use, password and db) in oracle 10g

  • How to hide options from InfoView's "Schedule Report Page"?

    Hi,
    We are using Business Objects XI R2 InfoView (Java version) to schedule the reports.
    Whle schedling the reports, schedule page displays the following option to the users -
    1. When
    2. Database Logon
    3. Filters
    4. Destination
    5. Format
    6. Print Settings
    7. Server Group
    8. Events
    9. Parameters
    And I need to display only three options (When, Format and Parameters) to the user and want to hide the rest of the options from the user.
    Please let me know how to acheive this using the InfoView (Java version)?
    Thanks,
    Vicky

    Thanks for the reply.
    I do not want the user to enter / change the database logon information and other setting of the report. As I set those info using the CMC.
    And writing the our own pages using SDK will take lots of efforts and require java professionals for that.
    I only need to hide those options please let me know how to hide them.
    Thanks.
    Vicky

  • How to hide windows heading and border on WEB?

    How to hide windows heading and border on WEB? forms 6i.
    null

    Abdetu wrote:
    Thanks JeanYves
    i found that parameter but didn't know what to set to it i even has no forms in my pc thanks again
    Regards,
    Abdetu...Hi Abdetu,
    There is 3 parameters in the <DevSuiteHome>\forms\server.formsweb.cfg having the same behavior.
    Logo
    Background
    SplashScreen
    By default (if you don't have specified them in you [section] they values are inherited from the [default] section) the values are
    Logo=
    Background=
    SplashScreen=
    This means you will have the oracle logo, the Forms Services background image in your applet and the oracle splash screen at startup.
    *To have nothing shown then just put the value no in front of these 3 parameters*
    Logo=no
    Background=no
    SplashScreen=noYou can also customize that with you own gif files.
    For this you have to put your images in a icons.jar file
    place it in your <DevSuiteHome>\forms\java where frmall.jar and others are located.
    then in your formsweb.cfg :
    Archive=frmall.jar, icons.jar
    ImageBase=CodeBase
    Logo=yourlogo.gif
    Background=yourbackground.gif
    SplashScreen=yourbeautifullsplachscreen.gifAnd at least if you have a small gif in your icons.jar for the window you can also defining the Icon Filename property in Forms builder. This wile replace the default forms runtime icon.
    Hope this helps
    JeanYves

  • How to hide and resume a native activity in flex app

    what i want to do is like this:
    (1)start an activity by the native extension when lauching the application and then display a list for users to choose
    (2)make a choice and send it back to the flex
    (3)flex does something and then jump to the native list above for users to choose
    the problem is:
    how to hide the native activity in step(1) and how to resume it in step(3)?
    as the download of the native list wastes much time, i dont want to destroy the native activity and recreate it.
    can anybody help? i will be thankful!

    You probably know by now but I though maybe a could actualy
    answer someone question.
    {Application.application.parameters.name)
    put that in mx:text and you can see the var "name"

Maybe you are looking for

  • Gmail push and twitter/facebook notifications not working since ios 5

    I have not been getting any push email notifications, the device does not seem to be receiving any mail unless I fetch it manually or wait for the 15 min fetch schedual. Also, I am not getting any of the integrated twitter notifications. Any possible

  • Error in calculating aggregate time in sqlserver 2008

    Hi, iam working in an employee management application in which i want to find out intime, outtime, overtime of each employee in a day. following is working code create table #temp(empid numeric(18,0),empname nvarchar(50),intime datetime,outtime datet

  • How to use a lexical variable in a WHERE clause and as a function argument.

    Hello, My report has a lexical variable which has values like 'and id in (1,3,4)'. I want to use this variable in two separate queries. In the first, it is used in the WHERE clause, something like: .. where date is not null &var; In the second query,

  • Starting a process and getting presentation via URL

    Hi, I would like to do two things via an URL: First is starting a process (with a screenflow in the global activity) and second is seeing directly the presentation/screenflow of the current activity of a running process instance (without workspace).

  • Adobe CS 6 dialogue boxes opening off screen

    Hi all.  Since upgrading to Yosemite 10.2 all my dialogue boxes in CS6 (InDesign, Photoshop, etc) now open with the top half disappearing off the top of the screen (see image). I'm working on a dual monitor setup, and the problem is with my larger, s