Clearing / deleting parameters from url

hello, my servlet shows a table with customers. each customer has a link that calls the customer servlet with the parameter customerid, like this
so when the user clicks on the customer the url in the browser becomes
http://localhost:8080/customer?customerid=7
after the user edits and saves the customer the url remains the same, is there a way to make the url "http://localhost:8080/customer" after the user saves the customer data?
thank you

If you want to replace a table with 20 links, you can write inside a FORM like this one ...
<form name="planningForm" method="post" action="/gco/MOPO">
... the following code
<% int teller = 0;
for (Iterator i = rondeLijst.iterator(); i.hasNext(); )
%>
Meterronde meterronde = (Meterronde) i.next();
%>
<tr class="mopoTekst">
<td><input name="radioRonde" type="radio" value="<%=meterronde.getWijkRonde()%>"></td>
<td><div align="right"><%=meterronde.getWijknummer()%></div></td>
<td><div align="right"><%=meterronde.getRondenummer()%></div></td>
<td><div align="left"><%=meterronde.getOmschrijving()%></div></td>
<td ><div align="right"><%=meterronde.getAantalContractueleLeidingen()%></div></td>
<td ><div align="right"><%=meterronde.getAantalActieveMeters()%></div></td>
<td><div align="right"><%=meterronde.getAantalTeLezen()%></div></td>
</tr>
<% teller++;
} %>
The radiobutton which contains a number called "wijkronde" is used to let the servlet know which record has been chosen by the user to see the details of this record.

Similar Messages

  • How do I use the Parameters from URL to filter on Content Query in ItemStyle.xsl?

    Hi, I might need your help with code that Content Query under <xsl:Template...> that I need a filter for 3 parameter from url (from date, to date(for date range) and type.
    eg: www.mywebsite.com/pages/Filter.aspx?DateFrom=01/01/2012&DateTo=01/01/2013&Type=sports
    I've google for help and not sure they seem working so far.

    Hi,
    If you want to filter a Content Query Web Part with the parameters from URL, we can achieve it with OOTB of Content Query Web Part by adding "Additional Filters" in "Web Part Properties"->"Query". We can add
    three filters like:
    date is greater than [PageQueryString:DateFrom]
    And
    date is less than [PageQueryString:DateTo]
    And
    type is equal to [PageQueryString:Type]
    Then redirect to the URL: www.mywebsite.com/pages/Filter.aspx?DateFrom=01/01/2012&DateTo=01/01/2013&Type=sports, the query results will be filtered.
    Please reply freely if I misunderstand your meaning or there any other questions.
    best regards
    Patrick Liang
    TechNet Community Support

  • Passing parameters from URL to multiple iViews on a page.

    Hi Everyone,
    Could you please point me to a guide or howto, which explains on passing parameters from URL to multiple iViews on a page. I already know how to pass parameters from URL to a single iView (wiki).
    Thanks!
    Indy

    Hi Indy,
    Currently, passing parameters to the page which contains VC iViews is not supported, only directly in the iView's URL.
    Regards,
    Natty

  • Getting parameters from URL: use of Special Chars

    I'm unable to retrieve the Special Chars from URL parameters.  Does someone have an idea where to look for?
    Examples where no Special Chars is retrieved :
    ...App?param=Aménagement
    ...App?param=Am<é>nagement
    ...App?param=Am%E9nagement
    I'm using this code :
              IWDProtocolAdapter protocolAdapter =
                   WDProtocolAdapter.getProtocolAdapter();
              IWDRequest request = protocolAdapter.getRequestObject();
                                    String param = request.getParameter("param");
    Thanks!

    okay, So if I use :
    ...App?param=Am%E9+nagement
    How would you then integrate URLDecoder.decode in the following code?
    IWDProtocolAdapter protocolAdapter =
         WDProtocolAdapter.getProtocolAdapter();
    IWDRequest request = protocolAdapter.getRequestObject();
    String param = request.getParameter("param");

  • Extracting parameters from URL for forms 6i

    Is there a way to get the portal logged in user
    in a 9ias forms 6i web form. Also if I pass user-defined
    parameters through a link to forms 6i is there a way
    I can extract these parameters from the URL and get
    forms 6i to read them?
    Any ideas will be greatly appreciated.
    Thanks,
    Suzanne

    Hi Suzanne,
    all that you need to do is parse the url string
    It is made up of:
    ?[Parameter Name]=[Parameter]
    &[Parameter Name]=[Parameter]
    &[Parameter Name]=[Parameter]
    &[Parameter Name]=[Parameter]
    I have some code that converts a url string into a form and then submits the form.
    you could use this as a base to work from.
    Regards Michael
    CREATE OR REPLACE PROCEDURE FORWARD_TO_URL_P (P_URL IN VARCHAR2) IS
         vParameter VARCHAR2(4000);
         vValue VARCHAR2(4000);
         vProcedure VARCHAR2(1000);
         vString VARCHAR2(4000);
         vLength NUMBER(10);
         vQ VARCHAR2(4) := '?';
         vE VARCHAR2(4) := '=';
         vA VARCHAR2(4) := '&';
    BEGIN
         htp.p('<HTML><HEAD><TITLE>ASP 3</TITLE>');
         htp.p('<META HTTP-EQUIV="PRAGMA" CONTENT="No-Cache"></HEAD><BODY bgcolor="#f1f1f1">');
         vString := p_url;
         IF INSTR(vString, vQ) > 0 THEN
              vProcedure := SUBSTR(vString, 1, INSTR(vString, vQ) - 1);
              vString := SUBSTR(vString, INSTR(vString, vQ) + vLength);
         ELSE
              vProcedure := vString;
         END IF;
         vQ := vA;
         htp.p('<FORM METHOD=POST action="' || vProcedure || '">');
         WHILE NVL(INSTR(vString, vE), 0) > 0 LOOP
              vParameter := SUBSTR(vString, 1, INSTR(vString, vE) - 1);
              vString := SUBSTR(vString, INSTR(vString, vE));
              IF INSTR(vString, vE) = INSTR(vString, vE, -1, 1) THEN
                   vValue := SUBSTR(vString,vLength+1);
                   vString := '';
              ELSE
                   vString := SUBSTR(vString,vLength+1);
                   vValue := SUBSTR(vString, 1, INSTR(vString, vQ) - 1);
                   vString := SUBSTR(vString, INSTR(vString, vQ) + vLength);
              END IF;
              htp.p('<INPUT TYPE=hidden name="' || vParameter || '" Value="' || vValue || '">');
         END LOOP;
         htp.p('</FORM>');
         htp.p('<SCRIPT>');
         htp.p('document.forms[0].submit();');
         htp.p('</SCRIPT>');
         htp.p('</BODY></HTML>');
    END;

  • Delete File from URL located on HTTP Server.

    Hello All, could you anybody help me with my Problem. I need to delete some File in URL located on HTTP Server. The File was created via using of the Function 'DP_CONTROL_SEND_STREAM_TO_URL'. Any Times I need to delete this File from the url Location, but I cann't find any Functions or Method of any Class (GUI 6.20) to realise that. I read lot of very good Blogs from Thomas Jung about HTTP classes, but I cann't find somthing relevant for me...
    Sincerely Yours,
    Lubomir

    Hi,
    You can try with GUI_DELETE_FILE and give http location in FILE_NAME
    or WS_FILE_DELETE.
    I am not getting any CNDP function module for your purpose.
    Hope you will get sucess..
    Thanks,
    Chetan Shah

  • Delete JSESSIONID from URL

    Hi,
    I have created a web based application which uses FORM based authentcation. The application is developed in NWDS 2.0.16.
    When I deploy the application and access it in IE there are two parameters JSESSIONID and SAPLB which get appended to existing URL.
    I have set the context root of the application as myapp so for eg If i type in browser the following URL --> http://server:port/myapp and press go the application is loaded and the URL becomes something like this --> http://server:port/myapp/my.jsp;jsessionid=(J2EEXXXX)XXXXXXXEnd;saplb_*=XXXXXX
    I have tried an alternative by setting <i><url-session-tracking/></i> in web-j2ee-engine.xml file but still the JSESSIONID gets appended in the URL.
    Is there any way by which this JSESSIONID can be avoided in the URL as the problem is that if user adds the URL in Browser Favorites and then tries accessing the application it throws an error.
    <b>- Chintan</b>

    Hi Chintan,
    > ...
    > URL --> http://server:port/myapp and press go the
    > application is loaded and the URL becomes something
    > like this -->
    > http://server:port/myapp/my.jsp;jsessionid=(J2EEXXXX)X
    > XXXXXXEnd;saplb_*=XXXXXX
    >
    This is the default behaviour for the first request from the client. After that, by default, the session is tracked with session cookies. You can find the complete description here:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/25c82019068449ac97d585c905a0f2/frameset.htm
    > I have tried an alternative by setting
    > <i><url-session-tracking/></i> in web-j2ee-engine.xml
    > file but still the JSESSIONID gets appended in the
    > URL.
    I think with this configuration you set the behaviour to use URL rewritting. So this is the opposite of what you want to achieve.
    Best regards,
    Stefan Brauneis

  • Can't clear deleted events from my hard drive

    I guess I'm pretty new at this. I deleted a few events by hitting the delete key but my hard drive is still nearly full. I can't find them now under events or rejected clips or in my movie folder at all. I guess I need to learn how to delete them properly. But how do I now find those (now seemingly hidden) files and delete the properly?

    It's not that. My trash can is empty and re-emptying it doesn't help. The files are apparently hidden from my sight so I don't know how to select them and delete. I tried to do a word search for the title, but that also brings nothing. I had 44 gigs free before this new movie event and now I have only 5 gigs free. So it's got to be somewhere.

  • Passing parameters from URL to Forms 9i

    Hi,
    Can anyone tell me how I can pass a user-defined parameter into an Oracle 9i form running within a browser? I have tried passing it in the URL, by itself and as 'otherparms' parameter (otherparms=parm1=xxxx), but it does not seem to work. The documentation has no mention on how to do this (at least that I have seen). I'm sure there is a simple, obvious way to do this that I have completely missed!

    Anthony,
    it work the way you say it. The problem may be because you are running Oracle9iAS on Windows2000. There is a bug in accepting parameters passed in the request URL, requiring you to apply patch 1 (see metalink for patch 2705870).
    If you are on iDS then this should work. So let me knwo if this problem occurs on iDS or iAS
    Frank

  • How to hide request parameters from URL

    Hi ,
    I do not want to have userId of the logged on user in the URL as the request parameter.What options do i have ?

    Then, I do not need to build the URL as below
    http://localhost:80/app/something?userId=123
    and the URL would like:
    http://localhost:80/app/something

  • Retrieve parameters from url

    Hi All,
    I'll call my webdynpro using this url
    http://server_url:8012/sap/bc/webdynpro/sap/zhrtm_job_description?STELL=50106480&sap-client=040&sap-language=EN
    How can I retrieve the value of STELL ???? thanks in advance!
    Message was edited by:
            Stephan Kaminski

    Hello, Stephan,
    In your WINDOWS there's na inbound plug called DEFAULT. Insert the following code into it's methd:
    METHOD handledefault .
      DATA: l_url_parameters          TYPE tihttpnvp,
            l_url_parameter           TYPE ihttpnvp,
            l_stell                   TYPE stell.
      wdevent->get_data( EXPORTING name  = if_wd_application=>all_url_parameters
                         IMPORTING value = l_url_parameters ).
      READ TABLE l_url_parameters WITH KEY name = 'STELL'
                                  INTO l_url_parameter.
      IF sy-subrc EQ 0.
        l_stell = l_url_parameter-value.
      ENDIF.
    ENDMETHOD.
    Regards,
    Andre

  • Passing parameters from URL

    Hi,
    I have a got a URL like http://<Machine Name>/dev60cgi/ifcgi60.exe?form=Test&P1=1 to access a web form.
    I need to access the value of P1 as a parameter in When-New-Form-Instance Trigger of my Test form. Is there any way I can do that.
    Awaiting early reply.
    Regards.

    You can use the otherParams= url argument. I think that some examples of this have been given on the forum before - run a search

  • Passing parameter from url to procedure

    i used to pass parameters from url to procedure like
    host:port/dads/schema.procedure(para_1, para_2, ...)
    for example
    http://localhost:7777/pls/login('UK',1,0)
    they have been working perfectly before, when i had 8i and webdb.
    but now i'm running 10g, and browser returns error page 400 when i click the above links.
    i know i can do
    host:port/dads/schema.procedure?para_1=value1&para2=value2...
    for example
    http://localhost:7777/pls/login?language=UK&section=1&timezone=0
    and this is what have been suggested in documentation of 9i and 10g
    however i have quite a few webpages written in the former syntax and they used to work with 8i and 9i.
    i don't want to change all the links in web pages, i prefer to stick with old style.
    any one has any idea? is there a switch i should take care of? i checked apache conf files (httpd, mod_plsql, dads) but didn't get it.
    ps for 10g companion, i installed http server (apache) only, no html db.
    another question is
    with brackets() in url, strings are to be quoted by ' ', but with question mark (?), single quote ' ' must not be used, is that what it has to be?
    Thanks a lot

    anyone have been using this?
    http://host:port/dads/schema.procedure(para1,para2,..)

  • Clear cache from URL

    Hi ! I have a question !
    Is there a way to clear the cache of my entire application by passing parameters to my URL address ?
    For now, I have this URL : f?p=103:"+html_GetElement('P0_NO_PAGE').value+":"+html_GetElement('pInstance').value+":MODIF::12:
    but it clears only the cache of page 12.
    Anyone can help me ?
    Thanks, Chantale

    1) search for js example of call PLSQL on this forum
    2) from URL you can call that through Application process on demand (there are also some examples on forum).
    You can use both ways...what suits you more. I was using Application process (on demand type) because it is mor PLSQL driven and I'm no expert in js...
    Hope this helps ...

  • Live view doesn't correctly pass URL parameters from HTML docs?

    Running into something that I wonder if anyone else has seen.  I've created a site in DW CS5 with a local testing server (XAMPP on Win7), and if I use LiveView to view an HTML page that has a link to a PHP page that includes a URL parameter, the parameter shows up in the LiveView address bar, but the page doesn't seem to use it (trying to display an image where the file is built using $_GET to retrieve the parameter).  The same HTML page, displayed in a browser, works.  And if I then save the HTML page as a PHP page in DW, identical code, LiveView works.  Sure looks like LiveView will does not properly handle URL parameters from HTML documents...

    Sorry if I wasn't clear... the navigation works correctly; I get to the page I'm tyring to get to.  One of the things that page should do is display an image, the I use a URL parameter to build the image file name to retrieve.  The link in the first page is something like <a href="gallery.php?pg=1">.  Works fine if the first page (the one I'm navigating from) is a PHP page, doesn't work (with the same code which is only HTML) if the page is an HTML page.

Maybe you are looking for

  • Playing through car stereo

    I am having problems playing through car stereo using the cassette deck. Only getting audio out of right side. Have tried two Dyantec with same result. Ipod has sound on both sides through ear buds. Cassette deck is playing regular cassettes just fin

  • MS Certification Marks Split up

    I have Cleared MS certification last year November : 2013. I did nt received the Test results. Now how should i retreive my marks Split up. I have logged into prometric and i did not get the transcript. Please let me know the process.

  • Full depreciation if the asset is purchased with in first 15 days of the month

    Hello All, We have requirement in Asset accoutning. If the asset is purchased from 1st to 15th of a month, the depreciation should be charged for entire 1 month. If the asset is purchased between 16th to 31st of a month, then only half a month deprec

  • Not ready to write to drive C:????

    my computer froze an after i restarted it when it was booting back up it said "not ready to write to drive c: abort,retry fail" i tried to abort but nothing happend, so i restarted again an it happend again an froze, after a few restarts its booted u

  • HP Elitebook 8560w Won't Boot UP -- Disk Read Error Press CTRL ALT DEL to restart

    Hello. I have an Elitebook 8560w, that won't boot up. The screen says "Disk Read Error Press CTRL ALT DEL to restart".  The screen isn't all black...there are some random colored square pixels with a random flashing !, but it's mostly black. I've run