This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
Author

its possible to keep file with filename.jsp/ name

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: its possible to keep file with filename.jsp/ name
 
Similar Threads
Host Aliases Websphere 3.5.3
How to change application url?
java.net Socket port number question
Struts2 key attribute