Re: [Dspace-tech] main servlet for url pattern: dspaceurl.com/*
Yes Peter, that's what I have exactly done at first attempt and worked perfectly, the problem is that I don't want any featureA destination url so that's why I asked about the root behavior. If is so difficult I would make a tomcat redirection . Anyway I can't understand which is the main servlet for all dspace.com/* requests for jspui... it must have one isn't it? Thanks. -- View this message in context: http://dspace.2283337.n4.nabble.com/main-servlet-for-url-pattern-dspaceurl-com-tp4676559p4677084.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] main servlet for url pattern: dspaceurl.com/*
Pablo, There is no main servlet for all of the DSpace JSPUI. The individual servlet mappings are all defined in that web.xml, and mapped to various url-patterns. So, as Peter notes, you'd need to add a new servlet-mapping to this section: https://github.com/DSpace/DSpace/blob/master/dspace-jspui/src/main/webapp/WEB-INF/web.xml#L493 Or you can do a tomcat redirection as you mentioned. - Tim On 3/19/2015 3:14 AM, Pablo Buenaposada wrote: Yes Peter, that's what I have exactly done at first attempt and worked perfectly, the problem is that I don't want any featureA destination url so that's why I asked about the root behavior. If is so difficult I would make a tomcat redirection . Anyway I can't understand which is the main servlet for all dspace.com/* requests for jspui... it must have one isn't it? Thanks. -- View this message in context: http://dspace.2283337.n4.nabble.com/main-servlet-for-url-pattern-dspaceurl-com-tp4676559p4677084.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] main servlet for url pattern: dspaceurl.com/*
Hi Pablo, DSpaceWebappServletFilter is part of dspace-services, which is a different layer than JSPUI. So, if you wanted to create a Java class, or servlet to match a custom url, then follow Tim's advice, customize web.xml in https://github.com/DSpace/DSpace/blob/master/dspace-jspui/src/main/webapp/WEB-INF/web.xml You could add a regex at the root, but you'll have to filter out all of the legitimate/necessary functions of JSPUI, it might be easier to add a prefix, such as domain.com/featureA/1234-5678, then your pattern can be: servlet-mapping servlet-namefeatureA/servlet-name url-pattern/featureA/*/url-pattern /servlet-mapping And declare your featureA servlet: servlet servlet-namefeatureA/servlet-name servlet-classorg.dspace.app.webui.servlet.FeatureAServlet/servlet-class /servlet And create a Java class dspace-jspui/src/main/java/org/dspace/app/webui/servlet/FeatureAServlet.java I would copy something like HandleServlet, and see how it has method doDSGet, and it gets the requested url through request.getPathInfo(), which will be the users secret code. Also, keep in mind, you could always use rewrite rules in nginx or apache, to bounce traffic around to where you want it, and that might be easier to manage too. i.e. regex to bounce domain.com/1234-5678 to domain.com/code/1234-5678 Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Tue, Mar 17, 2015 at 7:33 AM, Pablo Buenaposada pablo.buenapos...@csuc.cat wrote: up -- View this message in context: http://dspace.2283337.n4.nabble.com/main-servlet-for-url-pattern-dspaceurl-com-tp4676559p4677050.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] main servlet for url pattern: dspaceurl.com/*
up -- View this message in context: http://dspace.2283337.n4.nabble.com/main-servlet-for-url-pattern-dspaceurl-com-tp4676559p4677050.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] main servlet for url pattern: dspaceurl.com/*
up! -- View this message in context: http://dspace.2283337.n4.nabble.com/main-servlet-for-url-pattern-dspaceurl-com-tp4676559p4676945.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] main servlet for url pattern: dspaceurl.com/*
Hi Pablo, For the JSPUI, you'd want to look in the JSPUI's web.xml. It is what matches various URL paths and defines which Java Servlet will respond to the request: https://github.com/DSpace/DSpace/blob/master/dspace-jspui/src/main/webapp/WEB-INF/web.xml - Tim On 2/27/2015 4:11 AM, Pablo Buenaposada wrote: shit, i'm using jspui, seems that sitemap.xmap is not found in jspui resources. -- View this message in context: http://dspace.2283337.n4.nabble.com/main-servlet-for-url-pattern-dspaceurl-com-tp4676559p4676814.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] main servlet for url pattern: dspaceurl.com/*
Hi Pablo, Sorry for the delayed response. Assuming you are looking to use the XMLUI, I think what you are looking for is the XMLUI sitemap.xmap (which is an Apache Cocoon config): https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/sitemap.xmap This sitemap config file matches various URL path patterns and forwards them along to various Java classes, etc. Here's an example of a Regex match (which matches any path starting with a number, and redirects it to the /handle path where it is processed as an identifier): https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/sitemap.xmap#L653 So, you'll likely want something similar, depending on your exact needs. More info on SiteMaps is in the Cocoon documentation: http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html - Tim On 2/10/2015 3:20 AM, Pablo Buenaposada wrote: Hi, I want to modify the behavior when someone request an url like dspaceurl.com/1234-567-890-1234 What I understand is that I need to look if in web.xml there is a servlet that captures that url pattern, as java servlets doesn't allow regexp in url patterns, I think that the servlet that would capture any url like that is the one that maps /*. That mapping is already defined by dspace.request mapping, and I see that is related to org.dspace.utils.servlet.DSpaceWebappServletFilter, but If I make a print in that Java class, when I request dspaceurl.com/1234-567-890-1234 seems that the execution never goes through that class, well, any url I request never goes to that class, so I don't understand nothing. What's the java class that catches that petitions? Thanks. -- View this message in context: http://dspace.2283337.n4.nabble.com/main-servlet-for-url-pattern-dspaceurl-com-tp4676559.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] main servlet for url pattern: dspaceurl.com/*
hello? -- View this message in context: http://dspace.2283337.n4.nabble.com/main-servlet-for-url-pattern-dspaceurl-com-tp4676559p4676646.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=190641631iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] main servlet for url pattern: dspaceurl.com/*
Hi, I want to modify the behavior when someone request an url like dspaceurl.com/1234-567-890-1234 What I understand is that I need to look if in web.xml there is a servlet that captures that url pattern, as java servlets doesn't allow regexp in url patterns, I think that the servlet that would capture any url like that is the one that maps /*. That mapping is already defined by dspace.request mapping, and I see that is related to org.dspace.utils.servlet.DSpaceWebappServletFilter, but If I make a print in that Java class, when I request dspaceurl.com/1234-567-890-1234 seems that the execution never goes through that class, well, any url I request never goes to that class, so I don't understand nothing. What's the java class that catches that petitions? Thanks. -- View this message in context: http://dspace.2283337.n4.nabble.com/main-servlet-for-url-pattern-dspaceurl-com-tp4676559.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette