Coding URLs

A stupid question, but: I've set up my coldfusion CFC so it's
calling all the items from the Access database. I have one field in
that database coded as HTML URLs , but I'd like the list generated
by CF to generate as clickable links e.g.
Center for Research Studies
Right now all I get is text e.g. #d.title# I tried something
like #URL# but all that gives me is #Center# -- not helpful.
I've looked in several places and books without seeing a
simple explanation. Is someone willing to clue me in with an
example. of the proper coding.

Thank you. I'll try that. What I'm doing, not that people are
that interested, is taking a typical university library web site,
and recoding the whole thing in CF -- with the idea that,
eventually, I can zip up the whole thing -- databases, CFCs, and
all and make it available as an example for other libraries --
especially small ones -- sort of a toolkit of examples -- forms,
subject guide lists, etc.

Similar Messages

  • How to prevent hard-coding url's

    Hi,
    I have an adobe air application, that makes use of a few php scripts on my server.
    I use many httpservice's and they all have urls like:
    http://myserver.com/scripta.php
    http://myserver.com/scriptb.php
    Obviously there are many issues doing this.
    So how would i go about preventing this? Just store them in one file?
    Could someone give me a very simple example of how to do this?
    Any advice or links to info/tutorials is greatly appreciated.
    Thanks.

    flexillu10 wrote:
      Seems like every component uses a http service. 
    I have a login script, a script that loads a tree component with xml data, a search script, a download script and a log out script.
    This screams bad practice to me, what am i missing?
    Sounds like you aren't using an MVC architecture. I usually have a model component that looks after the data used by the UI. UI components never request data remotely. They signal (via events) a controller to request that the user logs in. The controller will co-operate with the model, so that in effect the model aggregates remote data requests and updates the model data as data is retrieved. The UI is updated via binding and/or event notification.
    All my remote communication is controlled by one component taht packages up requests for the server and handles the response. Many people use more sophisticated and formalised MVC architectures such as PureMVC, cairngorm, .. etc.
    Five actions is nothing.
    Paul

  • URL not found error while loading photo on Linux

    Hi,
    I have a AIR 2.0 appliaction which works perfectly well on Windows but while I run it on Linux Loader object can't load any photo. I tried many path variations but I always get Error #2035: URL Not Found.
    Here's how I load a photo (with hard coded URL)
    _imageLoader.load(new URLRequest("/home/piotr/105755/damage_photos/17.jpg"));
    I'm sure that "/home/piotr/105755/damage_photos/" path is correct. I pasted it to files explorer address text input and expected directory was opend. I'm also sure that 17.jpg file exists in that directory.
    When I trace IOError message it says: Error #2035: URL Not Found. URL: app:/home/piotr/105755/damage_photos/17.jpg
    My questions are:
    What "app:" does in my URL... can it cause the problem? If yes, how can I get rid of it?
    Is there anything specific about UNIX systems and Loader that should I know about?
    How can I load file from hard drive other way than by Loader object?
    I use AIR 2.0 SKD, Flex 4.5 SKD and Ubuntu 10.04. Could anyone help me, please?

    Hi,
    Just a test, can you try to do this:
    var f:File = new File(File.userDirectory.nativePath+File.separator+"105755"+File.separator+"damage_photos" +File.separator+"17.jpg");
    _imageLoader.load(new URLRequest(f.url));

  • Transporting of  the Hyperlink approach with the hardcoded url's

    Hi. VC guru's.
                       We have developed VC models with Hyperlink
    option with the hardcoded url's.
                      when we execute the model we could be able
    to get result. But our concern is
           1) There could be any issues we need to consider before
    we Transporting models with hyperlink option with hard coded url's?
          2) how we transport the Hyperlink approach with the hardcoded url's through the landscape?
          3) As per my understanding , Based on the target system  in the landscape we would have to adjust the hyperlinks. Not sure if the Portal transport system allows us to do that.
              Then in this situation what could we have to do?
                           Please provide your valuable inputs. we are
    waiting for your inputs. Points assured.
                           Thanks and Regards
                            Prabhakar. B

    Hi,
    The same method we used to pass parameters to the 2nd and 3rd i-views (Thread: Hi. Friends. Unable to Pass Parameters in Visual Composer) can be used here to pass parameters to the first i-view, one of which can be the address of the machine which is running the i-view.
    This means that the 1st i-view will have a start point with for example, the field "host_address", which can be stored in a datastore, and then the URL of the button will be dynamically built using this field.
    (for example the formula will be in the form of =datastore@host_address & "/irj/portalu2026")
    Alternatively we can use 2 parameters for the accurate address of the 2nd i-view and of the 3rd i-view.
    Hope this helps.
    Regards.
    Omer.

  • Site url in preview url

    For preview feature in bcc, i have specified a HomePagePath.properties files which contains the following content
    $class=atg.service.preview.PreviewPath
    defaultPath=/crs/index.jsp
    But instead of this hard-coded url, i would like to add site url to the defaultPath so that it might look like defaultPath=/crs/${site.id}/index.jsp
    My requirement is to preview the home page of that site, on which i am making changes in the Merchandising screen. So if i am selecting homeus
    the url should go to /crs/homeus instead of /crs/index.jsp.

    I have not tried this but I guess you can use RequestParameterRuleFilter for this and pass the pushSite and stickySite query parameters in your preview URL. Check the configuration of /atg/multisite/RequestParameterRuleFilter on your preview server. For details refer this documentation:
    Oracle ATG Web Commerce - Installed Rule Filters

  • URL Ridirect

    Hi All,<BR> <BR><BR>We have installed Hyperion System 9.2 BI+ on Solaris 10 using IBM Express 5.1.7 AppServer & Apache HTTP 2.0.52 Webserver . Our webserver is running on port 19000.<BR><BR> <BR><BR>We are accessing workspace login page by using following url :<BR><BR> <BR><BR><a target=_blank class=ftalternatingbarlinklarge href="http://hostname:19000/workspace/index.jsp">http://hostname:19000/workspace/index.jsp</a><BR><BR> <BR><BR>Now we have a specific requirement. User want to enter only the following url <BR><BR> <BR><BR><a target=_blank class=ftalternatingbarlinklarge href="http://hostname">http://hostname</a> <BR><BR> <BR><BR>and it should redirect to the<BR><BR> <BR><BR><a target=_blank class=ftalternatingbarlinklarge href="http://hostname:19000/workspace/index.jsp">http://hostname:19000/workspace/index.jsp</a><BR><BR> <BR><BR>Please guide how can achieve this. If somebody have posted the same question already, Please redirect me to that link.<BR><BR> <BR><BR>Any kind of help, suggestions would be appreciated.<BR><BR> <BR><BR>Regards,<BR>shekhar<BR>

    Hi Shekhar,I am also new to Load Balancer. Our Network folks have set it up for us. I gave them the cluster address of our 2 HFM Servers and they gave me a Virtual IP or VIP. So i have provided the VIP to my users and the Load Balancer works as a Round Robin (Network Term). So it know if one server is heavy on load, it will switch to the other server.I have not had any success so far with the Load Balancer yet. Maybe my settings in HFM Server / Web are not right. I have to work them through. In the mean time my users are using the hard coded url's.ThanksAzmat Bhatti

  • Dealing with resolving internal URLs externally in a non-split DNS scenario

    Hi all -
    I submitted this yesterday under a different banner but thought I'd try this forum as well.
    I have a client who wishes to have internal URLs resolvable from outside the network and they do not have split DNS.  He scenario is this:
    UserA sends a link to UserB in an email.  Internally the URL is MySIte.Acme.int.  UserB picks up the email on his mobile device whilst travelling and wants to gain access to it.  However the external namespace of the company is
    Acme.com.  Obviously the link will not resolve outside of the corporate network.
    So far I have received recommendations for using a VPN, however this is not an option for them.  In a past life I seem to recall something about alternate access mappings (or something like that) and wondered if this was the way to do make the links
    resolvable. And, if so, if someone could point me to a good article on how to implement this it would be much appreciated.
    Alternatively I was wondering if there is some magic that can be done with URL rewrites or an edge device like UAG or TMG.
    Any guidance or suggestions would be greatly appreciated!
    Kind regards,
    Wren

    What I would do is create a new internal DNS zone named Acme.com, create an A record of "mysite" pointing to the IP currently used by mysite.acme.int, and then simply add AAMs (or better yet, replace AAMs as the AAM the user is coming in on is
    what will be reflected in that email).
    http://blogs.msdn.com/b/sharepoint_strategery/archive/2013/05/25/alternate-access-mappings-explained.aspx
    https://technet.microsoft.com/en-us/library/cc263208.aspx
    URLRewrite won't work because the Acme.int domain is not resolvable on the Public Internet.
    So the plan of action should be:
    Go to Central Admin -> Delete -> select Remove SharePoint from IIS Web Site, and then choose the option to Delete the IIS web site. Change the AAM for the Web Application under Application Management -> Configure Alternate Access Mappings. Click
    Edit Public URLs, choose the Web Application hosting mysite.acme.int, and then change the Default Zone AAM to https://mysite.acme.com. Go back to Manage Web Applications, highlight the Web Application (you'll see the new AAM reflected here), then click on
    Extend. Create a new IIS site, change the port number (likely 443) with the appropriate host header (mysite.acme.com), select Use SSL, then click OK.
    So a couple of caveats:
    1) All SharePoint servers hosting this Web Application must have the SSL certificate matching mysite.acme.com prior to re-extending it.
    2) If you have any hard coded URLs (e.g. to images) on any SharePoint site within mysite.acme.com, you'll break their links and you will need to manually reconfigure them.
    3) If you've made any manual changes to the web.config, you will need to recreate those changes. It might be a good idea to grab a copy of the web.config for that Web Application (IIS Site) before deleting the site.
    4) Use SSL! You do not want to send NTLM in the clear over the public Internet. It can be easily intercepted and decrypted.
    Hope that helps.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Dynamically find direct URL for Silverlight download

    Greetings! I have a script that (among other things) downloads and installs the 64 bit version of Silverlight. Right now, the download is a hard coded URL. Every time MS creates a new version, the URL changes, so my script is outdated. And it seems that
    every time they release a new version, they make it harder and harder to find a direct link to the file. I used to be able to grab the redirect URL. But seems that's not the case anymore. Anyone have any ideas/suggestions?
    http://www.microsoft.com/silverlight/

    Looks like it hits that go.microsoft.com link, gets a 302 to
    www.microsoft.com/getsilverlight/handlers/getsilverlight.ashx, then a 302 to
    http://go.microsoft.com/fwlink/?LinkID=229321, then another 302 redirect to
    http://silverlight.dlservice.microsoft.com/046A42399067/30214.00/Silverlight_x64.exe
    I suspect that second "go" link is probably a detection routine to find out if you need the x64 or x86 version, and send you via the last 302 redirect to the appropriate file.
    Sure would be nice to have something that just returns the file URI for me.

  • Applet java file not refreshing in browser

    I have an applet that I am updating and I am not seeing the corresponding update when I open the web page. I can manually download the java class file and look inside it and it definitely is the updated file. I have deleted the browser history. (I am running tests with Firefox 3, IE7, and Safari 4 public beta). Is there something else I need to do to make sure the browser pulls in the latest version of the class file referenced in the html?
    Here is the code:
    <HTML>
    <HEAD>
       <TITLE>A Simple Program</TITLE>
    </HEAD>
    <BODY>
       <CENTER>
          <APPLET CODE="SendRequest.class" WIDTH="500" HEIGHT="150">
          </APPLET>
       </CENTER>
    </BODY>
    </HTML>The applet refers to a hard coded URL to read through a urlconnection. It is always reading a file and showing content, but it is not showing the right file. If I change the name of the referenced file in the java program, it looks like the browser has cached the referred file, rather than throwing and error and saying the file doesn't exist.
    Here is the java
    import java.applet.*;
    import java.awt.*;
    import java.net.URLConnection;
    import java.net.URL;
    import org.w3c.dom.Document;
    import java.lang.String;
    import java.io.*;
    public class SendRequest extends Applet {
        @Override
        public void paint(Graphics g) {
            g.drawRect(0, 0, 499, 149);
            g.drawString(getResponseText(), 5, 70);
        public String getResponseText() {
            try {
                URL url = new URL("http://myserver.com/stats/logs/ex20090603000001-72.167.131.217.log");
                URLConnection urlconn = url.openConnection();
                BufferedReader in = new BufferedReader(
                                    new InputStreamReader(
                                    urlconn.getInputStream()));
                String inputLine;
                String htmlFile = "";
                try {
                    while ((inputLine = in.readLine()) != null)
                        htmlFile += inputLine;
                    in.close();
                    return htmlFile;
                } catch (Exception e) {
                    return "Can't get the string.";
            } catch (Exception e) {
                return "Problem accessing the response text.";
    }Any help would be appreciated. I heard that some files may cache more persistently than others, but I don't fully understand the details.
    Thanks,
    Jim

    Check this [document loader example|http://pscode.org/test/docload/] & follow the link to sandbox.html for tips on clearing the class cache. That relates specifically to caching a refused security certificate, but class caching is much the same. As an aside, getting a console can be tricky in modern times (unless the applet fails completely). It is handy to configure the [Java Control Panel|http://java.sun.com/docs/books/tutorial/information/player.jnlp] to pop the Java console on finding an applet (Advanced tab - Settings/Java Console/Show Console).
    Of course there are two better tools for testing applets, especially in regard to class caching. AppletViewer and Appleteer both make class refresh fairly easy. Appleteer is the better of the two. I can tell you that with confidence, since I wrote it. ;-)

  • Problem with sso for asp applications

    Hi,
    i am using the web app integrator to integrate asp application with SSO, i am getting permission denied some times, the permission denied is a small html file on asp server side when userid is null.
    I am sure that the user id is not null because i have written small script to respond back with the passed user id like response.write(""), it is giving back the passed user id every time but at the same time i am getting Permission denied.
    The permission denied is a small html file on the .net server side when the ui=null in the pssing URL.
    How this is happening at the same time, one is giving back the user id and one is taking the user id as null.
    some times i am getting right page and some times giving permisssion denied.
    the basic URl is
    http://abc.xyz.com/sm_log.asp?userid=damodhar
    There is no great security behind this only passing user id, they are not passing the password even in the http header authentication. the simple logic is they are hiding the URL from the view source.
    if i pass the hard coded url from the browser i am getting the proper page at the same time if i pass the url  from portal it is working some times and some times not, i don't know when?
    I am using the web application integrator method.
    we are operating portal server from internet and .net server is on intranet.
    Thanks,
    Damodhar.

    If you lose sounds for keyboard clicks, games or other apps, email notifications and other notifications, system sounds may have been muted.
    System sounds can be muted and controlled two different ways. The screen lock rotation can be controlled in the same manner as well.
    Settings>General>Use Side Switch to: Mute System sounds. If this option is selected, the switch on the side of the iPad above the volume rocker will mute system sounds.
    If you choose Lock Screen Rotation, then the switch locks the screen. If the screen is locked, you will see a lock icon in the upper right corner next to the battery indicator gauge.
    If you have the side switch set to lock screen rotation then the system sound control is in the task bar. Double tap the home button and in the task bar at the bottom, swipe all the way to the right. The speaker icon is all the way to the left. Tap on it and system sounds will return.
    If you have the side switch set to mute system sounds, then the screen lock rotation can be accessed via the task bar in the same manner as described above.
    This support article from Apple explains how the side switch works.
    http://support.apple.com/kb/HT4085

  • Why is it not possible to write a UIX (or ADF) portlet for 9iAS?

    Hi,
    I have been trying for months to create a UIX/BC4J portlet for 9iAS but have been unsuccessful. The documentation and examples cover doing this with JSPs (there is a nice Forum application available for download on portalstudio). However all of my attempts to use UIX have hit a brick wall - we want to use UIX, not JSP!
    I have raised a TAR on Metalink and it has been going back and forth for several months. The support analyst has finally closed it in frustration because he cannot even tell me whether it is possible, let alone give me an example! I have investigated the JPDK and all of the UIX documentation I can get hold of, and have also looked at the ADF components in 10g, and the "Java Portlet Wizard" for Jdeveloper, but they are so far all dead ends. Can anyone help me, or explain why it is that a (to me anyway) SIMPLE and LOGICAL integration of two Oracle frameworks is impossible.
    Thanks,
    Steve

    Hi Steve -
    Thanks for the info. I have a few more questions...
    Andy,
    Yes, this is exactly the issue. Currently I am
    invoking the UIX servlet not as a registered portlet
    but as a hard-coded URL link on the portal page.Are you saying that in order to access the UIX application, the user clicks on a link which navigates out of Portal? If so, is this by design, or did you go this route because of problems creating a portlet for your UIX servlet? That is, would you prefer to have your UIX application run inside of Portal as a portlet, or do you explicitly not want this?
    Also, can you provide more background about your deployment environment? In particular, is the UIX application running locally on the same machine as Portal, or remotely on another machine? Is the UIX application running in the same application server/servlet engine as Portal?
    The application runs connected to the database but
    without the context of the SSO Portal user. I want to
    be able to display the Portal username on the uix
    pages, have the VPD context in the database
    connection (we have striped the tables but it only
    works if connected via Portal!!) and potentially have
    access to some of the extended Portal functionality
    in the JPDK (this last one a "nice to have").Unfortunately I have no idea whether this is possible, so I'm not going to be much help on my own. The best I can do is try to track down someone who can actually speak to this issue. However, given the lack of documentation and the fact that you weren't able to get a solution through support, I wouldn't be suprised to find that this type of integration simply isn't supported yet.
    I think you mentioned in the TAR that you had seen support for similar integration with Struts. If you know of documentation which shows how to do this type of thing with Struts, could you point me at it?
    Andy

  • Why is it not possible to assign a hotkey to onion skinning? (For toggling on/off)

    In Flash CS6 when animating frame-by-frame by hand, I'm constantly toggling onion skinning on and off, and the same with the "loop" button right next to it for looping a certain range of frames. Neither of these appears to be assignable to a hotkey, meaning I need to take the mouse/pen away from the drawing and hit these buttons several times a minute, really putting a damper on the workflow.
    Might we be able to get this in the next patch? It seems like a no-brainer, especially for a program that many people use for hand-drawn animation projects.

    Hi Steve -
    Thanks for the info. I have a few more questions...
    Andy,
    Yes, this is exactly the issue. Currently I am
    invoking the UIX servlet not as a registered portlet
    but as a hard-coded URL link on the portal page.Are you saying that in order to access the UIX application, the user clicks on a link which navigates out of Portal? If so, is this by design, or did you go this route because of problems creating a portlet for your UIX servlet? That is, would you prefer to have your UIX application run inside of Portal as a portlet, or do you explicitly not want this?
    Also, can you provide more background about your deployment environment? In particular, is the UIX application running locally on the same machine as Portal, or remotely on another machine? Is the UIX application running in the same application server/servlet engine as Portal?
    The application runs connected to the database but
    without the context of the SSO Portal user. I want to
    be able to display the Portal username on the uix
    pages, have the VPD context in the database
    connection (we have striped the tables but it only
    works if connected via Portal!!) and potentially have
    access to some of the extended Portal functionality
    in the JPDK (this last one a "nice to have").Unfortunately I have no idea whether this is possible, so I'm not going to be much help on my own. The best I can do is try to track down someone who can actually speak to this issue. However, given the lack of documentation and the fact that you weren't able to get a solution through support, I wouldn't be suprised to find that this type of integration simply isn't supported yet.
    I think you mentioned in the TAR that you had seen support for similar integration with Struts. If you know of documentation which shows how to do this type of thing with Struts, could you point me at it?
    Andy

  • Discoverer Plus not working in Internet Explorer

    IE 6.0 on Windows 2000 professional SP4 and all of the patches up to date.
    Latest Java run time from Sun.
    I hit the link to Plus and it will eventually bring me back to the login screen with all of the parameters empty. It also opens a new window which is in the background that is blank. The java icon does not appear when I click on the link either.
    I had the google tool bar installed so I removed this. Still the same result.
    I tried this in Firefox and it works perfectly! I have also tried IE with other applets and they all work perfectly.
    The environment is all in an Intranet. I have tested this with another Win2K desktop and got the same results. I have also tried plus with an NT desktop and it also does not work.
    Anyone else experiencing anything like this?

    Found the problem.
    The default installation has WebCache listening on port 80 and then Apache is listening on port 7777 or 7778.
    Discoverer Plus requires a JVM to run and with IE, it installs a particular version of the Sun JVM. The installer points to a hard coded URL in the $ORACLE_HOME/discoverer/config/configuration.xml file for IE users. For whatever reason, the URL is not pointing to the WebCache port but to the Apache port directly. The configuration file doesn't have a section for Firefox so it just loads a JVM which is already installed.
    I had disabled WebCache because it is another layer to fail when I don't really need or want WebCache. I did this by turning off WebCache with OEM and then editing the httpd.conf file. I changed Listen 7777 to Listen 80.
    Now when a user with IE tried to open Discoverer Plus, the configuration points the browser to a port that Apache isn't listening on anymore.
    The fix is to have Apache listening on both 7777 and 80 when disabling WebCache. Or you can edit the configuration.xml file and and remove the port number so that it gets either 80 or 443 automatically.

  • Report Sorting with PL/SQL Headings

    Hi,
    I have PL/SQL Headings for my reports. Is there a way to use the sorting feature nevertheless?
    I tried to put the sorting syntax in my PL/SQL Headings, but it breaks at the first colon.
    BTW: How can I get the region_id? Is there a "hidden" substitution string like &APP_ID.?
    return 'Projekt' || ':' || to_char(sysdate,'WW/RR') || ':' || to_char(sysdate,'WW/RR') || ':' || 'Bericht'
    Regards, Juergen

    Hi Juergen,
    Column heading sorting does not work when using a PL/SQL function to determine the column headings in the current version. This issue has been resolved and it will be working in the next release. There is no substitution string to determine the region ID and I would not recommend hard-coding URLs in your headings PL/SQL function because the URL sort syntax used might change in future versions.
    Regards,
    Marc

  • How do I branch to a dynamic page on the App Server

    I have a dynamic page that is a menu that is dynamically generated based on what choice was selected from a higher level menu that is a portlet on the front page of our site (Application Server based). This menu calls up application code, currently app server portal forms. I want to convert over to HTML DB. I can not get a branch to work to branch back to my application menu. When I use function returning URL, it is appending anything that I return after the /htmldb and not replacing the URL. The hard coded URL works, but I have something that I need to look up from a database record to append to the URL. When I try using portal's portal.wwa_app_module.set_target procedure to do it, nothing happens and I get the error stating that I have no default branch to process. Thanks for the help

    Dwayne,
    I would suggest that you focus on only the HTML DB pieces here, given that the Portal components are just part of the "outside world". If you are having trouble with a branch to a function returning URL, show us the exact code and what it returns vs. what you are expecting it to return. The Apache request log might show useful inormation as well if the redirect seems to be broken.
    Scott

Maybe you are looking for