Application.cfc and invoking by url a cfc
hi all!
i have to invoke by url a cfc. like this...
http://domain/cfcByUrl.cfc?method=get
now, if i add application.cfc to root of my application, my
cfc invoked by url not works! it return only a white page!
what happen? where do i wrong?
cfmx7.0.2 on linux
thanks
Rob
vkr, thanks for your reply
quote:
You have to call the CFC's through the URL by passing the
function and its arguments
yes, it is.
quote:
You have to set your function access type to remote
yes, it is.
i make some testing.
if i remove onRequest method in my application.cfc my cfc
called by url works perfectly. but, i think, is not a good choice
remove onRequest... :o) this is mine...
<cffunction name="onRequest" output="Yes">
<cfargument name="targetPage" type="string"
required="yes" />
<cfinclude template="#arguments.targetPage#" />
</cffunction>
i test this situation on linux and windows. i've the same
problem.
thank
Rob
Similar Messages
-
Adding and invoking a URL in a Grid Item
I am a Flex newbie!
In actionscript I am trying to add a url in a GridItem to be displayed then navigated to popping up a new window when the GridItem is clicked on. I have been using UITextField with the TextFormat but I am not getting anywhere. There are multiple GridItem's in the Grid that must have individually clickable URLs. Can anyone please point me at some code that will achieve this? It would also be helpful if the window that is opened can be shared (ie. individual windows are not opened when multiple items are clicked on).
Cheers and thanks,
Chris MugdanSolved it!
-
Difference between application.cfm and application.cfc
Hi,
Can anybody explain the difference between Application.cfm
and application.cfc?
For example:
I have Application.cfm and Application.cfc in the same
folder.
/folder/application.cfm
/folder/application.cfc
/folder /test.cfm
…. And I run the test.cfm.
Which one is executed first?
Thanks,
KrishnaYour last question - Which one is executed first?
The application.cfc will be executed first if you call the
test.cfm. The application.cfm will not get executed.
and, about ur first question... cfm and cfc are entirely
different. You have onRequestStart, onRequestEnd and other events
on cfc. cfc is powerful than cfm. -
Difference between Application .cfc and .cfm?
Title says it all. I'm a bit confused about the difference
between Application.cfc and .cfm.
I understand a bit more about the .cfc, where you define
methods onRequestStart, etc.
Yet in an example I'm following, they use .cfm and the
<cfapplication> tag. Both seem to get called, but should I
only be using one file? Or?
Also since both can be used what is the calling order by
ColdFusion or is one ignored if the other is present?if you have both files in the same location, only .cfc is
processed.
.cfm is ignored if .cfc is found.
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com -
How to hide application id and page number in url
The url that displays in a live session on the internet displays the application id and the page number.
How can I hide this information from the public user?
Thanks,
MaggieMaggie,
It's NOT an APEX problem actually.. It's the server that serves UP apex to your users. Thus, you are having to make changes in the APP SERVERS end of things.. APEX does NOT have ANY CONTROL over ho wits URL is served up...
Thank you,
Tony Miller
Webster, TX
While it is true that technology waits for no man; stupidity will always stop to take on new passengers. -
Pass the username and password in URL to auto log in the application from SharePoint List
how to Pass the username and password in URL to auto log in the application from SharePoint List
I have a link in my SharePoint list when user try to open the link its asking username and password .i want to put username and password in URL to auto log in into that external URL from sharepoint
please help me it is possibleCheck out
http://serverfault.com/questions/371907/can-you-pass-user-pass-for-http-basic-authentication-in-url-parameters
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com -
How to exit from a WebDynpro ABAP application and open another url
Hi Friends,
How to exit from a WebDynpro ABAP application and open another url like (www.yahoo.com) in the same window of the WD4 application on click of a Button?
Regards,
XavierHi,
First of all you should create outbound plug in the window you are trying to exit with plufg type "Exit"
Then create method handler in the view with this code
data lo_view_cntr type ref to if_wd_view_controller.
data lo_win_cntr type ref to if_wd_window_controller.
data: l_parameter_list type wdr_event_parameter_list,
l_parameter type wdr_event_parameter,
l_val type ref to data,
l_val_url type REF TO data.
field-symbols: <fs> type any,
<fs_url> type any.
lo_view_cntr = wd_this->wd_get_api( ).
lo_win_cntr = lo_view_cntr->get_embedding_window_ctlr( ).
CREATE DATA l_val type c.
CREATE DATA l_val_url type string.
ASSIGN l_val->* to <fs>.
ASSIGN l_val_url->* to <fs_url>.
<fs> = 'X'.
<fs_url> = 'http://your-link.com'.
l_parameter-name = 'URL'.
l_parameter-value = l_val_url.
INSERT l_parameter INTO TABLE l_parameter_list.
lo_win_cntr->if_wd_view_controller~fire_plug( EXPORTING plug_name = 'EXIT_PLUG'
parameters = l_parameter_list ).
You can easily change this logic to exit application instead of redirecting to the site
just changing to
l_parameter-name = 'CLOSE_WINDOW'. -
I'm trying to download Premier pro and I'm getting an error message saying "There is no application set to open the url aam://SAPCode=PPRO? Does anyone know how to resolve this issue?
RiiichéC please try the process again in a different web browser or install through the Creative Cloud Desktop application. You can find details on how to install the Adobe applications included with your membership at Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html.
-
Component in Application Scope and cflock
Hi,
I have an CFC that I set in application scope in the
onApplicationStart method which contains some system parameters,
one of which is a flag saying whether the site is currently
"Online". I call a method on this CFC in the Application.cfc
"onRequest" method to see if the flag value has changed.
This method looks up a parameter set in the database that
says whether the site is "online" or "offline". If the site is
currently online, I want to only redo the query every 5 mins.
However if the site is offline, I want to check more frequently
(every 5 secs) as to whether the flag has changed back.
What I am not sure of, is whether I need to be using
<cflock> when I change from "online" to "offline"? There is
only a single instance of this object, but what happens if multiple
requests are calling the "isSiteOnline" method simultaneously? Is
this "safe"?
Some code snippets are attached to illustrate.
Any advice would be greatly appreciated.
Regards,
Andrew.> <!--- DO I NEED TO USE CFLOCK HERE???? --->
No, in either situation.
Ask yourself... what would the ramifications be of two
requests hitting
that line of code "simultaneously"? The end result is that
both of them
are setting the variable to the same static value... so
that's what's going
to end up happening: variables.instance.cacheInterval is
going to be set to
300 (or 5) in each situation.
You could well with to lock a block of code which - if called
simultaneously via more than one request - could act on
shared storage
space (server, application or session data) differently and
incorrectly
than is intended.
eg:
<!--- application bootstrap process --->
<cfif not structKeyExists(application, isInitialised and
not
application.isInitialised>
<!--- initialisation process, whatever it is --->
<cfif allOK>
<cfset application.isInitialised = true>
<cfelse>
<cfset application.isInitialised = false>
</cfif>
</cfif>
So a sequence of events could be (say the user is hitting the
site with two
different browsers):
REQUEST1: application.isInitialised doesn't exist
REQUEST1: starts the init process
REQUEST2: application.isInitialised STILL doesn't exist
REQUEST2: starts the init process *again*
REQUEST1: sets the application.isInitialised value
REQUEST2: sets the application.isInitialised value
Obviously one does not want two request running the
initialisation code.
note this is a slightly contrived example, as if one has an
OnApplicationStart() method, then it will only run once, and
that's where
one would have the init code, but it demonstrates the issue.
Google "race condition". Those are the situations in which
one needs to
lock blocks of code.
Adam -
Application Integrator and SSO by SAPLOGONTICKET
After the docs (e.g. "How to Use the Application Integrator") and blobs mainly focus on user mapping, I wonder how to configure SAPLOGONTICKET in com.sap.portal.appintegrator.sap.Generic efficiently.
Does combining "URL template" and "URL template fraction for SSO" give a chance for sending a Login Ticket to another server (distinct domain)? Or is the "authentication" part in "URL template" useless for Login Tickets (as stated in <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=21141">Thread 21141</a>)?
Thanks
GerhardHi Gerhard,
If your system is set to log on with SAP logon tickets for authentication, you can specify an authentication template in parameter SSO2Template, e.g. MYSAPSSO2=<Request.SSO2Ticket>. That's all it takes on portal side to configure the SAP Logon Ticket when using application integrator. .
If you want to use SAP Logon Ticket for multiple domains (portal server and backend server are in different domains) you have to take special care. Have a look into the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/a0/88a340fa432b54e10000000a1550b0/frameset.htm">SAP Library</a> to find out how to configure logon tickets for multiple domains.
Hope I could help!
Best regards,
Martin -
Web Application Proxy and Safari
Morning, all.
I've installed and configured the new Windows Server 2012 R2 AD FS and Web Application Proxy, and I've run into some strange problems. I had some initial problems getting it to work, the documentation is a bit thin, but I now have Sharepoint and Webmail
published to the Internet.
I'm using x.509 Certificate Authentication for Extranet.
In IE on a Windows 8.1 Surface Pro everything works. I can log in using ether a softcert or a SmartCard.
On my OS X Mac I can log in using Chrome, but Safari won't work.
Same thing on my iPad running iOS 7.0.4, Safari won't work. Interestingly enough, on my 7.0.4 iPhone it DOES work. Even more interestingly, I CAN Workplace Join the iPad using the URL https://<adfs fqdn>/enrollmentserver/otaprofile but
I can't authenticate using the URL https://<adfs fqdn>/adfs/ls/IdpInitiatedSignon.aspx.
I get to select my certificate, but after that I'm getting this error message: "Safari cannot open the page because too many redirects occurred." In the Event log on the AD FS server I'm getting this:
Encountered error during federation passive request.
Additional Data
Protocol Name:
Saml
Relying Party:
http://<adfs fqdn>/adfs/services/trust
Exception details:
Microsoft.IdentityServer.Web.InvalidRequestException: MSIS7042: The same client browser session has made '6' requests in the last '0' seconds. Contact your administrator for details.
at Microsoft.IdentityServer.Web.Protocols.PassiveProtocolHandler.UpdateLoopDetectionCookie(WrappedHttpListenerContext context)
at Microsoft.IdentityServer.Web.Protocols.Saml.SamlProtocolHandler.SendSignInResponse(SamlContext context, MSISSignInResponse response)
at Microsoft.IdentityServer.Web.PassiveProtocolListener.ProcessProtocolRequest(ProtocolContext protocolContext, PassiveProtocolHandler protocolHandler)
at Microsoft.IdentityServer.Web.PassiveProtocolListener.OnGetContext(WrappedHttpListenerContext context)
Since it does work on an iPhone running the same browser, and Workplace Join does work on the iPad even if nothing else does I'm thinking there's some UserAgent voodoo going on in parts of the Web Application Proxy. It's no big deal that Safari in OS X doesn't
work, we can always run Chrome, but the iPad is a major problem and a total deal breaker if I can't fix it.
I would appreciate some good advice.Hi,
As both IE and Chrome work, I think it’s more a client side issue.
Maybe you need to clear you browser cache and cookies.
This also worth a try:
http://stackoverflow.com/questions/2640030/adfs-v2-0-error-msis7042-the-same-client-browser-session-has-made-6-request
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Hope this helps. -
Hi,
I need to invoke a URL from a bpel process.
what is the best way to do that?
i would like to send the URL as is and not build it in the process
thanks
amityou can use our http binding/ shown in 702.BIndings/http tutorial ..
does this fit your needs. clemens -
I can't get rid of a message which keeps popping up which says:
There is no application set to open the URL ximadpzl://save_ximad_token/(etc)
I have no idea to what they are referring and I can find no application which satisfy this requirement. How do I get rid of this message? It won't go away. I have tried turning off the computer, closing Safari, etc.All of these suggestions (delete caches, restart, terminal commands, etc) do nothing to actually LOCATE the problem. They are just standard purging processes, and they have all failed to achieve resolution. And it is NOT Little Snitch either (tried turning that off and nothing changed). All these forums on this matter have been speculative and useless.
Ladies and Gents... I have found and isolated the ACTUAL PROBLEM. It is a Safari Extension that is doing it... specifically "VideoCatcher 5.3.8" which for me was installed with MovieSherlock. The extension adds the ability to download YouTube movies directly from Safari (by showing a small download button next to any embedded movie). When I remove that extension, all the annoying pop-ups go away.
MovieSherlock is not the only utility that does this however. There are several YouTube downloaders out there that ALL install an extension that detects YouTube videos on the page. I bet my hat that many (if not all) of you who are experiencing this pop-up issue... have installed one of those downloader utilities.
So, the solution is simple: disable that extension. If you need to download a YouTube video from a page, either temporarily enable that extension again as needed, or leave the Safari integration disabled and launch the actual utility itself and enter the URL into it for your download.
I would expect that MovieSherlock and the other YouTube downloading utilities will need to update their extensions (soon?) to deal with Yosemite's new browser script management.
PROBLEM SOLVED. -
How to copy and paste text / url's from web pages
Hi,
Anyone know how to copy text and / or a url from a web page to another application?
Earlier I tried to copy a streaming url from a web page into media player internet radio but couldn't
Thanks
Paul
ps can we have a suggested improvements page where we can bullet point changes as at the moment the n900 is very basic in functionality.after swiping, an arrow icon on the left side of the screen will show up, you have to tap on the arrow icon once to make a red sign appear over it, then you can select text
Az. At.
IT Support Engineer
DED -
Invoking a url in System's default browser
Hi All!
I have one question related to invoking an url in a browser using Runtime.getRuntime()
I am using the command as
command = "rundll32 url.dll,FileProtocolHandler " + url;
Runtime.getRuntime().exec(command);
where url = (say) http://www.java.sun.com
This works perfectly fine for internet and intranet and intranet.
But if my url has spaces (more than one ) it fails.
e.g. url = "fileserver:\\Temp 12\read.html
Now the folder is "Temp 12" having two gaps inbetween Temp and 12.
I tried to use exec(String [] cmdArray)
but it gives me error as "java.io.IOException: CreateProcess: www.hotmail.com "cmd /c start" error=2"
Where cmdArray is defined as
String[] cmdArray =
("rundll32 url.dll, ileProtocolHandler " + url)
Any suggesstion or help.
AnandI ran into the same problem, and found solutions at:
http://ostermiller.org/utils/Browser.html
Maybe you are looking for
-
Can i use ichat between two separate macs on the same mobile me account?
Can i use ichat over two separate macs on the same mobile me account? I have an imac at home and may be getting a macbook for work. Can i use my mobile me account to chat between the two macs or would i need a mobile me account per mac??
-
I replaced my hard drive due to my old one failing. When I use Internet Recovery, it gives me the option to reinstall Mavericks. Then an error occurs when it tries to verify, and asks me to try again. Are my options just to reinstall from a CD?
-
Copy text from PM order to Purchase Requisition
Hello In our current set-up we have configured so that PM Order component item text is copied to requisition item text. But we also have a need to fill in requisition item note directly from the PM Order. We see that there is a possibility to copy tr
-
Hello. I have a puzzle that I cannot seem to find a solution for. When trying to print a PDF, one output is not the same as the other; let me explain. - Open PDF > File > Print > Make sure "Fit to page" is selected > Print = Printout looking good. Ho
-
I have held my finger on app until the apps start to wiggle. I then try to drag the app over another app to create a folder. All that happens is the apps move location. Is there a setting that I need to find to allow me to create folders