• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the kind of these URLs ?  RSS feed

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
Consider please these URLs:
http://www.infoq.com/articles/Application-Failover-using-AOP
http://www.infoq.com/articles/grails-ejb-tutorial
http://www.infoq.com/articles/EJB-Glossary
What are Application-Failover-using-AOP, EJB-Glossary ?
I don't think this is servlet mapping, because infoq may have 100s of articles (Oreilly also use the same URLs).
What is the kind of these URLs, how to create them ?
 
Jesus Angeles
Ranch Hand
Posts: 2069
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by John Todd:
Hi.
Consider please these URLs:
http://www.infoq.com/articles/Application-Failover-using-AOP
http://www.infoq.com/articles/grails-ejb-tutorial
http://www.infoq.com/articles/EJB-Glossary
What are Application-Failover-using-AOP, EJB-Glossary ?
I don't think this is servlet mapping, because infoq may have 100s of articles (Oreilly also use the same URLs).
What is the kind of these URLs, how to create them ?


Assuming java is at the back of these website/s, why cant those be servlet mappings? The html generated can depend on the request, which can vary up to infinity.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would suspect that a single mapping is used to map an article-serving servlet to /article/*.
[ January 20, 2007: Message edited by: Bear Bibeault ]
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If /article/ is a servlet mapping, so what is Application-Failover-using-AOP ?
A request parameter ? I don't think so.
A JSP page, no (an extenstion should be showed in the URL).
 
Jesus Angeles
Ranch Hand
Posts: 2069
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by John Todd:

A JSP page, no (an extenstion should be showed in the URL).


A servlet mapping to a jsp doesnt have to have an extension.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by John Todd:
If /article/ is a servlet mapping, so what is Application-Failover-using-AOP ?
A request parameter ? I don't think so.


Are you arguing with me?

The servlet mapping /article/* allows anything to trail the servlet path portion of the URL. That's what the * is all about.

I use this type of maping all the time.
 
William Janssen
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And by many frameworks as well, some example code for the servlet:

public class InvokerServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {

protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.getWriter().println("URI "+request.getPathInfo());
}
}

and the folowing in youre web.xml

<servlet><display-name>InvokerServlet</display-name>
<servlet-name>InvokerServlet</servlet-name>
<servlet-class>InvokerServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>InvokerServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They could also just be flat files, one directory per article, with an index.html in each.

There is no way to tell what's going on up on the server by looking at URLs.
Almost every web based platform provides some mechanism for mapping URLs to resources (mod_rewite, servlet-mappings, etc...).

They could be anything.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!