Adding variable to url

Hi
I have a list of website links which user can click on.. On click, I want to call a JSP (http://localhost:8080/abc/faces/urlprofile.jsp) which can display data related to the website.
To do this, I want the website's url to be appended to my url i.e. (http://localhost:8080/URLtopia/faces/urlprofile.jsp) so that I can fetch data related to that website from database.
For example : if the website is google.com, I want the call to be http://localhost:8080/URLtopia/faces/urlprofile.jsp?google.com
How can I do this ?
Thanks
Mudit

This gives out error : Body of scriptlet element must not contain any XML elements
<jsp:scriptlet>
try {
String k=(#{param.desti});
Result Set rs;
String q="select * from url where url.title=k;
{code}                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Using variables in url

    I have created a php storing values in a mysql database.  I animate I call this php using window.open:
    window.open("http://localhost/send_and_update.php?Tid=26&dBA=78 ", "_self");
    This works fine, the dataset 26 78 is saved in the database.  But now I want to send values from variables in  i animate.  I try this:
    Var time=22
    window.open("http://localhost/send_and_update.php?Tid=time&dBA=78 ", "_self");
    This won't work.  Any suggestion?
    Svein-Tore

    Hi Darell!
    Now I have tried it, unfortunately it won't work.....  The browser gives me
    the followoing error:
    Unknown column 'time' in 'field list'
    This is in fact an error from php, not from animate.....  Maybe  I have to
    do this in a totally different way? Anyone who know how to write data from
    animate to a mysql database?
    Svein-Tore
    2014-02-20 1:39 GMT+01:00 heathrowe <[email protected]>:
        Re: Using variables in url  created by heathrowe<http://forums.adobe.com/people/heathrowe>in *Edge
    Animate CC* - View the full discussion<http://forums.adobe.com/message/6137980#6137980

  • Problem passing Session variable as URL parameter?

    Hi,
    I am trying to create a multiple page entry form using
    coldfusion session. But I am having some problem when passing the
    session variable to url parameter. For test purpose I have created
    the following code:
    <cfif Not IsDefined("SESSION.AE")>
    <!--- If structure undefined, create/initialize it
    --->
    <cfset SESSION.AE = StructNew()>
    <!--- Represent current form srep; start at one --->
    <cfset SESSION.AE.StepNum = 1>
    </cfif>
    <cfif IsDefined("Form.GoBack")>
    <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    <cfelseif IsDefined("Form.Next")>
    <cfset SESSION.AE.StepNum = #url.StepNum# + 1>
    </cfif>
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    </head>
    <body>
    <form method="post"
    action="/AE/try.cfm?StepNum=#SESSION.AE.StepNum#">
    <input type="submit" name="GoBack" value="Back">
    <input type="submit" name="Next" value="Next">
    </form>
    </body>
    </html>
    When run it I get the following error:
    The value "" cannot be converted to a number
    The error occurred in C:\CFusionMX\wwwroot\AE\try.cfm: line
    11
    9 : <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    10 : <cfelseif IsDefined("Form.Next")>
    11 : <cfset SESSION.AE.StepNum = #url.StepNum# + 1>
    12 : <!---<cfset SESSION.AE.StepNum = #url.StepNum# +
    1>--->
    13 : </cfif>
    I couldn't figure out where is the problem. Any help is
    really appreciated.
    Thanks in advance.

    You are mixing up your gets and posts aren't you?
    You have your form method set to post which creates form
    variables not
    url variables. So when you try to use the url variable to set
    your
    session it does not exist.
    Change your SESSION.AE.StepNum = #url.StepNum# to
    Session.AE.StepNum =
    form.StepNum, note there is no need for the #'s.
    OR
    change your form method="post" to form method="get"
    Nagelia wrote:
    > Hi,
    >
    > I am trying to create a multiple page entry form using
    coldfusion session. But
    > I am having some problem when passing the session
    counter to url parameter. For
    > test purpose I have created the following code:
    >
    > <cfif Not IsDefined("SESSION.AE")>
    > <!--- If structure undefined, create/initialize it
    --->
    > <cfset SESSION.AE = StructNew()>
    > <!--- Represent current form srep; start at one
    --->
    > <cfset SESSION.AE.StepNum = 1>
    > </cfif>
    > <cfif IsDefined("Form.GoBack")>
    > <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    > <cfelseif IsDefined("Form.Next")>
    > <cfset SESSION.AE.StepNum = #url.StepNum# + 1>
    > </cfif>
    >
    > <html>
    > <head>
    > <title>Untitled Document</title>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    > </head>
    > <body>
    > <form method="post"
    action="/AE/try.cfm?StepNum=#SESSION.AE.StepNum#">
    > <input type="submit" name="GoBack" value="Back">
    > <input type="submit" name="Next" value="Next">
    > </form>
    > </body>
    > </html>
    >
    > When run it I get the following error:
    >
    > The value "" cannot be converted to a number
    >
    >
    > The error occurred in C:\CFusionMX\wwwroot\AE\try.cfm:
    line 11
    >
    > 9 : <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    > 10 : <cfelseif IsDefined("Form.Next")>
    > 11 : <cfset SESSION.AE.StepNum = #url.StepNum# +
    1>
    > 12 : <!---<cfset SESSION.AE.StepNum =
    #url.StepNum# + 1>--->
    > 13 : </cfif>
    >
    > I couldn't figure out where is the problem. Any help is
    really appreciated.
    >
    > Thanks in advance.
    >
    >
    >
    >

  • Random letters added to my url - any ideas?

    Hi Guys
    On this particular site we started seeing funny random letters and numbers added to our urls - we did not touch these pages in quite a while and it only started about a week ago.  Even if you change the url in "SEO" etc... it automatically adds it.
    Any ideas?
    See http://tonipizza.co.za/Tonis_Pizza_Menu.html#.UbIe3JU56YU
    it should read http://tonipizza.co.za/Tonis_Pizza_Menu.html
    Support says it might be one of our scripts that "broke"  -- but sounds like a bit of a stretch to me.  Again, we have not touched code on this  page for a loooong time.
    Thanks
    Casper

    Hey Casper,
    There's some sort of conflict with a content holder you have placed within the page.  When you remove it the url restores back to normal. 
    I would look into this script in the "add this" content holder which most likely is affecting the output of the url.
    Kind regards,
    -Sidney

  • Variables in URL iview

    Hi.
    We are going to create URL iview in Portal 60 SP15.
    When we create URL iview, We want to use variable for URL parameter. (For example <User.UserID>)
    Any idea ?
    Regards, Arnold.

    hi,
    under configuring url parameters you can see that
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/98dc60ad8243139402836e11abb2ba/frameset.htm
    If you set the parameter as a variable that can be personalizable by end users , then this value will be the parameter’s default value. However, if you set the parameter as not personalizable, then this value is the fixed value of the parameter.
    Regards,
    Ganesh N

  • Variables in URL

    Hi Sarvanan,
    As per your suggestion, opened a new thread
    How can we pass variables instead of hard coded  values in below url,
    http:/xxxxxxxxxx/sap/bc/gui/sap/its/webgui?~transaction=*ZHR_PAY_SLIP PNPXABKR=01;PNPTIMRA=X;PNPPABRP=01;PNPPABRJ=2011;PNPPERNR-LOW=4
    am calling this url in external window, as this url placed in quotes, so it wont takes variable values.
    Thanks and Regards
    Srinivas

    Yes exactly, but let me explain in a bit detail.
    For example i have one field PNPPERNR and its values stored in variable in V_PERNR ( it will contain value as 1005 ),
    So in URL if i pass value of PNPPERNR as V_PERNR, it dont take the internal value (1005 ), it will just take V_Pernr as text.
    So here i am unable to pass variables.how can we?
    For example
    http:/XXXXXXX/sap/bc/gui/sap/its/webgui?~transaction=*PA30 RP50G-PERNR=4,
    iF YOU EXCUTE ABOVE , IT WILL OPEN PA30 AND IN PERNR PLACE IT WILL TAKE 4.
    say v_pernr = 4.
    http:/XXXXXXX/sap/bc/gui/sap/its/webgui?~transaction=*PA30 RP50G-PERNR=V_PERNR
    IF you excute above, it wil open PA30 and and in pERNR place it will take just V_PERNR.  not 4.
    Hope you understand my query.so how can we pass variable in urls?
    Regards
    Srinivas

  • Passing Hierarchy Variable from URL to Template

    Hi
    How do I pass a Hierarchy Variable from URL Query String to the Web Template.
    I am on NW04s SP11. Could anyone please help me out as it is urgent and we need to show case BI capabillities to Client.
    Thank You
    With Wishes
    Krish

    This link might be useful...
    http://help.sap.com/saphelp_nw04/helpdata/en/72/726b11561e6b4fafc43d692c4e27ab/content.htm

  • Syntax error when adding variables in recordset (query)

    MySql,PHP,Dreamweaver,WindowsVista
    Hi I am receiving a syntax error: invalid quantifier ++ $orderNum;s*?> when adding two variables in the recordset (query) dialog box. I get the error when clicking OK.
    Here is what is entered:
    name: fieldname
    type: text
    default: -1
    runtime value: $_GET['Field']
    name: searchvalue
    type:text
    default: -1
    runtime value: $_GET['Search']
    Can anyone help with this?

    That's a completely separate issue. The error message is telling you that you have not defined the testing server correctly in the Site Definition dialog box.
    The Host directory field and URL prefix should both point to the same place, in other words, the root of your website. Host directory is the physical path, while URL prefix is the address you would put in a browser address bar.
    Select Site > Manage Sites. Select the name of the site, and click the Edit button. In the Site Definition dialog box, select the Advanced tab, and then choose Testing server from the Category list on the left.
    Depending on how your remote login works, Host directory should probably be public_html or just /. Use the same value as in the Remote server part of the Site Definition dialog box. The URL prefix should be http://gaylehansen.aisites.com/.

  • Adding variable in onApplicationStart

    Hi,
    When we add a new variable in Application.cfc under the method onApplicationStart the variable doesn't seem to be visible until we restart the application. But as I am a beginner I am not sure what Restarting an Application means? Would restarting the Coldfusion Server from services.msc be enough?
    Thanks
    Adil Shoukat

    Restarting an Application is just restarting the website - yes restarting the entire service will work, but is complete overkill.
    OnApplicationStart fires the first time your website is accessed in a specified period of time (set with this.ApplicationTimeout) - once that time has elapsed with no visitors, your onApplicationEnd() method fires and the application is removed from memory. The next time it's then accessed, onApplicationStart is called and the site is loaded back into memory.
    You're not seeing onApplicationStart fire because you're developing the website, so it's not been idle. During development, I do something like this in your onRequestStart() method:
    <cfif structKeyExists(url, 'restart') >
      <cfset onApplicationStart() />
    </cfif>
    That way all I have to do is put ?restart at the end of any URL, and it'll restart the website. Much quicker and more efficient than restarting CF.

  • How to fill two variables from url parameter?

    Hello friends,
    the following case should be discussed:
    The URL restricts the values for 0CALMONTH (e.g. FILTER_IOBJNM=u20190CALMONTHu2019 FILTER_VALUE_LOW_EXT=u20191u2019 FILTER_VALUE_HIGH_EXT='2').
    Is ist possible to fill variable VAR01 with the LOW-value and VAR02 with the HIGH-value ?
    In our case we want to show in column 1 the value of the actual month, the column 2 the value of the month before. The selection must be given by URL - it is externally generated. 
    We think about customer-exit solutions (CMOD EXIT_SAPLRRS0_001 for variables), but found not yet any working solution.
    Any ideas?

    Hi Durgesh,
    we talk about a portal solution, where SAP ERP and SAP BW broadcast data. In this case the URL is generated by SAP ERP for SAP BW query.
    But the URL restricts the data for the complete SAP BW query, so we cannot restrict in the URL for the actual month only - then the month before is not in the BW-query result (the month before would be completely out of range).
    If we restrict in the URL two months, we need to "break" the URL-values into two variables.
    Regards,
    Matthias
    Edited by: Matthias Krause on Oct 25, 2011 9:30 AM
    Edited by: Matthias Krause on Oct 25, 2011 9:32 AM

  • Pinterest still blocked, even after adding to custom URL exception

    Hi,
    In WSA I have a custom URL list for exception which are allowed from Proxy.
    I have added pinterest.com in the exceptions list. For some users website work perfectly fine via proxy, but the users which are using the global policy cannot open this website. In global policy that custom URL is allowed, even policy trace with that AD users shows that URL is allowed via custom URL list but user gets proxy error denied?
    Is there something I am missing in configuration?
    Regards,
    Sakun Sharma

    Hi Sakun,
    the best way to troubleshoot this kind of issue is to grep/tail logs from WSA, policy trace is not always accurate. So :
    - connect to your WSA via ssh and type the 'grep' command;
    - at the following prompt select 'accesslogs'
    - at the prompt Enter the regular expression to grep insert the ip address of a user that cannot display the website
    - at the prompt Do you want this search to be case insensitive? [Y]> press enter
    - at the prompt Do you want to search for non-matching lines? [N]> press enter
    - at the prompt Do you want to tail the logs? [N]> type 'y' and press enter
    - at the prompt Do you want to paginate the output? [N]> press enter
    then from the client with ip address you inserted before try to connect to pinterest, on WSA you will see the logs, to stop log collection press CTRL+C . Post here the output of the logs.
    Regards,

  • Business Connector  : get querystring variables in url

    Hi;
    I have a server service in Business Connector .
    a client post a url like this
    http://10.10.10.10:5555/invoke/MM/mm2sms?drug_code=905913&drug_desc=aaaaa
    I have to get these variables drug_code,drung_desc and assing to a recordList..
    Firstly Which methods do i have to use and how?
    stringToDocument , documentToRecord?
    Thanks.

    Just declare these parameter names as input variables of type String in the Business Connector service. Then you will have them in your pipeline automatically.
    CSY

  • Adding gx_session_id in URL

    GXHC_GX_jst=fc71750f662d6164&GXHC_gx_session_id_=25ba7f292cf98b40
    adding above line to all the URLS, and it causing problems, how can I get
    rid of above line in URL.
    --Raj                                                                                                                                                                                                                                                                                                                                                           

    This is generated to keep the session id alive between request on a
    non-cookie enabled browser, and also in all browsers for the first request,
    becouse iAS don't know that the browser accept cookies or not for the the
    first time.
    You can turn it off change the following registry value, (you must think
    that if you turn it off, only support cookie enabled browsers work's fine):
    /Aplication Server/6.0/CCS0/HTTPAPI.
    There is a key NoCookie value, whose default value is 0.
    ..- If you set this value to 2, it never parses the outbound html, thereby
    disabling support for non-cookie browsers completely.
    ..- If you set this value to 1, it doesn't pass a cookie back. This is
    useful for testing non-cookie behavior.
    You can use the program kregedit. This program allow to change the iAS
    registry.
    "Rajashekar Narsina" <[email protected]> escribio en el mensaje
    news:9gqtmp$[email protected]..
    GXHC_GX_jst=fc71750f662d6164&GXHC_gx_session_id_=25ba7f292cf98b40
    adding above line to all the URLS, and it causing problems, how can I get
    rid of above line in URL.
    --Raj

  • Loading variable into URL

    I have a php file that holds a certain variable (the name of
    an image). Then I have a SWF that shows the location of the file
    and then shows the actual picture itself.
    Here is a snippet from the PHP file:
    quote:
    print("&location=$image");
    Below is my action script:
    What am I doing wrong? How do I get the variable inside of
    the URL? Thanks
    ----------Action
    Script------------------------------------------------------------------

    Ah nevermind, I can do what I want outside of flash in php.
    Doh!

  • Passing variable thru url

    I hope someone can help. I'm stumped. This is the first time
    I've ever used flash to build forms. I've been attempting to use
    the form builder to build a simple form, first name, last name,
    age. One the Submit button, I want to capture those 3 variables and
    tack them onto a url ex.
    myname.com?firstname=john&lastname=doe&age=33.
    My confusion with the form builder is that I don't know how
    to set individual variables for each field and the button.
    Does this make sense to anyone, and can anyone point me the
    right direction?
    Thanks a million in advance!
    J

    What are you sending to? And it's not any harder in Flash
    than it is in
    HTML, it's just different... but it's really quite easy once
    you get the
    hang of it.
    As a simple example, say I want to send my Flash form data to
    form.php:
    var sv = new LoadVars();
    var rv = new LoadVars();
    rv.onLoad = function(success){
    trace(this['ok']); //will trace '1'
    sv.firstname = firstname.text;
    sv.lastname = lastname.text;
    etc...
    sv.sendAndLoad("form.php", rv);
    Your form.php would then look something like this:
    <?PHP
    $fn = $_POST['firstname'];
    $ln = $_POST['lastname'];
    //do stuff with the data
    echo("&ok=1");
    ?>
    HTH
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

Maybe you are looking for

  • Trying to understand context indexes and contains-help

    Hi i am using Achieving functionality of many preferences using one context index to understand context indexes and contains and i get the following Error starting at line 1 in command: begin ctx_ddl.create_preference ('nd_mcds', 'multi_column_datast

  • Another aspect ratio problem

    I exported a film from iMovie using Quicktime conversion. It plays in the correct aspect ratio (16:9) from the desktop. Movie Inspector recognises the format as 720 x 576 (1024x576) and plays back normal/current/actual as 1024x576. However, when I up

  • HT1589 increase size of itunes library

    I cannot sync my IPad.  I get an error saying that I'm over capacity on my ITunes library.  How do I increase it?

  • SQL ServerAgent(Sharepoint)

           The SQL Server Agent(SHAREPOINT) is stopped in my case.I want to start it.For that I took properties-> Services->Startmode     changed from disabled to manual.But I got this error.                    WMI provider error.Invalid parameter[0x8004

  • Sharpening - inferior feature of Lightroom

    as many of you might have noticed, the sharpening function of LR basically does not do anything. just try and compare sharpening in bibble or dxo and you will understand. now, I can understand that some features are highly specialized, like noise rem