File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes its possible to keep file with filename.jsp/ name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "its possible to keep file with filename.jsp/ name" Watch "its possible to keep file with filename.jsp/ name" New topic

its possible to keep file with filename.jsp/ name

Vinod suryawanshi
Ranch Hand

Joined: Aug 08, 2012
Posts: 51
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 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...
I agree. Here's the link:
subject: its possible to keep file with filename.jsp/ name
It's not a secret anymore!