custom-url

How to remove JSP's native request URL?

只谈情不闲聊 提交于 2019-12-11 02:33:34
问题 I have a webpage page called page.jsp , and I only want it to have 2 URLs: /page-url-1 /page-url-2 In the web.xml I wrote: <servlet> <servlet-name>Page</servlet-name> <jsp-file>page.jsp</jsp-file> </servlet> <servlet-mapping> <servlet-name>Page</servlet-name> <url-pattern>/page-url-1</url-pattern> <url-pattern>/page-url-2</url-pattern> </servlet-mapping> But now, it has 3 URLs: /page.jsp <== Not wanted /page-url-1 /page-url-2 Question: How do I remove the JSP's native URL, and assign it

Send link with custom scheme through Gmail

﹥>﹥吖頭↗ 提交于 2019-12-10 11:36:48
问题 I'm trying to send a deep link that opens my Android app: String body = "<a href=\'myscheme://myurl?Id=37\'>Link to simulation</a>"; Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent.setType("text/html"); emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "share"); emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml(body)); startActivity(Intent.createChooser(emailIntent, "Email:")); But when I got the email with the code above and with

Custom URL for Magento's basket page

霸气de小男生 提交于 2019-12-06 15:16:16
问题 I'd like to implement custom URL for our Magento's basket. Magento out-of-the-box url paht is /checkout/cart but client request /checkout/bag. I tried to somehow * URL rewrite management in backend - it works, but I need to update all occurences in code to new url, because $this->getUrl('checkout/cart') doesnt translate into checkout/bag * also I tried to follow some advices from http://alanstorm.com/magento_dispatch_rewrites_intro but basicaly it doesnt help me too. * also I tried example

Custom URI navigation from Notification and from browser

狂风中的少年 提交于 2019-12-06 10:21:39
问题 I am working with Custom URIs to show the appropriate content in android app. Naviation flow from Notification : onMessage() method of GCMBaseIntentService I have call to generateNotification() method. private void generateNotification(Context context, String message, String uri) { int icon = R.drawable.icon; long when = System.currentTimeMillis(); NotificationManager notificationManager = (NotificationManager) context .getSystemService(Context.NOTIFICATION_SERVICE); Notification notification

custom URL scheme does not work when app is not running in background

亡梦爱人 提交于 2019-12-05 19:33:36
I am calling a custom URL from safari to launch an app. It works fine if the app is running in background. But when the app is not running in background , but is already installed on the device, the app does not launch. I have implemented both of the following methods: - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation but none of them is called when app is not running in background. Also I have googled and found that we can

How to handle mod-rewrite with a custom url scheme?

孤街醉人 提交于 2019-12-04 17:01:55
So here's my problem : I'm trying to do a redirection on a webpage with the htaccess file. This redirection will be towards a custom URL (i.e not something ike "http://..." but something like "myurl://...). For now, I'm trying this on a little local apache server, in which I have a index.html page, a "test" directory and in this directory a .htaccess file and a test.html file. Here's what's inside the .htaccess file : Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteRule ^(.*)$ myurl://test$1 [R=302] I think the problem probably comes from here, as I'm totally new at this and this

Custom URI navigation from Notification and from browser

懵懂的女人 提交于 2019-12-04 13:02:23
I am working with Custom URIs to show the appropriate content in android app. Naviation flow from Notification : onMessage() method of GCMBaseIntentService I have call to generateNotification() method. private void generateNotification(Context context, String message, String uri) { int icon = R.drawable.icon; long when = System.currentTimeMillis(); NotificationManager notificationManager = (NotificationManager) context .getSystemService(Context.NOTIFICATION_SERVICE); Notification notification = new Notification(icon, message, when); String title = context.getString(R.string.app_name); Uri

Codeigniter subdomain routing

你离开我真会死。 提交于 2019-12-03 06:01:21
问题 I'm trying to setup a blog script on a website running on the CodeIgniter framework. I want do this without making any major code changes to my existing website's code. I figured that creating a sub domain pointing to another Controller would be the cleanest method of doing this. The steps that I took to setup my new Blog controller involved: Creating an A record pointing to my server's ip address. Adding new rules to CodeIgniter's routes.php file. Here is what I came up with: switch ($

Custom URL Scheme maximum URL length

…衆ロ難τιáo~ 提交于 2019-12-02 20:24:16
As per title, what is the maximum length a URL can be, when using a custom URL scheme with an app? e.g. If I'm launching another app via URL, and passing a blob of data using something like myappscheme://some/path?data=0123456789ABCDEF how long can that string get before the URL gets cut off (or the system refuses to launch the other app at all)? Unfortunately, the answer does not seem to be available. The max len is not defined specifically in any iOS documentation that I could find. There are limits, as noted above by MSK's link, for the URL base url length, not the absolute string length of

How to pass argument through custom url to an application

有些话、适合烂在心里 提交于 2019-12-02 15:50:03
问题 I am using windows 7 I want to pass filename as argument which I want to open through custom url. I followed link http://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx My python code is: import os,sys selectedFileName=(sys.argv)[1] os.startfile(selectedFileName) My registry setting is: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cultest] @="\"URL:cultest Protocol\"" "URL Protocol"="\"\"" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cultest\DefaultIcon] [HKEY