JSP mapping for REST based URLs

Hi,
I am in the middle of developing a web app for which I would like to have REST styles URLs like
http://localhost/myfotoapp/
http://localhost/myfotoapp/<album-name-here> or http//localhost/myfotoapp/album/<album-name-here>
http//localhost/myfotoapp/<album-name-here>/<my-foto-1> or http://localhost/myfotoapp/album/<album-name-here>/foto/<my-foto-2>I am hoping to just write 3 jsp pages for the URLs above (in the same order)
AllAlbums.jsp ( display the thumbnails of albums)
Album.jsp ( display the thumbnails of pictures in a particular album - get album name from URL)
Foto.jsp ( display a particular image - get the name of the image from the URL)
How would I map the jsps to the respective URLs ? I was hoping to map the 3 jsp above with /*, /album/*, /album/*/foto/* but that does I just realized that the wildcard character '*' in the servlet-mapping section can only be used either at the end or for extensions.
Looking for options ...
Thanks !

whacko wrote:
/album/*/foto/*
This one is indeed not possible. Best would be to have the servlet behind /album/* to check the URL if it contains /album/<albumname>/foto/<fotoname> and then have it to forward the request further to the foto servlet.

Similar Messages

  • How to configure proxy services in OSB for Rest based services?

    how to configure proxy services in OSB for Rest based services implemented using Jersey (Rest).
    The Client need to contact OSB proxy servies by posting application/xml using jersey client and OSB proxy service will call the OSB business service.
    i would like to know how to get this request in OSB proxy service and send it to the business service and get the response back.

    I would suggest you refer to the below links:
    https://blogs.oracle.com/jeffdavies/entry/restful_services_with_oracle_s_1
    https://blogs.oracle.com/jamesbayer/entry/using_rest_with_oracle_service
    Hope this helps.
    Thanks,
    Patrick

  • Can I create JDE BSSV (Business Services) for REST based services?

    Can I create JDE BSSV (Business Services) for REST based services? If yes, then how? In what way it will be different from SOAP based?

    Hi
    Within Oracle SOA Suite, Oracle Service Bus would handle the REST side of things, which in turn would call the JCA adapter to talk to your JDE backend, or vice versa.
    Checkout the JDE adapter docs - http://www.oracle.com/technetwork/middleware/soasuite/documentation/jdewardsweb-1954164.pdf
    and the OSB Docs - HTTP and Poller Transports - 11g Release 1 (11.1.1.7)
    OSB 11.1.1.7 introduced additional REST support, so I'd recommend using that version onwards.
    Cheers
    iain

  • Support for REST based storage systems

    Hi,
    I have a question on the target storage for the movies served by the Flash Media server. In your FAQ you mention that data can be stored on a local server or remote location. I assume you are referring to CIFS and NFS mountpoints? Do you support any REST based storage solution as a backend for the Adobe Streaming server? For example could I store my data on an Amazon S3, OpenStack,... compliant storage solution.
    Referring to the following FAQ:
    How does Flash Media Server integrate into my network?
    Flash Media Server runs on either Windows or Linux 64-bit operating systems. The XML-based configuration and C++ plug-ins allow a great deal of customization. Media files can be stored on the local server or in remote locations. Plug-ins can be configured to provide access control, directory/file mapping, authentication, or additional security features.
    Thanks,
    Stefaan

    Hi Thanks for your answer.
    As more and more object storage systems come into the market I strongly recommend you to integrate with a native Amazon S3 and OpenStack API instead of recommending a FUSE implementation.
    Can you tell me if that is on the roadmap by any chance?
    Thanks!

  • Domain mapping for the portal URL | URGENT

    Hi ,
      The project is expected to go live in 10 days .The user would be accessing the portal with the URL http://domain.company.com and <b>NOT</b> by http://domain:50000/irj/portal . I need to figure out how can we do that .
    We have a WAN network and a public ip has been assigned to the portal production server .We have a company domain reserved to be used for portal server .
    What will be required to be done on the portal side or anywhere else for the URL http://domain.company.com to translate to http://domain:50000/irj/portal
    Regards
    Deepak Singh

    Hi Deepak,
    You can achieve this by setting up Reverse Proxy in your DMZ such that all internet request hit the reverse proxy server and that re-routes request to your Portal server.
    If you want to avoid all these, you can use Html Redirection or Java Script redirection features.
    a. Point your request https://abc.comp.com to this html file which would inturn redirect to abc.comp.com:50001/irj/portal.
    Also refer my links in this thread
    Opening EP6.0 access from the Internet
    Hope this helps
    Regards,
    venkat.
    [Pls reward points if useful]

  • Can you create an image map hotspot for an external URL in Dreamweaver CS6?

    Can you create an image map hotspot for an external URL in Dreamweaver CS6?

    Duplicate post: http://forums.adobe.com/thread/1338701?tstart=0

  • How to register non-wsdl based URL in OEG

    How do we register a non-wsdl based URL endpoint in OEG? We had no problem registering a simple WSDL based endpoint on an OEG server. However we cannot find documentation on how to secure/register a RESTful or JSON – URL based service (SOAP, XML over HTTP type service).
    Does this functionality exist? Or are there best practices on what to do with OEG for these types of services?
    Our use case looks like:
    Akamai - - > OEG - -> OSB (WSDL, RESTful, JSON type web services) - -> .Net service (WSDL, RESTful, JSON type web services)

    In case of REST and other non-WSDL type services, there is no SOAP/WSDL based web service like registration process, you'd use OEG as the proxy. You can receive REST based requests at OEG, retrieve parameters (there are convenience filters available for retrieval of attribute values and other types of REST related functions in OEG, as part of the Policy library, "Extract REST Request Attribute", "Validate REST filter", "Create REST Request" etc. - search for REST at the top using Policy Studio, drag it on to canvas and click help for docs on these filters) and do the routing to actual REST end point services. You have the option to receive and use the SOAP message as a basis of generation of the REST url.
    REST to SOAP - http://www.soatothecloud.com/2008/11/how-to-convert-from-rest-to-soap.html
    SOAP to REST - http://markoneill.sys-con.com/node/1989916
    On use with JSON: you can convert XML to JSON on the outbound side to serve mobile clients etc. using script based(standard XSLT) conversions at the gateway. Conversions to Java using google gson library is also an option.
    To register a REST service, simply map the path (e.g. "/MyRESTService") to the policy you're using to process the REST request.
    Let's say you want to simply route a REST request through OEG (e.g. - to OSB). You would create a policy (right-click on "Policies" and add it). Drag in a "Static Router" filter and place in it the hostname and port of the host you want to route to (e.g. - to OSB). Then right-click on it and choose "Set as start" so that it is the first thing which is processed for this REST request. Then drag in a "Connection" filter, and chain it (using a green arrow) after the Static Router filter. The "Connection" filter actually makes the connection to the backend host.
    Now, map the path (using "Add Relative Path") to the service so that if a REST request to "/MyRESTService" or "/MyRESTService/something" comes into OEG, it is routed on to the backend host.
    Deploy your policy (using F6 or the "deploy" button on the Policy Studio toolbar). Then send in your REST request.
    There is actually already a simple REST service setup on OEG, called "healthcheck". If you point a browser to http://<OEG_IP_ADDRESS:8080/healthcheck" then this is run.
    If the backend REST service returns JSON, the response JSON will simply be sent back through OEG.

  • Developing JSP iViews for PCR on R/3 4.6C Backend??

    I have read several posts and have looked into a lot of documentation, but there still seems to be some confusion regarding MSS/PCR and EP 6.0.
    Here is some background:
    We are planning to upgrade our portal from Workplace 2.11 to SAP EP 6.0 (NW04).  We have an R/3 4.6C backend and we are using ITS forms for our PCRs. 
    When we move to the EP 6.0, I see two ways of proceeding:
    1.  Use IAC iView on ITS and just call our ITS based forms from the EP 6.0.  This means we keep our standalone ITS.
    OR
    2.  Develop JSP iViews for our PCR forms on EP 6.0.  This way, we would no longer need ITS. 
    My confusion is whether I can actually do option 2.  After upgrading to EP 6.0 and installing the plug in 2003.1, can I develop PCR forms using JSP iView with a R/3 4.6C backend?
    Thanks,
    Younoos

    I am not sure anyone can give you specific guarantees regarding development and use of your own custom JSP iviews ITS or otherwise
    What I can say is -->
    Certainly from a SAP perspective the delivered MSS Business Package 60.1.20 (HTMLB with JSP PCRs) is useable
    in the landscape versions you mentioned (46C with EP6)  as per following link
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/302ecc07-a56d-2910-8fad-84996151e3b4
    Therefore MSS PCRS based on JSP is possible in EP6 with 46C
    Its also not clear why your ITS based forms are being abolished - if you back-end remains 46C - then presumably these should
    still work - either called directly via ITS URL string given to users or integrated into EP 6 as a ITS iview or Portal HpF service calling ITS URL directly - the only reason I can think is that perhaps your ITS forms has a Workplace 2.11 dependancy or other dependancies I am not aware of.
    Best wishes
    Stuartr

  • JSP mapping in Tomcat

    I've a directory structure in Tomcat that looks like :
    TOMCAT_HOME\webapps\Security\jsp\
    Guys I need help on JSP mapping.
    I'm running Tomcat and I want all the /Security/*.jsp requests in Browser goto above context.
    i.e. http://localhost/Security/AJSP1.jsp
    should go an invoke TOMCAT_HOME\webapps\Security\jsp\AJSP1.jsp
    I donot want to manually map each JSP file in web.xml .
    I just want any browser request with URL
    http://localhost/Security/*.jsp
    goto TOMCAT_HOME\webapps\Security\jsp\
    Is there a way around.
    Thanks in advance.
    sam

    Put it in the conf/server.xml file. Check Tomcaat documentation for proper location. Here is a small ex.
    <Context path="/Security" docBase="<physical location>" debug="0" reloadable="true" crossContext="true" />

  • Consuming a rest based srevices in abap

    I am trying to consume a rest based servises in abap using the cl_rest_http_client class.
    i was just trying to call a simple get method but it resulted in a responce "HTTP client - communication error".
    when i use the same url from the restClient (Firefox extension it works)
    I have checked some blogs which talk about consuming rest srevices. most of them have a pre requisite to importing the security certificate of the service provider using the "strust" transaction.
    Since i dont have authorization for that transaction, i was wondering if it is possible to call a rest service without importing the certificate.
    Kidly suggest ways in which i can overcome this
    Thanks and regards,
    Saurav

    It is not possible to make an HTTPS request without importing the certificate.
    It works fine with HTTP request but for HTTPS we need to import the certificate and pass the SSL id.

  • [Zen Micro] Road map for firmware 1.x / end of life

    Hi all,
    does anyone (hint, hint, moderators) know what's the supposed road map for the Micro firmwares. Ok, I know that Creative doesn't comment on the functionalities and releases .
    But my essential question is this:
    <FONT color=#cc0000>Is the firmware .x (driver-based, with MediaSource support) end of life, or will it continue to be developed? Will all new, generic features of the 2.x (PlayForSure...) line also be integrated in a continuing .x line of firmware? Or not?
    I found out in <A target=_blank href="http://forums.creative.com/creativelabs/board/message?board.id=dap&message.id=9892">this thread about firmware 2.x[/url] that the new 2.x beta firmware has new features, not being promoted on the download site (or forum). For the moment, I prefer MediaSource over WMP to manage my collection, and for that reason I want to stick with .x firmware.
    <A target=_blank href="http://forums.creative.com/creativelabs/board/message?board.id=dap&message.id=9892">[/url]I really expect a customer-oriented company (and I recently filled in a Creative survey on quality of support services after getting an invitation email, so they do suggest they care) to share a roadmap - even for just some months - with their users.
    Thanks.

    Creative very rarely share this kind of information, so I think it unlikely they will.

  • Using relative-URI  in creating the REST based proxy service

    Hi,
    I am facing an issue when i am trying to create REST based proxy. i am looking at the urls given in the forum post Using Business Service that supports XML over HTTP in OSB
    I have created a conditional branch with xpath expression like *./ctx:transport/ctx:request/http:relative-URI/text()*
    and i am copying this value to $inbound as showin in the blog http://blogs.oracle.com/jeffdavies/2009/06/restful_services_with_oracle_s_1.html. But when i typed the uri in browser its saying xml parser error unable to find <.
    Not sure of the reason. If i modify my proxy to use http-method as shown in the blog its working fine and that too only when i copied ./ctx:transport/ctx:request/http:http-metho/text() to $inbound. But when i copied the same to another variable like branchcond, i am getting same parsing error. And Is it that the variable has to be always $inbound?  So what should be the variable name for using relativeURI
    And my uri is going to be like the following, thats why i am planning to create the conditonal branch on relative-uri.
    http:/localhost:8001/proxy/RESTbasedPS/getGreeting?name=23
    http:/localhost:8001/proxy/RESTbasedPS/getFullName?firstName=Some&lastName=Thing
    Any leads in above error will help me.
    Thanks
    Siva

    When i created the Conditonal branch, its asking for two mandatory properties. One is 'selected path' and the other is 'variable'. My scenario i am trying to base my conditional branch based on relative uri, so i have given './ctx:transport/ctx:request/http:relative-URI/text()' for 'selected path' variable and giving the value 'inbound' for 'variable' property of conditional branch.
    i was trying to do this in similar fashion as given in the blog http://blogs.oracle.com/jeffdavies/2009/06/restful_services_with_oracle_s_1.html, only thing is that i am using http:relative-URI rather http:http-method as shown in the blog.
    I am geting the following error in exact:
    XML Parsing Error: no element found
    Location: http://localhost:7001/proxy/RESTBasedPS/getGreeting?name=siva
    Line Number 1, Column 1:
    Please let me know if i am missing something or doing wrong with inbound variable.
    Thanks
    Siva

  • I18n for Server-Based JavaHelp Helpsets?

    Hi Folk,
    Can anyone tell me how can we implement internationalization for Server-Based JavaHelp Helpsets?
    As an example, I have below code snippet for Index.jsp and I am invoking JavaHelp from this page.
    <jsp:useBean id="helpBroker" class="ServletHelpBroker" scope="session" />
    and
    <jh:validate helpBroker="<%= helpBroker %>" helpSetName="MyJavaHelp/alarms/Alarms.hs/>
    As per my understanding,
    In case, I have to support more than one language, then I must have so many .hs files for each lang. But the above( <jh:validate > ) tag accepts only fully qualified url.
    Please let me know how to solve this else if you have any alternative.
    Thanks in advance.
    Pachu

    We have sucessfully used javahelp with a custom network protocol handler
    to fetch the documentation from specific "packages" in the classpath.
    The same technique could be used with a database.
    Drop me a line if you're interested in more detail.
    Gordan Vosicki

  • Mapping for fields in Standard cube

    Hi,
    There arent any mappings for the date related fields 0RPM_MONTH,0RPM_YEAR,..etc. in the business content cube 0RPM_c02 capacity management. I could not find any relevant mappings in sap help also.Please provide any pointers as to how to update these fields as these are the main field in the standard BC reports.
    Thanks & Regards,
    Rathy

    Hi,
    Because there no data in these fields 2 of the standard reports return with no applicable data.But all other fields in the report have appropriate data.What i would like to understand is since it is being used as main field in the report and not been provided a mapping in BC based on what shall go and update it so that i can get data in the report.
    Thanks
    Rathy

  • Subsequent debit - different behaviour for PO based IR and GR based IR

    Hy Guys,
    i am facing currently a problem with my understanding of system behaviour for GR Based Invoice Verification in combination with Subsequent Debit Postings...
    Example 1 - System Behaviour in case of PO based Invoice Verification:
    PO with 3000 PC Material XYZ / Price 10 EUR
    Goods Receipt for all 3000 Pieces
    Goods Issue for 2000 Pieces
    Situation is now:
    Valuated Material XYZ with Stock Quantity 1000 PC / MAP 10 / Stock Value  = 10.000 EUR
    Subsequent Debit Posting for 300 EUR / 3000 PC
    Result is that Stock Account is debited with 100 EUR / Price Difference with 200 EUR
    New Situation is:
    Valuated Material XYZ with Stock Quantity 1000 PC / MAP 10,1 / Stock Value  = 10.100 EUR
    This makes sense to me!!!
    Example 2 - System Behaviour in case of GR based Invoice Verification:
    PO with 3000 PC Material XYZ / Price 10 EUR
    Seperate Goods Receipt for 1000 PC - three times
    Goods Issue for 2000 Pieces
    Situation is now:
    Valuated Material XYZ with Stock Quantity 1000 PC / MAP 10 / Stock Value  = 10.000 EUR
    Subsequent Debit Posting for 300 EUR / 3000 PC
    Result is that Stock Account is debited with 300 EUR  (But there are only 1000 PC currently on stock!!!!! -  System thinks there are 3000 on stock....)
    New Situation is:
    Valuated Material XYZ with Stock Quantity 1000 PC / MAP 10,3 / Stock Value  = 10.300 EUR
    In that case i think system behaviour is wrong, because MAP increased to much.
    Any comments? Is this customizable?
    Thanks!
    BR;
    Gregor

    Hi Gregor,
    Wellcome to SCN. Please, see SAP Note 308008 - FAQ: Posting logic: GR/IR clearing account, and related notes.
    Regards
    Eduardo

Maybe you are looking for

  • Error at posting 101 movement

    Dear all..                  I got error at posting 101 movement " Period posting Date is in future adjusted in line with posting date" Please resolve the pblm.. usefull threads will be rewarded. Regards Kumar

  • 1st gen shuffle not recognized

    I have a 1st generation shuffle that my mac won't recognize. The problem occurred shortly after I upgraded to itunes 7 yesterday. Its not recognized by the iPod shuffle Reset Utility. It doesn't seem to be recognized by any of the usb ports on comput

  • Problems when I changed from POP3 to IMAP in Mail

    When using POP3 protocol on my Mac I was able to have a sound played to let me know when new mail came in.  Since I switched to IMAP protocol, I can't seem to make that happen. I am running Snow Leopard (10.6.8) and using the Mail program for our ema

  • Cleaning printhead

    I am trying to troubleshoot another problem and cleaning printhead has been on the display for 30 minutes without anything going on in the machine.  If i turn it off and restart, it begins the cleaning printhead all over again.  This all started with

  • Implementing Security through forms/Reports

    Hi I have an application Developed in Forms.I have set of End users, who connect thru this application . I want to protect them from connecting to database apart from this application. ie. Thry should not access data thru SQLPLUS(Client), XLS (using