URL 2 « url « Java Network Q&A

Home
Java Network Q&A
1.API
2.bluetooth
3.Client
4.connection
5.Cookie
6.Development
7.Email
8.File
9.ftp
10.http
11.HttpClient
12.https
13.ip
14.Network
15.OS
16.RMI
17.Security
18.Server
19.Socket
20.tcp
21.UDP
22.url
Java Network Q&A » url » URL 2 

1. Url case sensitive    coderanch.com

I am developing one web site in WEGlogic 5.1. Now I have one problem, I don't know how to solve the "url case sensitive", you see, it does not make sense that URL is case sensitive. Is there someone who can help me? I am appriciate that if someone show me a example.

2. URL "protected"    coderanch.com

3. How do you get the url?    coderanch.com

4. URL hiding    coderanch.com

I have a servlet that functions as a frontend to a digital object repository. Requests to the servlet are in the form of encoded URLs that pass the necessary repository query arguments as parameters. Once the query has been resolved by the servlet, the URL obtained from the repository is then redirected back to the browser using sendRedirect(). This all works ...

6. forwarding to an outside URL    coderanch.com

I don't think you are trying to forward - that would imply that the user is leaving your website. What you are actually trying to do is invoke someone else's webapp as a subroutine of your own web logic. As Junilu said, the servlet can use HttpURLConnection for that, just like applets do (except that you don't have the "sandbox" restriction ...

7. A question on URL for tunneling - TIA !    coderanch.com

Hi all. For input/output streams : * on the client-side I have a TunnelLiteClient extending BaseTunnelClient. * on the server-side I have a TunnelLiteServer extending BaseTunnelServlet. Then I created the client proxy to take the place of the object, in this case "Math". The proxy has the following lines of code : public class RemoteMathLiteClent extends TunnelLiteClient implements MathInterface { // ...

8. Obtaining the referring URL...    coderanch.com

9. Track clicking of URL links    coderanch.com

Without some sort of intervention, you will never know when a user clicks a link. In order to track the click throughs, you will have to use JavaScript to send the new location to a servlet on your system, you can count it and then do a redirect to the correct URL. The cool thing to do would be to use ...

11. linking to url's local to client machine    coderanch.com

Hi, First, I'm sorry if this question may not be directly related to this forum, any suggestions for more appropriate web sites will be appreciated. Is there a way to have a web application find and open a file on the clients machine? I would like to be able to create a link that will open a file, html or image, ...

12. remmeber the URL design question    coderanch.com

Hi, I have to work on web application where i need for the user to logon with userid and password for some functions. So it will be some thing like the user clicks submit after entering the data on a screen, but then i want to show a page for the user to login, and if the login is successfull then ...

13. retreiving the URL    coderanch.com

I suggest using an Entry *Filter* to achieve this since 1. The logging can be directed to wherever you want it to be (file/ db) 2. You can selectively log certain JSPs only 3. You can stop the logging at any time you want it by turning it off in web.xml In you web.xml, define the filter like EntryFilter ...

14. URL Tampering - How to Prevent    coderanch.com

Changing the client ID for example. Basic security means that the servlet cannot trust anything being requested from a page. You validate the session id (a filter can check if the user has logged in and is authenticated), but I want to prevent an already authenticated client to see products of another client by changing the URL. Or am I reading ...

15. Orginating application URL    coderanch.com

16. Adding anchor tag to URL    coderanch.com

Hi, I have a tree of items in a web page which the user can click on to expand, which when they do, will submit a form and go to the servlet to process the results. It will then populate the expanded branch with the items and show the page again. Now, if the user had to scroll down the page ...

17. loading multiple URLs    coderanch.com

18. url    coderanch.com

19. Hide URL    coderanch.com

We use Sun One Portal server that allows for single sign-on for the users to multiple applications. In one of the applications, the user will request for an Actuate e.Report after providing input parameters in a JSP page. An URL will be formed with a given input which calls the Actuate report's execute command. The requirement is to hide this URL ...

20. Problem with encodeURL (c:url)    coderanch.com

Hi there, I have the following configuration: Tomcat, JSTL, Struts. 1. The Tomcat's server.xml contains the following context section: the docBase elements points to the location where previously I have unpacked the application's war file. 2. Used is JSTL's tag to ensure URL encoding (for disabled cookies scenario). ...

21. Url Display    coderanch.com

With regards to your question: what are you trying to do? Is it enough that the url in the address bar remains the same, but the actual page address changes but can be discovered by the user? If so you can use frames to hide the inner frame changes. You may want to look at a pattern called the Front Controller, ...

22. Trapping 404 URL    coderanch.com

Hello All, I am working on a java web application and have the need to preserve a URL that throws a 404 error. I have the following entered into my web.xml: 404 /servlet/RequestParameterAction This works fine. In the servlet I forward on to an appropriate page after some processing. What I am trying to do now is capture the ...

23. Changing the URL.    coderanch.com

Hi, I am using Tomcat -5.0.25 , i had made an application named PED and placed it in the webapps so when i type http://localhost:8080/PED . The application is working fine. Now what i want is to do something so that when i type www.PED.com , the application should run. For this i read the Tomcat Docs came to know about ...

24. The URL never changes    coderanch.com

Hi I have a requirement where in the URL displayed on the browser address bar should not change whatever link you click from page and however you navigate. The URL displayed should always be that of the home page. Also in the status bar instead of the link a title or static text has to be displayed when mouse is moved ...

25. How to handle the RTSP links using URL    coderanch.com

26. "case insensitive" url    coderanch.com

As Jeroen said, i dont think this can be done directly. However i think this can be done programmatically... here is how i think i would do it: 1. Let one servlet handle all requests. 2. In the servlet, use HttpServletRequest.getServletPath() to get the name of the servlet actually required. 3. once you get the name os the servlet, get it ...

27. single code base responding to multiple urls?    coderanch.com

I am putting together an application that will be used by different companies. I would like to be able to figure out which company is accessing my application based on url. This would allow me to load company specific information (eg skin). For example: mydomain.com/companyA mydomain.com/companyB even the following would work: mydomain.com/myApp/companyA mydomain.com/myApp/companyB Problem is, I don't know if this can ...

28. get value from url    coderanch.com

29. url sometimes we use / or \ difference    coderanch.com

30. Direct access to a URL    coderanch.com

hi all.. In a web application if i have copied a URL of certain page and pasted in the address bar of another window..first we get authentication form ,and if we give username and password it goes to corresponding servlet or action class depending on the given code..but i need the control goes to the exact jsp or servlet which the ...

31. URL processing    coderanch.com

An http page ( say A ) contains many links . Is it possible to take one link after another in A, and do processing as follows. Get the next link in A . Let us say it is B. If B is having many links, can we open each link in B and write them to a separate file. A ...

32. avoid port number :8080 in URL ?    coderanch.com

Can anybody help me with the solution to avoid :8080 (tomcat port number) in the URL for applications that is being developed in servlets/jsp/hibernate ? I know there is connector mod_jk that ppl use to integrate apache and tomcat, but that is much big problem for me becoz: I have more than 40 other jsp sites that have been running for ...

33. url encoder problem    coderanch.com

34. use get method without displaying on url    coderanch.com

Lets review what happens when a servlet gets a request. 1. Before your service method gets called, the servlet container constructs a request object and a response object. The request object is populated with the HTTP headers parsed out of the request. We are talking lots of String operations here, with all header lines parsed and placed in a Map.This is ...

35. forwarding in url    coderanch.com

Hi, I guess you mean that the result should be shown in a new browser (window). In that case it is not controlled by the server but has to be configured in the calling html page. e.g. in case you are submitting a page you can change the target attribute of the form or anachor element.

36. Servelt url should not be displayed.    coderanch.com

37. What is the kind of these URLs ?    coderanch.com

39. Forwarding to a URL outside the container    coderanch.com

You can not use request dispatcher for dispatching requests to outside a container , even you cannot dispatch to some other application in the same container. If you want to use the same request for this and having attributes attached to it , it might be difficult.But in case you do not have any request attribute then you might request the ...

40. restrict user typing the url explicitly    coderanch.com

my issue is not with the post actually the module has already been done and i cannot now go place dopost() method at each and every action class.so i just need one more alternate way such that any user types at the url it must not navigate to the next jsp page .

41. Special charecters in URL    coderanch.com

Hi there, If you find the hex value of the characters you need to pass in, you can use those. the hexadecimal value for a space is 20, and in a URL you can encode this as %20 the caret is %5E the pound character is %23 I'm sure some good references should come up if you google "url encoding" or ...

42. 'callback' url    coderanch.com

I need to send a url to my servlet to another server that will use the url to place a 'callback' link to my servlet on their page. My servlet does a search and presents a small map created by a mapper on another server. My page also has a link that takes the user to that other server and displays ...

43. tweak a url    coderanch.com

44. URL char    coderanch.com

Bear, I posted one question and it was handled in HTML section, thanks. As a follow-up, I would like to ask -- I want to make sure my site is cross site scripting (XSS) safe. So I want to "translate" some char into safe format. Do you think this will be a good approach -- use a servlet filter and scan ...

45. reload properties from url    coderanch.com

Hello Friends, My current application uses a properties file that works fine. However at runtime, in case there is an error, like it could not find the queue defined in the properties file then I need my app to go to a url and get properties from there, rewrite the old properties file and reload. I'm able to read the data ...

46. Little bit of a problem here: Need URL but don't have it!    coderanch.com

I have an applet that does some Java3D stuff. No problems there, but I want that applet to pull files (3D images) over the Internet for use in a CompressedGeometryFile. That class only has the following constructors: CompressedGeometryFile(java.io.RandomAccessFile file) CompressedGeometryFile(java.lang.String file) Unless an applet is signed, you can't do the RandomAccessFile thing across the Internet I believe. If the constructor would ...

47. Accessing similar URLs    coderanch.com

Explicitly get the URLConnection object associated with the URL using getConnection(), get the input stream from that object instead of directly from the URL, and be sure to call close() on the URLConnection itself after the request. It may be counterintuitive, but this is what is necessary to tell Java it's OK to reuse the connection.

48. URL class not working pls help me    coderanch.com

49. Generate Url randomly    coderanch.com

I want to generate a url that cannot be bookmarked. It will have to be constructed using some random characters. Suppose I use java.util.Random to create the random part of my url using 30 characters how easy would it be for a person to guess that url? What can I do to make my url hard to be guessed? What can ...

50. URL exists    coderanch.com

51. linking urls using arrays    coderanch.com

I have a web page written with combination of Front Page and Java is included. I have 4 drop down boxes which work in sequence. select an item in the first, it then asks you to select in the second box, then 3rd then in the final 4th box. This was set up using arrays. My question is how can i ...

52. how to call url    coderanch.com

53. Replace URL    coderanch.com

54. Application of URL!    coderanch.com

I use URLs for some pretty pedestrian stuff ... downloading files from web servers, checking to see if web servers are running and giving correct results. You could make a servlet read the content off Yahoo and write it out in the middle of your own HTML, but that would be unsanitary and antisocial. I think some portal technologies do that ...

55. Java URL Quick & Dirty code    coderanch.com

URL url = new URL("http://www.allaboutthehookup.com/images"); URLConnection uc = url.openConnection(); BufferedReader data = new BufferedReader(new InputStreamReader(uc.getInputStream())); String inputLine; ArrayList myLinkArray = new ArrayList(); while((inputLine = data.readLine()) != null) { if(lineContainsLink) { myLinkArray.add(substringContainingLink); } } data.close(); for(int i = 0; i < myLinkArray.size(); i++) { url = new URL(myLinkArray.get(i).toString); uc = url.openConnection(); code to open binary stream and write to file; }

56. URL Masking    coderanch.com

Hi Friends, I want some java/javascript code which will give me the result in following way : There are two servers say abc.com and xyz.com Port opened on abc.com is mapped with xyz.com In my browser it's showing me abc.com (where as the pages are on xyz server.) Now I want to hide or masked abc.com from my browser with some ...

57. URL butchering    coderanch.com

I didn't know it was called URL-butchering, but when you navigate to a page and you want to get to a higher level on the same site, you edit the URL, hack off the end to see if you can get to some kind of menu for the section of the site you are looking at. longer explanation Because we know ...

58. URLs    coderanch.com

Hi everyone, Sorry about only leaving a link. I got an e-mail from someone saying that its better if i posted thge question here than they going back forth. Anyways here are the two questions I have two rather silly questions about URLs but please bear with me for a while. Usually when you use the URLConnection class to read from ...

59. URL doubt    coderanch.com

60. url change in restfull calls    coderanch.com

hi ranchers, i am having a problem, what i am trying to do is:- there are two web-application in my projects both deployed at different server and one is communicating to other via rest-full calls. Now the problem is, while i am rendering the result from the second application the address in the address does't get changed i.e. 1) Application A ...

61. How browse a URL from local disk    coderanch.com

Hello To EveryOne, I want to Browse the URL and Sumit this URL(which is Image) store the Image in Oracle using servlet/JSP. Allthough I done store and reterive the Image in database.But I give this URL path in Servlet file. I want that URL give from browsing a Image URL path from local disk when I click to browse button,then select ...

62. How to test if a URL is accessible    coderanch.com

Hi I am trying to write a code that acepts a url (can be any protocol) and tests if the URL is accessible(either to read or to write). Because I dont know what the protocol is I just used java.net.URL to accept a url, created URLConnection by callong url.openConnection() and then made a connection by calling connection.setConnectTimeout(3000); connection.connect() if an exception ...

63. load url from java code    coderanch.com

65. URL Tampering    coderanch.com

66. Hide the whole URL from the User    coderanch.com

67. dynamic URL    coderanch.com

68. Class Loader is returning Enumeration of URLs???    coderanch.com

Hi, I am using a ClassLoader.getResource("mypackage") in my code and it returns me a Enumeration urls. My Question are, 1) I want to convert Urls to strings. Any Idea how would i do it. 2) I could not understand some parts of the javadocs of URL class it says, "The URL class is closely tied to protocol and content handlers. The ...

69. Bookmark an URL with encoded values    coderanch.com

70. Url masking    coderanch.com

How do i mask the url that is been printed in the print out sheet . My scernario is that when i take a print out the url of that machine is being printed . Instead of that i need my message to be dispalyed at that position . How can i do this with java coding ? Is there any ...

71. Url Masking    coderanch.com

How do i mask the url that is been printed in the print out sheet . My scernario is that when i take a print out the url of that machine is being printed . Instead of that i need my message to be dispalyed at that position . How can i do this with java coding ? Is there any ...

72. url masking    coderanch.com

73. How to interpret something- not sure what to call it, the urls that describe a class and its methods    coderanch.com

I often see pages like this one: http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/apidoc_framework/org/richfaces/model/TreeNode.html#getChildren() That have a method summary, method etails, etc etc But Im not sure how to read some of these things. For instance from Interface TreeNode I am looking at: getChildren java.util.Iterator>> getChildren() Getter for children entries. Each children entry contains identifier (key) and child node (value). Identifiers are used to generate model keys ...

74. Problem regarding url calling    coderanch.com

I am referring to this article http://code.google.com/apis/maps/articles/phpsqlsearch.html I want to build a java(servlet/jsp) application using above functionality. I have google on JAXP API for generating a xml documnet. So my question is as in the above php script we are out put the xml documnet ($dom->saveXML() ) so instead what should i have to do in a servlet.? My opinion is ...

75. I need the URL unicode representation of <> angle brackets?    coderanch.com

So, I'm working on a web scanner. In this project i need to url encode special characters like <,>,,etc. I can url encode these fine with String payload = URLEncoder.encode( payload, "UTF-8" ); This will take <> and turn them into urlencoded characters i believe %3d,%3e. Now my problem: I also need to encode these special characters as unicode. In particular ...

76. getting exact url    coderanch.com

77. URL getting loaded twice    coderanch.com

Hello, I'm new to the whole servlet/jsp thing so bear with me (i.e. this maybe a noob question). I'm currently writing a website that uses a servlet to catch all GETs and POSTs and forward the user to the appropriate jsp. These use EL & HTML to display the intended information. All my site links have the following format ?action=[actionName]¶m1=[param1]¶m2=[...]&... After ...

79. need case insensitive url    coderanch.com

what i exactly need is i my url looks like xyz/Abc and now if you enter Abc in upper case like ABC it is showing 404 error and if we enter aBC it will show 404 error only. what i exactly need is if we enter other than Abc it should redirect to Abc. i have tried it by using "RewriteRule ...

80. bookmark URL    coderanch.com

81. Dynamic URLs    coderanch.com

82. Expected to be challenged at this url, but was not    coderanch.com

I have an RSS feed on our Sharepoint server. When I open this feed through a browser, such as Opera, that does not do integrated Windows authentication, I get challenged, type in my credentials and I get in. When using IE, no challenge. So far so good. My expectation was that when opening the same url through Java I would have ...

83. How to generate custom user URL ?    coderanch.com

84. how to get the url (up to port) ?    coderanch.com

85. URL Masking    coderanch.com

86. Differentiate between text and url    coderanch.com

I think you misunderstood what Joe was saying. The RFC document he pointed you to describes in detail what a valid URL looks like. With that knowledge you can write code (possibly using regular expressions and other string operations) that checks whether a piece of text is (or contains) a valid URL.

87. fixed URL    coderanch.com

Here is easy solution for mention issue. You can achieve this by submitting request to server using POST type of request. If you are using links (
In general POST type of request wont be displayed in Browser URL (address bar)
rel="nofollow">

88. How to verify the url    coderanch.com

89. Is there any way to get the actual URL    coderanch.com

Hi everybody, I am Chaitanya, I am having a requirement in my application, the application will be sending encrypted links to the registered users. When the user clicks on the link from his mail a new window opens and the userid field will be populated with is id extracted from the encrypted link. Some times I am getting a '+' symbol ...

90. I want to make static URL    coderanch.com

Hey, I think there might be a few ways you could get around this, you could use javascript to make an AJAX request to get the data so that the page doesn't change. You could also send a redirect back to the plain url and stored something in the session that the servlet picks up. I wouldn't use either of these ...

91. Problem in getting # symbol from URL    coderanch.com

For my project I am sending the HTML value from one text editor. For that I had set the character set to UTF-8. Here I am sending value through URL. In the text editor I am Providing the facility of changing the color of text. Now when I change the color of text then on the servlet page where I had ...

93. Url name changing    coderanch.com

94. Help me on URL issues    coderanch.com

Hi I have a servlet in which some part of my page will be displayed by sending a http request to another application (in different context). Consider this content includes some images and styles and also some hyper links. I want every hyper links being served through my own servlet. In order to do this, I wrote a filter to manage ...

95. Working with an url. a specific problem    coderanch.com

I am parsing content within html with a java program I wrote. Here are the links I'm using and the problem: I use http fox or fiddler to see the web traffic so I can write it all into my java program.... The Link: http://151.213.249.227/oncoreweb/search.aspx?bd=7%2F31%2F1975&ed=1%2F30%2F2011&n=BRACEWELL%20STEVEN%20H&bt=OR&d=1%2F30%2F2011&pt=-1&dt=ALL%20DOCUMENT%20TYPES&st=fullname on that page on the right side you will see: Create Export File when you click ...

96. developing Coustom URL    coderanch.com

97. curious stuff returned in Url.getFile() or Url.getPath();    coderanch.com

I would like to better understand what to expect when I use a .getFile() or .getPath() on a Url object. I am noticing that for resources packed in a jar, there may be an "!" in the file string separating the jar from the resource part. Also, at the beginning, there may be "file:/" preceding the "c:/Documents%20and%20Settings/Phil/..." etc. At least, this ...

98. applicationname url change    coderanch.com

It is possible. You just need to create a front Controller servlet ,redirect every request to your front Controller and you are done. Now the servlet you want to call will be passed as a parameter for any form submitted. Then you can just include that servlet using the include method and you are done.

99. build URL    coderanch.com

100. Getting the URL by crawling whose content-type is not text/html    coderanch.com

I can get all those url's whose content/type is text/html, but If I want those urls whose content/type is not text/html. Then how can we check that. As for the string we can use contains method, but it doesn't have anything like notcontains.. Any suggestions will be appreciated.. And also The key variable contains: Content-Type=[text/html; charset=ISO-8859-1] This is the below code ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.