Can the parameter in the url be invisible?

hi,
I want the parameters in the url to be invisible. That is if the url is
http://localhost:8080/index.jsp?create=12 , so in the url bar it has to be displayed like
http://localhost:8080/index.jsp. But the parameters should not be displayed. Is it possible?
If possible how? Can you send the code?
Thanks in anticipation
Deepa Datar

Greetings,
if the username & password is right the user has to be
redirected to the index.jsp page, where the usernameHow are you "redirecting", with sendRedirect? This method adds an HTTP 'Location' header to the response which instructs the browser to "fetch the response" from the given URL (including parameters, if any). Unfortunately, the browser uses a GET request on the next resource so, "no", its not possible to make the (GET) parameter(s) invisible - this is a limitation of the HTTP protocol. However, it seems what you really want in this case is not to "redirect" but to "dispatch" the request. Request dispatching allows your servlet to forward the request to, and/or include responses from, another resource on the same server without the overhead of redirecting the client. Additionally, the original request and response objects are maintained which can be modified with additional ("invisible") attributes:
// In service thread...
request.setAttribute( "client", "12" );
RequestDispatcher rd = request.getRequestDispatcher( "index.jsp" );
rd.forward( request, response );I hope this helps.
Can any one help me out? Its actually urgent.
Thanks in anticipation
Deepa DatarRegards,
Tony "Vee Schade" Cook

Similar Messages

  • BasicService.showDocument - Can the URL be in a JNLP JAR Resource?

    I'm trying to use BasicService.showDocument( url ) to display a help file that is part of a JAR file in the JNLP resource list.
    Getting the URL succeeds using...
    url = getClass().getResource( "/com/egh/help/files/tutorial.html" );
    and that file is indeed present relative to my help-s.jar file which is in the JNLP resource list.
    but then IE comes up and reports the page cannot be displayed...
    jar:file:/C:/Program%20Files/Java%20Web%20Start/.javaws/cache/http/Droger.egh.com/P80/DMdemo/RMhelp-s.jar!/com/egh/help/files/tutorial.html
    Would this be expected to work? Or would I have to use an absolute URL for this to work? (which, btw, would defeat the point).
    ... Roger

    That may be true, but it is the BasicService.showDocument call that is building the URL. To me it is a JAR based "relative" resource. And I have no way to know the Java Web Start name/location of the cached jar.
    If there is a simple way to make it work, SUN will hopefully do so in the BasicService, otherwise the value of it is completely undermined.

  • Why do I get this error when specifying a parameter from the URL?

    Hello,
    I am trying to "install" a parameter in a page, so that it's value can be specified in the URL and a VO updated according to this value.
    Here's is the page definition file, with an executable and a binding to a method call:
    <executables>
    <invokeAction Binds="prepareMainMenuView1" id="invokeQuery"
    Refresh="prepareModel"/>
    </executables>
    <methodAction id="prepareMainMenuView1"
    InstanceName="AppModuleDataControl.dataProvider"
    DataControl="AppModuleDataControl" RequiresUpdateModel="true"
    Action="invokeMethod" MethodName="prepareMainMenuView1"
    IsViewObjectMethod="true">
    <NamedData NDName="param" NDValue="#{param.root_menu}"
    NDType="java.lang.String"/>
    </methodAction>
    if I run the MyMenu application with:
    http://127.0.0.1:7101/MyMenu-ViewController-context-root/faces/menu?root_menu=anything
    then I get this exception:
    ADF: Adding the following JSF error message: String index out of range: -1
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    Do you know why? Where do I fail?
    I followed the isntruction here:
    http://www.jasonsdevelopercorner.com/?p=65
    So far I have not been able to read a parameter in a way, do you have any example on how can I use parameters from URL from within a single page in an unbounded task flow?
    I worked all the day on this, but with no luck.
    Thanks

    I solved the problem. The invoked method was not part of the VO, but was part of the AM.

  • Can the portal language be specified in the URL

    can the portal read the language information from the launching URL?
    something like:
    The specified item was not found.
    The specified item was not found.

    Hi,
    Instead of passing lang using URL parameter, why dont u give an option to end user to choose login lang
    Set logon.locale parameter in UME service... U have to use configtoo..
    go to GLOBAL server configurations ... access UME service .. change this parameter to TRUE ...
    Now portal login page will give u a dropdown to choose login language..
    Try this .. this works!!
    Cheers!!
    Ashutosh

  • How to get the URL parameter value when navigating from JSP Page to portal

    Hi All,
    I have web Dynpro application with one button, while clicking that button It will navigate to JSP page as external window. In the JSP page I have a input field and Button.
    In the JSP page input field I will enter some values and press submit button, it will navigate to Portal page by passing some URL parameter with values.
    Once user entering to portal by default WD page displayed, the same WD page I try to get the URL Parameter which I have passed from JSP page, but I am not able to get the URL parameter value.
    If same application running in without portal, I can able to get the URL parameter values. I am getting the URL parameter by interface view default inbound plug parameter.
    How do we resolve this problem?
    Regards,
    Boopathi M

    Hi
    Please try  these link might helpful for you
    1.[How to call WebDynPro application from JSP |/thread/452762 [original link is broken];
    2.[How to get the previous page url from abstract portal component? |/thread/1289256 [original link is broken];
    3.[how to launch and pass a parameter |/thread/5537 [original link is broken];
    Best Regards
    Satish Kumar

  • Receive a parameter in the URL in adf application

    Hello,
    using the sendRedirect to direct control to another adf application, as:
    ((HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse()).sendRedirect("some url");assuming that I am pushing parameters to the url, how can I read them in called application !!
    to make the post clearer, assume that I have two adf applications A and B,
    A will redirect the user to B using the sendRedirect method,
    where shall I receive the request to get the parameters or attributes added to the URL !!!
    hopefully I have made the post clearer so that you can help !!
    appreciated, thanks in advance.
    rgrds,

    For passing parameters to another ADF application, we could use as a parameter as part of the request parameter of the URL as mentioned in
    http://blogs.oracle.com/shay/entry/passing_parameters_to_adf_appl
    For reading the parameters in the another application (assuming CurrentDepartmentName is the parameter) ,
    HttpServletRequest request =
    *(HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();*
    String strvalue = request.getParameter("CurrentDepartmentName");
    Thanks,
    Navaneeth

  • Access the URL Parameter from a Adaptermodule

    Hi,
    I need to implement an adaptermodule to create a SOAP-Header element. I use the SOAP Adapter (receiver) in this case with the flag "Not use SOAP env.) One element within this header element will be the URL of the Webservice with I declare in the Adapterconfig.
    How can I access this config within a Adaptermodule or must I implement a modul parameter ?
    Regards,
    Gerald

    Hi,
    You can access the comm. channel parameters in the module.
    here is the sample code:
    cid = moduleContext.getChannelID();     
                        ch =(Channel) LookupManager.getInstance().getCPAObject(CPAObjectType.CHANNEL,cid);
                        String dir = ch.getValueAsString("file.targetDir");
    this is to get the value of target directory in file adapter module.
    try something similarly.
    hope this helps.
    regards,
    P.Venkat

  • How to specify delimiter when parsing the parameter list in URL

    Here is a sample URL used to call the servlet:
    http://myhost.com/servlet?param1=test1&param2=test2&param3=test3In the doGet method of my servlet, I understand I can use the getParameter method to retrieve the various parameter values:
    String p_param1 = request.getParameter("param1");
    String p_param2 = request.getParameter("param2");
    String p_param3 = request.getParameter("param3");However, what if the URL was of the form:
    http://myhost.com/servlet?param1=test1+param2=test2+param3=test3where the URL parameter delimiter was a plus sign rather than an ampersand (&).
    By default, the servlet is only recognizing the ampersand (&) as a parameter delimiter.
    When I use a plus sign as the delimiter, getParameter retrieves everything after the question mark (?) as the first parameter
    i.e. param1 = test1 param2=test2 param3=test3
    param2 = null
    param3 = null
    How can I get getParameter to recognize a plus sign (+) as a valid delimiter?

    Servlets follow the HTTP specification. So, there is not much you can do on that level. What you could do (though I do not recommend it) is to set-up a filter that will automatically swap the plus with an ampersand before the actual servlet processes it. My strong advice, however, is to give up on using a nonstandard delimiter.
    [http://java.sun.com/products/servlet/Filters.html]
    - Saish

  • Passing Search Parameter to SRM-MDM Through the URL

    Greeting all,
    I would like to know how I can pass a search parameter to SRM-MDM using the URL in the web browser. This is needed to display the result directly instead of listing the whole catalog contents.
    I am trying to pass a search parameter (Text string) to the catalog through an R/3 SAP system. As a result, it should give only the material that I am looking for.
    I tried the "Background Search" as described in the OCI-specification paper but still couldn't get it!
    By using the parameters mentioned in chapter 3.2.4 of OCI-specification paper, I did the recommended configuration and use the following URL but still failed to pass the parameter:  http://....&FUNCTION=BACKGROUND_SEARCH&SEARCHSTRING=searchterm
    Can anyone help me on that?!
    Regards,
    Yousif

    Hi Yousif,
    Why dont u save the search as a named search in MDM and then pass it onto the SRM MDM.
    Save the records  as Named search in MDM Data Manager
    For eg:
    Named Search name -->> search1
    Now while passing the parameters to the SRM MDM Catalog specify the Named Search in its url.
    http://J2EESERVER:PORTNO/SRM-MDM/SRM_MDM?sap-locale=EN&HOOK_URL=&mask=&namedSearch=search1&username=Admin&password=PASSWORD&catalog=REPOSITORYNAME&server=MDMSERVERIPADDRESS&datalanguage=EN
    After passing the named search in the hook url the you will be able to see only the search which was saved in Data Manager.
    Hope dis helps u
    Regards Tejas.........

  • How to pass and fetch multiple parameter in the URL of the Web Dynpro

    Please help me to fetch parameter in runtime from the URL in web dynpro allication. Like
    MyApplication?SAPtestId=Arun?SAPtestId=Kumar?Test2=Jaiswal;
    I want to fetch the value of the SAPtestId, Test1 and Test2 in the web Dynpro Application.
    Please help me on this asap. thanks

    Hi Arun,
    Passing parameter to a wen dynpro application is done throught default inbound plug, which exist in interface viewcontroller
    and you can access those parameter in implementaion of default inbound plug
    To pass parameter
    If MainWin is your main window of application then
    1.in MainWininterfaceview controller add parameters in default inbound plug.
    To access these parameter
    1. In implementaion of MainWininterface view right a code to access these parameter
    2.Store these parameters  in controller context, so you will be access it from any screen
    as
    public void onPlugDefault(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String SAPtestId )
        //@@begin onPlugDefault(ServerEvent)
    set  your controler context with SAPtestId
    //@@end

  • Where can I configure the URL I receive after login into SRA gateway

    Hi folks,
    I enter the URL of my gateway http://gw.machine.com
    I am redirected to http://gw.machine.com/http://portal.machine.com/amserver/UI/Login?gw=gw.machine.com&org=o%3Dec&goto=http%3A%2F%2Fportal.machine%3A80%2Fportal%2Fdt
    Where can I change, add, remove the got parameter f.e.
    Kind Regards
    Roland

    Hi,
    I have the same problem. Did you find a solution?
    Vincent

  • How to over ride a parameter value in the URL

    Hi
    I am calling a 10g report through a form as ...
    web.show_document('/reports/rwservlet?MYKEYINCGICMDFILE'&report=stock_status','_blank');
    MYKEYINCGICMDFILE is a key in cgicmd file where I have passed values like userid,destype, desname etc.
    Now I want to change the destype for a specific report and I want to pass the parameter through URL, how can I override the destype value provided in the key and pass through URL?
    I tried as ...
    web.show_document('/reports/rwservlet?MYKEYINCGICMDFILE'||'&desformat=spreadsheet&destype=file&desname=c:\stock_check.xls&report=stock_status','_blank');
    but still getting the value from the key.
    Thanks

    Leave out MYKEYINCGICMDFILE on the URL and specify all the parameters. That of course exposes un/pw.
    Or create a second key.
    Better still: use run_report_object in Forms instead of calling a report via web.show_document. This takes un/pw from the currently logged in user.

  • Get the parameter from the URL

    Hello
    I have a problem. I want to know the id that is in the url of an extern site. For example http://www.example.com/employer.jsp?id=1234
    Does anybody know how I can get the value 1234 fom the url. I have no idea but it is very important for me.
    Please help me,
    Henk

    oic. If the document location according to the browser is that URL with the id or whatever, then you could use Javascript to set the value of a hidden form field:
    <body ... onload="document.forms['myform'].submit();">
    <form name="myform" ... onsubmit="this.url.value=document.location.href; return true;">
    <input type="hidden" name="url" />
    Of course, that'll submit the form on load, you can change that part if you want.
    If the page is in a frameset and you want the top page's location, you can do:
    <form name="myform" ... onsubmit="this.url.value=top.document.location.href; return true;">
    But, the browser is going to have the location of whatever page it thinks it's viewing, and if it got there by a redirect, it'll show the page it is on, not the page it was redirected from. For forwarding, it'll still think it is on the page that did the forwarding, not the end page. In other words, whatever you see in the brower's location bar should be what you'll get.

  • How to Get Parameter Values from the URL ?

    Hi,
    I have built a calendar called cal_test. I am calling this calendar with this URL:
    http://.../pls/.../xyz.cal_test.show?p_arg_names=p_sc_id&p_arg_values=2&p_arg_names=_start_date&p_arg_values=FEB-2002
    In the 'Additional PL/SQL Code' tab of cal_test, I need to call a procedure which requires me to pass in as parameters the values of p_sc_id and startdate embedded in the URL named above. How can I retrieve these 2 values from the URL ? Any advice will be appreicated !
    Dorothy

    Hi Daniel
    The following thread might help;
    if not, you could try posting the question in Application Server » Web Dynpro Java
    Thanks
    Kenny

  • Using the "highlight" parameter in an URL to open a PDF

    I have read the "PDF Open Parameters" document:
    http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf
    I am trying to use the "page" and "highlight" parameter in a URL (called from Flash) to open a PDF to a specific page and then draw a rectangular highlight on a specific area on that page. According to the above document, I should be able to do this by using the following URL:
    http://www.MySite.com/MyPdf.pdf#page=10&highlight=10,20,30,40
    This will open the PDF to the proper page (10) but I don't see any highlight. The "PDF Open Parameters" describes the usage of the "highlight" parameter as follows:
    highlight=lt,rt,top,btm "Highlights a specified rectangle on the displayed page. (Use the page command before this command.)
    The rectangle values are integers in a coordinate system where 0,0 represents the top left corner of the visible page, regardless of document rotation."
    It sounds to me that all I'm supposed to do is define the left (lt), right (rt), top and bottom (btm) boundaries of the rectangle by a single integer.
    But, why am I not seeing the highlight? Do I need to use co-ordinate X,Y sets? Are the integers I am supposed to be using pixels, or arbitrary units? If 0,0 is the top left corner of the page... what's the bottom right corner?

    Try this:
    http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters_v9.pdf#page=7&highlight=100,2 00,600,400
    (0,0) is the bottom left corner of the viewed PDF page.
    For an 8.5 x 11 page size; the x-axis ranges from 0 to 612 and the y-axis ranges from 0 to 792.
    (points -- 72 to an inch)
    In an AUC thread about placing an annotation to a specific location on a PDF page, Thom Parker wrote:
    "There are several coordinate systems used in Acrobat. 
    The info window uses a modifed version of Rotated User Space. 
    There's also device space, which is the OS's window coordinate system, it also starts at the top left.
    But for placing things onto a PDF page there are two main spaces "Default User Space" and Rotated user space. 
    Both put (0,0) at the bottom left corner, sort of."
    An article on PDF page geometry
    http://www.acrobatusers.com/tutorials/2007/10/auto_placement_annotations
    Be well...
    Message was edited by: CtDave
    Message was edited by: CtDave

Maybe you are looking for

  • Can i update the processor of my macbook pro 7.1 ??, can i use a I3???

    I have a Macbook pro 7.1 and a Dell Inspiron with i3 Processor, I would like to install the intel processor i3 in my macbook pro, I can do that??

  • Cursor Parse Exception With OCI Drivers

    I am getting the following Error if I call an Oracle Function with two Params. Based on the values of parameters the where clause is changed but returns the same Resultset. If I already have called the fucntion once and then pass different values to

  • Why no 720p25???

    I am occasionally using FCE3.5. There are setups for 1080i for PAL and NTSC but 720p for just NTSC. Why no PAL version at 25fps??? Can I do anything to create a sequence at 720p25? I think version 4 of Final Cut has this sequence setting, plus the ab

  • Lightroom 5 - Cannot Delete Photos - Will not send to Recycle Bin

    Hi everyone, Probably a silly question I cannot delete rejected photos to the recycle bin? Any suggestions? Windows 8 LR file on a DROBO. Help? Derek

  • Problem of J2SE1.4.2 with NetBeans Cobundle on XP

    I download J2SE v 1.4.2 with NetBeans IDE v 3.5 Cobundle and install it on XP professional. Then modify system variable: Path: ......;C:\j2sdk_nb\j2sdk1.4.2\bin;...... Add system variable: CLASSPATH: .;C:\j2sdk_nb\j2sdk1.4.2lib\tools.jar;C:\j2sdk_nb\