IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Accessing a servlet from a DSP

    Posted 01/30/07 08:01 PM

    Hi,

    I have a scenario where i am trying to access a servlet that is cotained as part of the custom webapplication (deployed using wMTomcat) from a DSP which is present in the same package. If i invoke a servlet from a JSP everything seems to work fine, however nothing seems to happen if i invoke the same servlet from the DSP. Since it is in same package i dont want to use the entire URL i.e. http://hostname:port/web/packageName/servletName . If i access the servlet directly as servletName from a JSP, it works fine.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: Accessing a servlet from a DSP

    Posted 01/30/07 09:45 PM

    I don’t believe this is possible. A DSP doesn’t access servlets. The only thing they can do is invoke IS services. DSPs use a different processing engine than JSPs.


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Accessing a servlet from a DSP

    Posted 01/31/07 05:56 AM

    Thanks Reamon. I was just hoping that there would be some means of accessing a servlet direclty from a DSP.


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 4.  RE: Accessing a servlet from a DSP

    Posted 07/18/08 10:11 PM

    You can very well invoke a Servlet from DSP … Reply back if you are still looking for the solution… as this post seems to be a bit older …


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 5.  RE: Accessing a servlet from a DSP

    Posted 07/19/08 12:18 AM


  • 6.  RE: Accessing a servlet from a DSP

    Posted 07/21/08 08:21 PM

    Below is the tag syntax(.with example) in the DSP page from where you are going to invoke servlet… …

    <FORM name="form1" 
    method="GET" action="/web/MY_ENTERPRISE_MONITOR/DownloadFile?FILE_PATH=%value Filepath%&FILE_NAME=%value filename%">
    

    Where “DownloadFile” is the servlet name and “MY_ENTERPRISE_MONITOR” is the packagename … As usual , servlet class file will be copied into “\web\WEB-INF\classes” folder in package level …and configure web.xml file …

    "filepath" and  "filename" are the variable values we are passing to Servlet and in servlet, we retrieve them using    request.getParameter("FILE_PATH");
    
    My "DownloadFile"  servlet has code to  download the file from the path that we pass as a parameter from DSP ...
    
    So when we hit on submit button in the dsp , it will invoke the given servlet, as mentioned in the action variable of <FORM> tag, passing filename and filepath as parameters and will download the file......
    

    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB