How to map every  request url to one servlet

HI experts,
I have a requirement like below,
i want to map every request to a uinque servlet.
http://localhost/krish/images/kk,gif
http://localhost/krish/images/rao,gif
http://localhost/krish/images/hh,jpg
http://localhost/krish/images/srn.txt
http://localhost/krish/images/hel.wav
etc.............the no requests unlimited.
So if i write mapping in web.xml its hard to write hundreds of urls.
so i need some other process to map all these urls to one servlet ( processrequest.java)
which will process all those requests.
How do i do it?
thanks in advance

use url-pattern as /images/* then it will call the same servlet for all URL like you mentioned

Similar Messages

  • How to map many finished product in one bom

    Sir,
    i hav one raw material sheet in which i will cut number of finished products.how i map in bom.all finished product has cut in differnt quantity.

    Hi
    Actually this is purely based on the client reqmt.
    If they need to maintian the diff bom for all the product . you should need to maintained. even though you use same raw material for all the  products.with diff qty and if they need to calculate the costing inoccur for the each product
    or
    you can use as co -porduct as forum member told.

  • Can any body tell me how to map the jsp page with sling servlet

    here is my content.jsp
    <%@include file="/libs/foundation/global.jsp"%>
    <cq:include script="/libs/wcm/core/components/init/init.jsp"/>
    <div>
    <h3>Login</h3>
    <form name="frm" method="doGet" action="/LoginServlet">
    <cq:include path="texot" resourceType="sapphirenow_web/components/foundation/textlog"/>
    <cq:include path="text1" resourceType="sapphirenow_web/components/foundation/textlog"/>
    <cq:include path="text3" resourceType="sapphirenow_web/components/foundation/submit"/>
        </form>
    </div>
    here is my LoginServlet.java
    package com.sapphirenow.web;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import org.apache.sling.api.SlingHttpServletRequest;
    import org.apache.sling.api.SlingHttpServletResponse;
    import org.apache.sling.api.servlets.SlingAllMethodsServlet;
    * @scr.component metatype="true"
    * @scr.service interface="javax.servlet.Servlet"
    * @scr.property name="sling.servlet.paths"  value="/bin/mn"
    * @scr.property name="sling.servlet.methods" values="GET"
    public class LoginServlet extends SlingAllMethodsServlet
      public void doGet(SlingHttpServletRequest request,SlingHttpServletResponse response) throws ServletException,IOException
              response.setContentType("text/html");
              PrintWriter out = response.getWriter();
              String name = request.getParameter("Username");
              String pass = request.getParameter("Password");
              out.println("<html>");
              out.println("<body>");
              out.println("Thanks  Mr." + "  " + name + "  " + "for visiting roseindia<br>" );
              out.println("Now you can see your password : " + "  " + pass + "<br>");
              out.println("</body></html>");
       its showing "The requested URL /LoginServlet was not found on this server."  how to solve this pls help me

    Hi,
    Bellow some links which maybe hepls you:
    -> http://sling.apache.org/site/manipulating-content-the-slingpostservlet-servletspost.html
    -> http://edivad.wordpress.com/2011/07/18/cq-sling-servlets-resourcetype/
    -> http://sling.apache.org/site/servlets.html
    -> http://blogs.adobe.com/aaa/tag/sling
    and some threads from the forum:
    -> http://forums.adobe.com/message/4943006#4943006
    -> http://forums.adobe.com/message/4915799#4915799
    By the way there is a lot of information which you can find in th network.
    Regards,
    kasq

  • How to map two different subnets to one SSID

      Hi Experts ,
    we have two offices in same city at different location however we are planning to bring both the office at same location.
    Now lets say site A has controller 5508 configured with 24 AP's with 10.10.10.x subnet for internal SSID and Site B which is shifting to Site A campus has different subnet ( 10.10.20.x )  for same SSID.
    Site B has no controller since they had connection with H-reap and they were using different subnet for internal SSID ( 10.10.20.x ) .....
    Now i need to add their AP's in Site A controller which will be extended wireless LAN however we would like to keep same subnet ( 10.10.20.x )  what Site B has for wireless clients which is really confusing me ....
    I have already client subnet for site A with 10.10.10.x /24 subnet  and nearly 200 users are already using this wireless client subnet....
    How do i add their ( Site B ) subnet / 10.10.20.x  with same SSID configured  which is globally only one SSID  ?
    limitations :
    I can not create new SSID for site B since same will be broadcasting even in Site A AP's
    Is this possible to map one more subnet of site B to existing SSID with already different subnet ( 10.10.10.x ) ?
    Your suggestions will be really helpful for me to go ahead and understand in better manner ...

    Well first off, you need to bring that subnet over to site a without breaking any routing. Once you do that then sites B subnet will have a different vlan than site A of course. Now with both subnets working in site A, you create a dynamic interface on the WLC for that new subnet. Create an AP group for both sites, you can name it by vlan or by any name you want. Now in the ap group for site A, you define what SSID's you want and map the vlan to that ap groups. Then add sites A AP's to that group. You do this also for site B's AP's and map the SSID to the new subnet you brought over and move the AP's to that group. The APs from site B would have to be setup in local mode not hreap.
    Makes sense
    Sent from Cisco Technical Support iPhone App

  • How to approve the request only for one time for human task in BPM Worklist

    Hi All,
    I'm having a requirement where i have made the hierarchy in the .task file where in created two users for which i need an approval in a hierarchical manner. But when i'm approving the request from worklist app for one user and the request is going sucessfully to the second user and if i approve it over there it once again coming to first user where i have approve it once again to get the request processed. how to get request processed only for one time when it is approved. Do we need to customize anything
    If you did it can anybody can share thoughts on this please. Your help is highly appreciated.
    I am not able to see the rejected request at all. where to see the rejected request.
    Regards,
    CH

    Hi,
    Following are the some important points you should understand about ESS Leave Request Workflow
    1. The Visualization ( how should it appear in UWL and what should happen when you click on a particular workitem) is defined in SWFVISU. Check for TS12300097. Generally, it invokes com.sap.xss.hr.lea.appl/LeaveRequestApprover Java WebDynpro application. Just check whether you are able to get the correct Leave Processing application called when you execute your workitem from UWL?
    2. In general it should have option to process the leave request either approve/reject. When the leave request gets approved/rejected the status of the Leave Request document gets changed ( in workflow it is &REQ.STATUS&
    3. There is a need to schedule a background job for program RPTARQPOST which will pick up all the documents in APPROVED status and creates an absence record for the same.
    4. Apart from schedule job as mentioned above, you also have to schedule a background job for program  RPTARQEMAIL, which is basically used to send e-mails for all the documents which are yet to be approved to correct manager.
    as you say , you can not see Approve/Reject options from UWL, it looks to me that correct javawebdynpro application is not being called for this task. Just check this !!
    Good Luck !!
    Regards
    Krishna Mohan

  • How to handle multiple requests to the same servlet at one time?

    Hi,
    I am new to Servlets. I have doubt regarding ... Handling multiple requests to a servlet at a time.
    If we send a single request to a servlet, as know that group of objects such as servlet, servletContext, servletConfig, request, response and etc are created in the server, And if 1000's of requests are sent to a same servlet at a time, and if server memory capacity is less, then 1000's of objects are created in a server which would be heavy burden to Server. How to handle the application and development in such situation?
    Kind regards,
    veerendra

    Hi veerendra reddy ,
    By default any web server can will have a thread pool to handle client req's.
    In your point also heavy burden to server you are telling that depends on this.
    we can configure this min & max size of this thread pool.
    by default it will be 0-1000 for tomcat server.
    I am not sure in which file this configuration will be.
    But I hope in server.xml or some xml file consists this info.
    If You what you can edit accordingly. to overcome your heavy burden to server.
    Thanks & Regards
    Nagendra

  • How to map refubishment process in which one material change to other matl.

    Hi Gurus,
    In my company, we use PRTools which we use for creation of bolts (For e.g.M6) . These tools after getting damaged refurbished into other PRTools which we use for other bolts production (for e.g.M8).
    can u suggest me, any process where i can map the activity & maintain the inventory properly.
    Thanks
    Santosh

    Riyazji,
    Actually, these PRTools is having different material code with valuation type for e.g. material no. 22/1234 valuation type "T1-new" and used for creation of M6 bolts.,
    If damaged, this PRT we return to store with valuation type  material no. 22/1234 "T1-damaged".
    Now, after refurbishment process this tool is coverted to material no. 22/5678  and valuation type as "_T1-Refurbished_"
    this tool is now cannot be used for the manufacturing of M6 bolt. This is used for  manufacturing of new M8 bolt.
    Both the tools can be used on the same equipment.
    Now my problem is that how can I map this process in SAP .
    Please advice
    thanks in advance.
    Santosh

  • How to map two unbounded elements to one unbounded element in Xsl ?

    Hi all,
    I have two complex unbounded elements ListOfAddress and ListOfContactAddress now I have to map it to another Unbounded Complex element ListOfCustomerDetails, any idea to achieve two for each in xsl ?
    Thanks and regards,
    Arun

    what do you mean by unbound ?
    possible to first map the for-each on ListOfAddress, after done, comment out this part, and do the mapping on the ListOfCustomerDetails and after that comment back the first part again...so you have 2 for-eaches mapping to the same target for-each

  • How to map ALL .jsp to a Main servlet ?

    the problem is that i want to submit all forms on web pages to be processed by servler but to see in adress bar of my browser url with .jsp
    i tried to map main sertvlet in such a way
    <url-mapping>/*.jsp</url-mapping>
    but it didn't work...
    is there a way to invoke servlet but to see *. jsp as an url ?
    in other word, is it possible by calling index.jsp invoke some servlet behind the scene ?
    if i could map *.jsp this could be done automatically.....

    In theory you can use:<url-mapping>/*.jsp</url-mapping>However most web servers already intercept that mapping and it may bypass your mapping.
    For example in Tomcat there is a web descriptor in the <TOMCAT_HOME>/conf directory that maps all jsp extensions to org.apache.jasper.servlet.JspServlet.
    If you want to work with jsps on this level, try using filters intead, they may not be affected by the JspServlet as they have to pass through the filter first.
    Anthony

  • How to track Transport request released

    hi Experts,
    How to track Transport request released from one development system (D01)to another
    development (D02).
    is there any way we get know .
    Amit

    Hi,
           From SE09 & SE10 you track the transport requests, and even you can find the transport request details from the following database tables.
    E070                             Change & Transport System: Header of Requests/Tasks
    E070A                            Change & Transport System: Attributes of a Request
    E070CREATE                       Change & Transport System: Creation Date of Request
    E070DEP                          Change & Transport System: Dependencies of Requests
    E071                             Change & Transport System: Object Entries of Requests/Tasks
    E071C                            Change & Transport System: Client-Specific Lock Flag
    E071E                            Lang. Transport: Positive List for Generic Object Selection
    E071K                            Change & Transport System: Key Entries of Requests/Tasks
    E071KC                           Change & Transport System: Key Entries of Requests/Tasks
    E071KF                           Change & Transport System: Nametab Info. on (CHAR)Key Fields
    E071KFINI                        Change & Transport System: Nametab Info. on (CHAR)Key Fields
    E071K_30                         Change & Transport System: Key Entries of Requests/Tasks
    E07T                             Change & Transport System: Short Texts for Requests/Tasks

  • On the zynga game, mafia wars, every time i click on something within the game a get a popup that says "Requested URL not found: 400" all pages load fine it just gives the message every time i click something, how can i stop this?

    on the zynga game, mafia wars, every time i click on something within the game a get a popup that says "Requested URL not found: 400" all pages load fine it just gives the message every time i click something, how can i stop this?

    Sorry, the above thread should have been a "new" post, not a reply post.

  • Specify filter for every request except one

    Can a in me web.xml file specify that a filter should be used for every request except one.
    I can write;
    <filter-mapping>
         <filter-name>MyFilter</filter-name>     
         <url-pattern>/*</url-pattern>
    </filter-mapping>
    to use it on every request. But how do I exclude one specific resource that shouldn't go though the filter.
    I know that this may not be exactly the right forum but i'm really lost. I appreciate all suggestion.
    Thanks / Daniel

    This is the right forum, but unforutanetly you cannot exclude some urls.
    I would suggest you handle that logic in the filter itself.

  • JAX-WS mapping one servlet to multiple URLs

    Hi. I have a JAX WS web service define like this:
    package yohoo;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    @WebService
    public class Foo
      @WebMethod
      public String doSomething()
        return "done";
    }And I attempted to map the web service multiple time on web.xml:
    <servlet>
      <servlet-name>FooWS</servlet-name>
      <servlet-class>yohoo.Foo</servlet-class>
    </servlet>
    <servlet-mapping>
      <servlet-name>FooWS</servlet-name>
      <url-pattern>/one/FooWS</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
      <servlet-name>FooWS</servlet-name>
      <url-pattern>/two/FooWS</url-pattern>
    </servlet-mapping>However when I tried to request the WSDL via the second mapping I got an exception (JBoss 7). Is this a feature that should be supported or am I doing something totally wrong?
    javax.servlet.ServletException: Cannot obtain destination for: /TestWS/two/FooWS
         org.jboss.wsf.stack.cxf.RequestHandlerImpl.findDestination(RequestHandlerImpl.java:164)
         org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:81)
         org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:169)
         org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)
         org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185)
         org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:113)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
         org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)
         org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

    Just to close the loop on this (and for the next person trying to figure out how to do it), I was able to [extend X509KeyManager as described in Alexandre Saudate's blog|http://alesaudate.com/2010/08/09/how-to-dynamically-select-a-certificate-alias-when-invoking-web-services/] . I was then able to set the com.sun.xml.ws.developer.JAXWSProperties.SSL_SOCKET_FACTORY on my JAX-WS request context to use my custom SSLSocketFactory, and it works like a charm!
    Thanks,
    Bill

  • How to specify  a servlet mapping as the url pattern with in the security constraints

    Hi ,
    Weblogic 6.0 documentation says the following:-
    Define which resources in the Web Application the security constraint applies to using the <url-pattern> element that is nested inside the <web-resource-collection> element. The <url-pattern> can refer to either a directory, filename or a <servlet-mapping>.
    To apply the security constraint to the entire Web Application, use the following <url-pattern>:
    <url-pattern>/*</url-pattern>
    Could any one let me know how to specify servlet mapping as the url pattern.
    I tried various combination and it doesn't seem to work and any help in this regard will be greatly appreciated.
    Thanks
    kannan

    The answer is posted here:
    Unapproved User Flag in UME

  • How to map text from Request Offering to custom textbox

    Hi!
    I have new custom Tab in Incident form with new textbox. I need this textbox fill with text added by user on Portal, but I can't figure out how to map user input to this text box. I can't see it in Request Offering form. Also when I create binding from this
    form to extension of Incident Class, I can't change older Request Offering mapped to Incidents.
    What can I do to make this work correctly?
    Thanks

    User's answers from Request OFfering are stored in one field called UserInput. As result:
    You can't bind control to specified answer
    You can create your own control\converter to parse UserInout field (this is XML text)
    SCSMSolutions
    email: freemanru (at) gmail (dot) com

Maybe you are looking for

  • PDF loaded using ActiveX will not load when the executable is used on another computer

    Hello, I am fairly new to Labveiw and have created a CAN diagnostic tool which uses an ActiveX control to display the CAN Spec PDF on the front panel. This works absolutely fine and still works fine when I create and use an executable on the same com

  • Why the snap_id is not generated sequentially in statspack?

    I submitted some snaps manually, and thru dbms_job, the snap_ids are not sequential: SQL> select SNAP_ID,to_char(SNAP_TIME,'DD-MON-YY HH24:MI') timestamp from stats$snapshot order by 1; SNAP_ID TIMESTAMP 1 22-AUG-06 08:19 2 22-AUG-06 08:19 3 22-AUG-0

  • Data from one table shown on different table

    Back again...I am working on a budget sheet.  I thought I had a good plan for a way to deal with my different budget categories.  I have, on one sheet, several small tables that keep a running account of my money in various budget line items (mortgag

  • ViewObject executequery is taking time

    when the VO.executeQuery() is done each time the execution time is goes on increasing. In Oracle debug log it has been observed that it took max time at line : (4516) QueryCollection.createColumnList(2527) Column count: 47 anybody knows the cause?

  • Enkitec Modal LOV refresh value on screen when updated programmatically

    Apex version 4.2.0.00.27 Firefox version 20.0.1 I am using the Enkitec Modal LOV. I have a region button which, when pressed, calls a PLSQL procedure to copy values (including the Modal LOV item) from a previous record into the current one. The Modal