This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Is it possible to access file from server having url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Is it possible to access file from server having url "www.domain_name/filename.jsp/"" Watch "Is it possible to access file from server having url "www.domain_name/filename.jsp/"" New topic
Author

Is it possible to access file from server having url "www.domain_name/filename.jsp/"

Vinod suryawanshi
Ranch Hand

Joined: Aug 08, 2012
Posts: 50
Friend if anybody know about this, then please help me with this issue...
i deploye one project on linux server. now my seniour buy one payment getway. Api provider don't have there static ip address, and wants us to create one page with name register. So they can hit on our register page, and when they hit on our register page we have to save there ip and then send them parameters. or in other words, we need there ip to create api.

So as per there request we create "register.jsp" page. This access this page directly by typing, "www.domainname/register.jsp" or "domain-ip/register.jsp" in browser. its working fine.
When, i try to hit my own page by using java.net class socket method.
GET /register.jsp HTTP/1.1, here domain name is save and get attached before "register.jsp".
i get output- HTTP/1.1 200 ok (text/html) , which is right and as aspected.

But our api provider hiting our site with GET /register.jsp/ HTTP/1.1, they attached extra '/' after "register.jsp". and then they get output--HTTP/1.1 404 Not found (text/html)

and they are blaming us, that we have some mistake in our page.

So my qustion here is, its really possible to create page with '/' at the end. i know '/' came only after folder name, but those api provider wants us to create page having '/' at the end so they can get HTTP/1.1 200 ok output.

Please, if somebody have any knowledge about this, help me...
Thanks...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it possible to access file from server having url "www.domain_name/filename.jsp/"
 
Similar Threads
Struts2 key attribute
its possible to keep file with filename.jsp/ name
How to See the HTTP Message Exchange between browser and Tomcat?
java.net Socket port number question