Generating URL params in XSL

Hi
I have what seems to be a very common problem, but cant find any answers.
I want to build a URL based on whats in my XML, but am having trouble with escape chars etc etc. The output I want is:
find.jsp?searchType=<xsl:value-of select="SearchType"/>&name=<xsl:value-of select="Name"/></xsl:attribute></td>
I cannot get the values 'bob' or 'full' dynamically, or if I do, Xalan has trouble with the '<' characters. I have tried every possible combination and none seem to work quite right. Has anyone solved this problem?
Thanks
Richard

Hey, thanks for the quick reply!!!
I got it to work using another way too:
<a>
<xsl:attribute name="href">find.jsp?searchType=<xsl:value-of select="SearchType"/>&name=<xsl:value-of select="Name"/></xsl:attribute>
</a>
(I'm sure I tried the above before and it didnt work.... ;)
I will bear both in mind next time I have this problem
Cheers
Rich

Similar Messages

  • Error - In generating URL for a Excel File in WebDynpro Project

    Hi,
    In my WebDynpro Application, i have a EXCEL file ("Test.xls") and it is kept in the below mentioned location.
    Project->src->mimes->Components-><my component>
    This is the code i have used to generate URL.
    IWDWebResource webRes = WDWebResource.getWebResource(wdComponentAPI.getDeployableObjectPart(), WDWebResourceType.XLS,     "Test.xls");
    String excelFileURL = webRes.getAbsoluteURL();          
    wdContext.currentContextElement().setExcelFileURL(excelFileURL);
    i have assigned the URL to context element which in turn is assigned to LinkToURL UI element.
    I always get this error "Invalid URL=/webdynpro/resources/local/RigsOnMove/Components/ndc.maintain_rigmove.MaintainRigMoveComp/Test.xls".
    Please let me know your solution(s) to the above mentioned issue/problem.
    Thanks
    Senthil

    Hi Senthil,
    your code seems to be correct! Probabily your file is test.xls (NOT Test.xls with the first letter in uppercase).
    Try to write:
    IWDWebResource webRes = WDWebResource.getWebResource(wdComponentAPI.getDeployableObjectPart(), WDWebResourceType.XLS,     "test.xls");
    Hope this help,
    Vito

  • Web dynpro Abap generated URLs - Namespace vs Alias

    Hi,
    We have developped web dynpro abap applications on two systems that both have to be exposed to our external users in production. We would like to provide a unique host for the two systems by using an appliance in front dispatching the request to the correct system based on differences in URL.
    As all generated URLS are in the following format:
    /sap/bc/webdynpro/sap/z_test
    /sap/public/bc/ur/nw7/js/domainrelax.js
    /sap/public/bc/ur/nw7/js/autorelax.js
    We would like to be able to modify the first tag (/sap) for something else either by renaming it or by adding some other layer in front of it in order to get:
    /nwa/sap/bc/webdynpro/sap/z_test
    /nwa/sap/public/bc/ur/nw7/js/domainrelax.js
    /nwa/sap/public/bc/ur/nw7/js/autorelax.js
    We thought we could use an external alias on one of our systems in order to change the generated url of that system but it does not work as we expected. When we call our web dynpro application using the external alias, it correctly renames the application bath but all other urls stay the same:
    /nwa/sap/bc/webdynpro/sap/z_test
    /sap/public/bc/ur/nw7/js/domainrelax.js
    /sap/public/bc/ur/nw7/js/autorelax.js
    What could we do in order to have all URLs generated by an ABAP system either renamed or prefixed by something else?
    Thank you very much for your help!
    Regards,
    Renaud

    hi Xiaoming Yang  ,
    i am facing the same error . can you please tell me how you have solved this ??
    regards
    Sujay Kulkarni

  • URL Param is not working

    Hi,
    I am passing two variable values through URL for one template to another template. It was passing two variable values to second templates but suddenly after applying new java patch it is not passing the second variable value in the URL.  Is there any other way i can achieve this with out SET_VARIABLES_STATE command.
    URL Params:
    &BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE
    &BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=0P_CALYE
    &BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING
    &BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=2008
    &BI_COMMAND_2-BI_COMMAND_TYPE=SET_VARIABLES_STATE
    &BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=Z_RGN
    &BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING
    &BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=EAST
    Any help is appreciated?
    Thanks in Advance,
    Damodhar.

    I think i can set characteristic value directly using URL command instead of setting variable value.Can anyone provide me the <b>URL parameter</b> for the following command.
    <bi:SET_SELECTION_STATE >
                     <bi:TARGET_DATA_PROVIDER_REF_LIST type="ORDEREDLIST" >
                            <bi:TARGET_DATA_PROVIDER_REF index="1" value="DP_1" />
                                        </bi:TARGET_DATA_PROVIDER_REF_LIST>
                       <bi:CHARACTERISTICS_SELECTIONS type="UNORDEREDLIST" >
                <bi:CHARACTERISTIC_SELECTIONS type="COMPOSITE" index="1" >
                                                <bi:CHARACTERISTIC value="CHAR1" text="" />
                                                <bi:SELECTIONS type="ORDEREDLIST"<bi:SELECTION type="CHOICE" index="1" value="SELECTION_INPUT_STRING" >
                            <bi:SELECTION_INPUT_STRING value="INPUT1" />
                                                    </bi:SELECTION>
                                                </bi:SELECTIONS>
                                            </bi:CHARACTERISTIC_SELECTIONS>
                                        </bi:CHARACTERISTICS_SELECTIONS>
                                    </bi:SET_SELECTION_STATE>
                                    <bi:SET_VARIABLES_STATE >
    Thanks,
    Damodar.

  • Sort by URL Param

    Not sure how to make this work but have read labs information
    and samples for sorting and url params just not sure how to tie
    them together to make this work. I have a link to the page I want
    to add this to if someone can take a look it is
    test site. When
    the user uses a link I need to have data sort by the name value
    from the xml file placing the correct contet at the top. Not sure
    if I'm headed in the right direction so any help would be
    appreciated.

    You would want to do soemthing like:
    var dsNews = new Spry.Data.XMLDataSet("news6.xml",
    "news/newstory");
    dsNews.sort(yourURLParam, "ascending");
    var pvNews = new Spry.Data.PagedView( dsNews ,{ pageSize: 4
    http://labs.adobe.com/technologies/spry/articles/data_api/apis/dataset.html#sort

  • Ignore URL  param in dispacther

    Hi,
    We have some page URLs that has some analytic params that needs to be capture from Omniture javascript. If we are having the param in URL the page is not cached as expected. So i  want to ignore the URL param in dispatcher and serve the content from cache and have the query params in the URL to be taken care by analytics code.
    As I read in http://dev.day.com/docs/en/cq/current/deploying/dispatcher/disp_config.html , i can use ignore url param in dispatcher.
    I applied those changes but it is not working for me.
    Some doc : http://helpx.adobe.com/adobe-cq/kb/troubleshooting-dispatcher-flushing-issues.html    
    Please advice.
    Thanks

    Hi Jorg/Scott,
    I am using dispatcher-apache2.2-4.1.0.so
    Entry in dispatcher.any- 
    /ignoreUrlParams
      /0001 { /glob "*" /type "deny" }
      /0002 { /glob "q" /type "allow" }
    Dispatcher log snippet-
    [Thu Dec 13 20:37:59 2012] [W] [24596(140205433005824)] /app/Apache2.2/conf/dispatcher.any:197: entry not recognized: 'ignoreUrlParams'
    [Thu Dec 13 20:37:59 2012] [W] [24596(140205433005824)] Render rend02 has no hostname; entry ignored
    [Thu Dec 13 20:37:59 2012] [I] [24596(140205433005824)] Dispatcher initialized (build 4.1.0)
    It seems entry is not recognized.

  • Generate URL in PDF made with Smartforms

    Hallo,
    i wanted Generate URL in PDF made with Smartforms, i have done everything necessary with cuastmizing and programing, the PDF ist working good, but afer clicking on the link in my PDF , it doesnt work, and with debbaging , the FM HR_RCF_SF_URL_CALLBACK it was not generated,
    thank you for your help

    Hi,
    Post your thread in Form Printing forum for better response , here is the link
    Output Management
    Cheers
    bhavana

  • Survey - Generate URL button is grayed out

    Hi,
    I have created survey in UI but when I click on Generate URL and enter Get file/send file, I get Generate URL button grayed out.
    Please suggest. I could able to generate URL for GUI but not in UI.
    Regards,
    Nikhil

    Hi Nikhil,
    did you solved your problem ??
    best regards
    Pedro

  • How to pass the JCo destinations as URL params?

    Hi,
    I have requirement to pass my JCo names as Url Params.
    jcoParam = "WD_ORD_RFC_METADATA_DEST:MNR "+" WD_ORD_MODELDATA_DEST:MNR";
    how do I combine and sent to URL params
    urlParameters.put("sap-wd-arfc-useSys",jcoParam);
    I am passing like this but the URL will take one parameter
    with one name but I need to pass the same parameter with diffrent Jco destination how to solve this please guide in this.
    I need like this But
    Url will take one parameter with sap-wd-arfc-useSys this name only the parameter sap-wd-arfc-useSys name is not taking once again .
    sap-wd-arfc-useSys=WD_ORD_RFC_METADATA_DEST:MNR
    & sap-wd-arfc-useSys=WD_ORD_MODELDATA_DEST:MNR
    Any body suggest on this.
    Thanks,
    Lohi.

    Hi Lohita,
    The parameter sap-wd-arfc-useSys should be given in the iview properties in the Content Administrator. The portal will be able to read the parameters properly even when you repeat the parameters like
    sap-wd-arfc-usesys = WD_ORD_RFC_METADATA_DEST:MNR & sap-wd-arfc-usesys = WD_ORD_MODELDATA_DEST:MNR in the iview properties.
    You will not abe able to pass it from the application as we would be using HashMap to pass the url parameters.As far as i know there is no other parameter available for the same purpose. Try giving the same in the iview of that applicaiton, it will work.
    Regards,
    Sharadha

  • Generating URL in Survey Suite

    Dear friends,
    When i am using Survey Suite functionality in CRM Marketing configured step by step by SAP Best practice document C22 . Under Generating URL step i am getting URL.While testing URL a blank screen appears with no error. Plz suggest in detail reward points will be awarded.
    with regards
    Sachin Sonkar

    hi sindhu
    this is sachin's workmate.as per ur suggestion we have tested the url with the mail form.but still its generating a blank screen
    moreover i wud like to add that when we tested it at backup with crm server where u can test the surveysuite url
    we are getting this error
    "BSP Exception: Das Objekt default.htm in der URL /sap/bc/bsp/sap/crm_svy_server/default.htm?sap-client=100&sap-sessioncmd=open ist nicht gültig."
    please suggest sumthin if u know.
    help will definitely be appreciated
    regards
    ashish

  • Table to generate URL

    Hi,
    In WD ABAP there is one table which generates URL for an application.
    eg: If I create one application. I have to write
      "   http://sawitk80.ceu.heidelberg.com:26041/sap/bc/webdynpro/sap/zvg_notifi_monitor_ver2?sap-client=220&sap-language=EN   "   in the browser which will run our application.
    Does anyone now how this is generated and which is table that stores these links.
    Its very urgent. Full points would be rewarded. plz respond asap.
    Regards,
    Vishal.

    thanks for quick reply.
    I need the table name which stores allt he application URL.
    "http://sawitk80.ceu.heidelberg.com:26041/sap/bc/webdynpro/sap/zvg_notifi_monitor_ver2?sap-client=220&sap-language=EN"
    like in upper url.
    "sawitk80.ceu.heidelberg.com " is the server name
    "26041 " is the port name
    "/sap/bc/webdynpro/sap"  is the path
    "zvg_notifi_monitor_ver2" is the Component name.
    Which table stores all this information.

  • Download to excel on grid generates url with Cross Site Scripting Attack

    When we try to download to exell on a grid (8.50.18). The webserver comes back with an automaticly generated url. This url now contains the characters "%0d%0a" (CR/LF
    Our firewall/ proyserver detects this string in the url as a Cross Site Scripting Attack (XSS) and fails to shows the excell.
    This happens in all our environments (so not dependend on the domain name).
    Does anyone know a solution for this problem?

    it seems a known bug, starting from 8.50.14 and solved with 8.50.19 (also in 8.51xx)
    Unfortunately we are on 8.50.18. Its now a bad timing to update our environment.
    It seems that psppr.dll is doing the job but replacing ours with the 8.50.19 one leaves our domains unstartable.
    I guess we have to ask our network techies to make a exception rule in our internal network/ firewall to allow it.......
    Detlev

  • URL Param + ManagedBean + form submit Question

    Hey,
    I have a managed bean and configured the bean so that i takes params from the url and sets them automatically. The bean parameter is a integer value.
    So when i call samplePage.faces?param1=23 then the bean takes the parameter from the url and i can query the database and present the result. That works perfekt
    My problem is now the following:
    On this page i have a form and some input tags to edit values, and now i want to submit the form and update the record in the database. (The record is identified by the url param)
    But when i submit my form i got a java.lang.IllegalArgumentException - java.lang.IllegalArgumentException exception.
    I thing that is because the action of the form has this parameter not ( action=samplePage.faces without my param) and when the bean tries to get the param from the url, which is not existing, then the exception is thrown.
    Any suggestions what i can do?

    i assume you have 2 managed beans that are in request scope. one bean for the overview page, one for the details page.
    overview page:
    create the link with the h:outputlink component which has one nested h:outputtext (the link text) and several nested f:param components. that means, you write one f:param for every parameter you want to pass to your details page. in your example, this would be only the id.
    ... so now you click the link ...
    details page:
    the id-parameter is available in the field "myId" in your details bean via this entry in faces-config.xml:
    <managed-bean>
              <managed-bean-name>details</managed-bean-name>
              <managed-bean-class>com.DetailsBean</managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
              <managed-property>
                   <property-name>myId</property-name>
                   <value>#{param.id}</value>
              </managed-property>
         </managed-bean>In DetailsBean, first you have to retrieve the data from the database. This could be done in the constructor or in a method annotated with @PostConstruct.
    Also, save the id in a h:inputhidden. You will need the id again in the next step.
    ... now the user edits the data and presses submit ...
    (All Parameters are lost at this point.) In your action, read the id from the h:inputhidden field. Now you have everything to update your database entry.

  • Help me for get URL address in XSL

    I need my working URL address for XSL.
    I got URL address in Javascript code by document.URL. But i can't use javascript value in XSL code:
    <xsl:variable>???????</xsl:variable> -->?
    what i need to do?
    Help me! plz
    Thank U

    Hi sid700 : No problem just click tools in the in Internet Explorer go down the list and click on toolbars list opens un check mark Microsoft Live Search Toolbar. This will dissable bing search. Another way to make things easer for you is just add your email to your favorites when you have your e-mail web-page open is when you want to save it to favorites. This way you are safer on line to search with Bing then using other search engines. You can able disable any tool bars by following same directions. Havefun.

  • HELP troubles with dynamically generated URLs

    I'm trying to integrate a new shopping cart, but DW CS4 can't follow the dynamic links in the template pages. They render fine in Live View. I can follow the CSS in the CSS Styles panel, but of course, it's not editable. Related files are far from complete and if I try to click on one, I get an error that the file can't be found.
    The templates all contain dynamically generated URLs such as:
    <?php include("${__TPL_DIR__}pages/templates/part.header.tpl.html"); ?>
    The .ini files used have site root relative references.
    Any ideas? Or am I stuck limping along?

    Thanks David,
    I found a few articles in the Developer Center that were helpful in understanding what I was looking at. The articles on creating Drupal and Wordpress themes explained how the pages are created dynamically, as well as how to use DW to modify and create themes. Though the specifics are different than what I am looking at, the concepts are similar. They also confirmed that attaching the relevant CSS files as design time style sheets was a practical workaround in the absence of an add-on to help DW understand the site structure. I was hoping that I had just not done something correctly, but I can live with a workaround, knowing that an "easier" way isn't just waiting for me to learn something about DW.
    Don

Maybe you are looking for