Add parameter to servlet request

Can anyone tell me how should I add a parameter to the httprequest sent drom the MIDlet to the servlet , so that I can retreive the same in the servlet using getParameter()?

I'm not 100% sure which value the getPara returns, so
if it is part of the header, i.e.
accept: text/html, ...
then use
setRequestProperty()
Otherwise, just tag it on to the end of the URL:
http://www/file.jsp?param=p1&param2=p2...

Similar Messages

  • Converting emails to servlet requests; servlet responses to emails

    Hello,
    I had asked this question in the Servlet forum. They directed me to here.
    I've some servlet applications that posted by HTML forms with file attachements and other HTML fields.
    I want to add email support to my servlets. So, users should be able post and recieve their data by emails.
    But, I don't want to add email handling tasks to the current servlet applications. I need a middleware application between end users and my servlets that converts emails to servlet requests, and servlet responses to emails.
    Here are the steps:
    1- End user sends email with attachments.
    2- Emailed data is converted to servlet request by a middleware application.
    3- Servlet request is processed by my current servlets.
    4- Servlet response is sent to middleware application.
    5- Middleware application emails servlet reponse to end user as email.
    If I can do that, I will not have to add emailing codes to my current servlets. do you know a product doing that ? Or, can you give me a direction ?
    thanks...

    Have you looked into JMS?

  • Populating bean attributes from servlet Request

    I know that in a JSP, you can use
    <jsp:setProperty name="p_filters" property="*"/>To populate the properties of a bean from parameters in a request.
    Is there a reliable programmatic way to do this? Since I am using Tomcat, I could use
    JspRuntimeLibrary.introspect(p_filters, request);But that relies on the servlet container's internal classes.
    There really should be a way of doing this easily in a servlet as well as in a JSP! It should be part of the servlet standard, and the JSP standard <setProperty> tag should use that!

    Well, that was buggy. Also, I've added common data types
         private static SimpleDateFormat[] df =
              new SimpleDateFormat("dd-MMM-yy"),
              new SimpleDateFormat("dd-MMM-yyyy"),
              new SimpleDateFormat("yyyyMMdd"),
              new SimpleDateFormat("dd/MM/yy"),
              new SimpleDateFormat("dd/MM/yyyy")
         public static Date parseDate(String d)
              Date result = null;
              for (int i = 0; i < df.length; i++)
                   try
                        result = df.parse(d);
                        if (result != null)
                             return result;
                   catch (Exception e) // Ignore
              return result;
         Sets all attributes of a bean using available parameters from HTTP request
         attributes without a matching parameter in the request are cleared.
         public static void populateBeanFromRequest(Object bean, HttpServletRequest request)
              Object[]     setParam = new Object[1];
              Method[]     methods = bean.getClass().getMethods();
              String          empty = "";
              Boolean          boolZero = new Boolean(false);
              Byte          bZero = new Byte((byte)0);
              Short          sZero = new Short((short)0);
              Integer          iZero = new Integer(0);
              Long          lZero = new Long(0);
              Float          fZero = new Float(0);
              Double          dZero = new Double(0);
              Date          dateZero = new Date(0);
              for (int i = 0; i < methods.length; i++)
                   Class[] paramClass = methods[i].getParameterTypes();
                   if (paramClass.length == 1)
                        String methodName = methods[i].getName();
                        if (methodName.substring(0, 3).equals("set"))
                             String propertyName = methodName.substring(3, 4).toLowerCase() + methodName.substring(4);
                             Logger.debug("Found property " + propertyName);
                             String paramValue = request.getParameter(propertyName);
                             if (paramValue == null)
                                  Logger.debug("No matching parameter found");
                             else
                                  Logger.debug("Found parameter value " + paramValue);
                             try
                                  if (paramClass[0] == String.class)
                                       setParam[0] = (paramValue == null) ? empty : paramValue;
                                  else if (paramClass[0] == Integer.TYPE)
                                       setParam[0] = (paramValue == null) ? iZero : new Integer(paramValue);
                                  else if (paramClass[0] == Date.class)
                                       setParam[0] = (paramValue == null) ? dateZero : parseDate(paramValue);
                                  else if (paramClass[0] == Byte.TYPE)
                                       setParam[0] = (paramValue == null) ? bZero : new Byte(paramValue);
                                  else if (paramClass[0] == Short.TYPE)
                                       setParam[0] = (paramValue == null) ? sZero : new Short(paramValue);
                                  else if (paramClass[0] == Boolean.TYPE)
                                       setParam[0] = (paramValue == null) ? boolZero : new Boolean(paramValue);
                                  else if (paramClass[0] == Long.TYPE)
                                       setParam[0] = (paramValue == null) ? lZero : new Long(paramValue);
                                  else if (paramClass[0] == Float.TYPE)
                                       setParam[0] = (paramValue == null) ? fZero : new Float(paramValue);
                                  else if (paramClass[0] == Double.TYPE)
                                       setParam[0] = (paramValue == null) ? dZero : new Double(paramValue);
                                  else
                                       continue;
                                  Logger.debug(methodName + "(" +
                                       ((paramClass[0] == String.class) ? "\"" : "") +
                                       setParam[0].toString() +
                                       ((paramClass[0] == String.class) ? "\"" : "") + ")");
                                  methods[i].invoke(bean, setParam);
                             catch (Exception e)
                                  Logger.error("Error populating bean", e);
                                  continue;

  • How to add parametes in the action calss

    hello friends
    Iwant to add parametes in the action cladd
    <action
    path="/QuickSearch"
    type="app.struts.QuickSearchAction"
    name="quickSearchForm"
    scope="request"
    input="quickSearch.jsp"
    validate="true">
    <forward name="success" path="/jsp/appController.jsp"/>
    I need url like that "appController.jsp?name=namevalue&old=oldvalue"
    public class QuickSearchAction extends Action
        public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception
            return mapping.findForward("success");
    }thanks
    </action>

    I try with
    public class QuickSearchAction extends Action
        public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception
                ActionForward Myorward = mapping.findForward("success")
                Myorward.setPath("/jsp/appController.jsp?name=namevalue&old=oldvalue");
            return Myforward;
    }but it work not !!!!!!! please help me
    thanks

  • Add bunch of transport requests at a time

    Hi Friends,
    How to add bunch of transport requests at a time to import buffer using tp tool at OS level on windows?
    Any help would be appreciated
    Thanks

    Hi Jawed,
                         It's depends on the script which you are using. Try to copy in excel and pase in the dos  > prompt. This may help you.
    Regards,
    Hari.

  • How to add Objects to transport request through FM/BAPI?

    Hi All,
    I am creating a workbench request through program. I am able to create it by using BAPI  but i am unable to add objects to it through program.
    Can anybody tell me the funcion module/bapi to add object to transport request?
    i have the list of objects that are suppose to be added.
    No BDC please.
    Thanks ,
    Swarup

    Hi Swarup,
    Check FM TRINT_MODIFY_COMM. Also look at program TH_TKANL for the usage of FM.
    Thanks
    Lakshman

  • Add a new Servlet

    Hello to all,
    when i add a new Servlet, i need Start-up Tomcat????
    Tnx all
    Beck74

    Mah!
    if i have Online a web-site of e-commerce, and i need to add a new servlet ????
    There are other way for not stopped a web-server????

  • Accesing a html parameter from servlet is not producing in a new file

    Hi,...
    I have passed two values from html and accessed thru a servlet file.
    In servlet, parameters are verified and result must passed to a new jsp file.
    Wen i run the file i can view only a blank page.I think the problem will be in servlet mapping.
    verify my coding and give me a result.
    I wer using net bean 6 with glassfish v2 server.
    public class Logverifier extends HttpServlet {
    * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
    * @param request servlet request
    * @param response servlet response
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    try {
    /* TODO output your page here
    out.println("<html>");
    out.println("<head>");
    out.println("<title>Servlet Logverifier</title>");
    out.println("</head>");
    out.println("<body>");
    out.println("<h1>Servlet Logverifier at " + request.getContextPath () + "</h1>");
    out.println("</body>");
    out.println("</html>");
    ServletConfig config=getServletConfig();
    String user=config.getInitParameter("user");
    String pass=config.getInitParameter("pass");
    ServletContext context=getServletContext();
    RequestDispatcher reqdis=context.getRequestDispatcher("menu.jsp");
    RequestDispatcher reqdis1=context.getRequestDispatcher("login.jsp");
    if((user.equals(request.getParameter("user")))&&(pass.equals(request.getParameter("pass"))))
    reqdis.forward(request, response);
    else
    reqdis1.forward(request, response);
    } finally {
    out.close();
    <servlet>
    <servlet-name>Logverifier</servlet-name>
    <servlet-class>com.Logverifier</servlet-class>
    <init-param>
    <description>          </description>
    <param-name>user</param-name>
    <param-value>admin</param-value>
    </init-param>
    <init-param>
    <param-name>pass</param-name>
    <param-value>media</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>Logverifier</servlet-name>
    <url-pattern>/com/Logverifier</url-pattern>
    </servlet-mapping>
    </servlet>
    regards,
    satheesh

    Hi,...
    I have passed two values from html and accessed thru a servlet file.
    In servlet, parameters are verified and result must passed to a new jsp file.
    Wen i run the file i can view only a blank page.I think the problem will be in servlet mapping.
    verify my coding and give me a result.
    I wer using net bean 6 with glassfish v2 server.
    public class Logverifier extends HttpServlet {
    * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
    * @param request servlet request
    * @param response servlet response
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    try {
    /* TODO output your page here
    out.println("<html>");
    out.println("<head>");
    out.println("<title>Servlet Logverifier</title>");
    out.println("</head>");
    out.println("<body>");
    out.println("<h1>Servlet Logverifier at " + request.getContextPath () + "</h1>");
    out.println("</body>");
    out.println("</html>");
    ServletConfig config=getServletConfig();
    String user=config.getInitParameter("user");
    String pass=config.getInitParameter("pass");
    ServletContext context=getServletContext();
    RequestDispatcher reqdis=context.getRequestDispatcher("menu.jsp");
    RequestDispatcher reqdis1=context.getRequestDispatcher("login.jsp");
    if((user.equals(request.getParameter("user")))&&(pass.equals(request.getParameter("pass"))))
    reqdis.forward(request, response);
    else
    reqdis1.forward(request, response);
    } finally {
    out.close();
    <servlet>
    <servlet-name>Logverifier</servlet-name>
    <servlet-class>com.Logverifier</servlet-class>
    <init-param>
    <description>          </description>
    <param-name>user</param-name>
    <param-value>admin</param-value>
    </init-param>
    <init-param>
    <param-name>pass</param-name>
    <param-value>media</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>Logverifier</servlet-name>
    <url-pattern>/com/Logverifier</url-pattern>
    </servlet-mapping>
    </servlet>
    regards,
    satheesh

  • Servlet request terminated with IOException:java.io.IOException: There is no process to read data written to a pipe.

    Hi,
    I am getting this following error. Could anyone please throw some light.
    Thanks
    Nilesh
    <HTTP> Servlet request terminated with IOException:
    java.io.IOException: There is no process to read data written to a pipe.
         at java.net.SocketOutputStream.socketWrite(Native Method)
         at java.net.SocketOutputStream.write(SocketOutputStream.java(Compiled Code))
         at weblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java(Compiled
    Code))
         at weblogic.servlet.internal.ResponseHeaders.writeHeaders(ResponseHeaders.java(Compiled
    Code))
         at weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseImpl.java(Compiled
    Code))
         at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java(Compiled
    Code))
         at weblogic.servlet.internal.ServletOutputStreamImpl.finish(ServletOutputStreamImpl.java(Compiled
    Code))
         at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java(Compiled
    Code))
         at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java(Compiled
    Code))
         at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java(Compiled
    Code))
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

    I forgot to mention.
    I am using Weblogic 5.1 with SP 9
    Nilesh
    "Nilesh Shah" <[email protected]> wrote:
    >
    Hi,
    I am getting this following error. Could anyone please throw some light.
    Thanks
    Nilesh
    <HTTP> Servlet request terminated with IOException:
    java.io.IOException: There is no process to read data written to a pipe.
         at java.net.SocketOutputStream.socketWrite(Native Method)
         at java.net.SocketOutputStream.write(SocketOutputStream.java(Compiled
    Code))
         at weblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java(Compiled
    Code))
         at weblogic.servlet.internal.ResponseHeaders.writeHeaders(ResponseHeaders.java(Compiled
    Code))
         at weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseImpl.java(Compiled
    Code))
         at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java(Compiled
    Code))
         at weblogic.servlet.internal.ServletOutputStreamImpl.finish(ServletOutputStreamImpl.java(Compiled
    Code))
         at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java(Compiled
    Code))
         at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java(Compiled
    Code))
         at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java(Compiled
    Code))
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

  • How can i send xml file with a http servlet request

    Hi
    Please tell me how can I send a xml file into http servlet request.
    I have a servlet(action) java file.From this servlet I have generate a xml file. Now I need to send that xml file to another servlet with http servlet request object.
    Dave.

    When you say you have generated an XML file what do you mean?
    Is it a file stored on disk? Then pass the file path as a string to the servlet.
    Is it stored in memory as an object? The pass a reference to the object to the servlet.
    Or are you asking how to communicate between servlets?
    Look in the JavaDocs for the RequestDispatcher class. You can use this class to forward the request to another servlet. Data can be passes using the RequestDispatcher by storing it as attributes using the request getAttribute and setAttribute methods. Also described in the JavaDOcs.
    http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/RequestDispatcher.html

  • Limit of Weblogic for servlet requests

              Hi,
              Could someone tell me what is the limit on the number of servlet requests per
              second a weblogic server
              can handle.. We are facing some performance issue.. Would like to know the limit
              that WLS server can process
              at a time.
              Thanks in advance,
              rgds, rams
              

    Thanks Robert - I had the same results on 4-way E420 (and slightly less for
              session-less JSP). Don't you think it can be potentially useful to have some
              'baseline' results to be available for some most popular hardware/JVM configurations ?
              (Of course, these numbers have nothing to do with an actual application performance, but
              they are useful in establishing the 'upper limit' - something like HelloWorld servlet,
              HelloWorld JSP with session=false, HelloWorld JSP with sessions enabled).
              Robert Patrick <[email protected]> wrote:
              > Hmm... This is a loaded question. It comes down to what type of hardware is the
              > server running on, what is the servlet doing, what does your network look like, and
              > on and on. I can tell you that with a version of WLS 5.1, I was able to get approx.
              > 1100 to 1200 "page views per second" from a HelloWorld servlet running on a 4-way
              > Sun E420 using Mercury's LoadRunner software running on multiple NT machines. For
              > this hardware configuration and server version, I would use this as the upper limit
              > for a single instance...
              > Rams wrote:
              >> Hi,
              >>
              >> Could someone tell me what is the limit on the number of servlet requests per
              >> second a weblogic server
              >> can handle.. We are facing some performance issue.. Would like to know the limit
              >> that WLS server can process
              >> at a time.
              >>
              >> Thanks in advance,
              >>
              >> rgds, rams
              Dimitri
              

  • HTTPS Servlet requests

              After installing service pack 9 from WL5.1, HTTPS servlet requests result in the
              browser returning a server error. Issue 41888 of sp9 seems to address this. We
              were previously running service pack 6 and didn't experience this problem. Any
              ideas?
              

    Have you installed SP9 properly?
              I just tried accessing example servlets on Https protocol and i don't see any
              errors.
              Could you tell us what problems you are facing? Any test case?
              Kumar
              Darren Collins wrote:
              > After installing service pack 9 from WL5.1, HTTPS servlet requests result in the
              > browser returning a server error. Issue 41888 of sp9 seems to address this. We
              > were previously running service pack 6 and didn't experience this problem. Any
              > ideas?
              

  • FRM-47013 error: Cannot add parameter P LEVEL to Parameter List REPDATA: pa

    Hello! I am using Forms 6i and get the above error-FRM-47013 error: Cannot add parameter P LEVEL to Parameter List REPDATA: parameter with this name exists. when clicking on the Run Report button on a parameter form. I have googled and I'm doing everything I know to do, but cannot get rid of the error. Any help is greatly appreciated! I only have 3 months Oracle experience coming from a VB/C# background.
    Here's my code that is on the Run Report Program Unit on the parameter form:
    PROCEDURE run_report IS
    pl_id ParamList;
    pl_name VARCHAR2(10) := 'repdata';
    v_rep_num number;
    hold_where_clause varchar2(2000);
    charFY                                                  varchar2(4);
    the_connect varchar2(10);
    CharAlertText          varchar2(300); --Alert message text
         NumAlertVal      number; --Alert prompt 
    begin
         if :CONTROL.BEGINNING_FISCAL_YEAR is null or :CONTROL.ENDING_FISCAL_YEAR is null then
                        CharAlertText := 'You must enter Beginning and Ending Fiscal Years before running this report!';
                        set_alert_button_property('ALERT_1',ALERT_BUTTON1,LABEL,'Ok'); --alert value equals 88
                        set_alert_property('ALERT_1',title,'No Year');
                        set_alert_property('ALERT_1',alert_message_text,CharAlertText);
                        NumAlertVal :=show_alert('ALERT_1');
                        raise form_trigger_failure;
         end if;
         if :CONTROL.BEGINNING_FISCAL_YEAR > :CONTROL.ENDING_FISCAL_YEAR then
                        CharAlertText := 'You must enter an Ending Year Fiscal Year greater than or equal to Beginning Year!';
                        set_alert_button_property('ALERT_1',ALERT_BUTTON1,LABEL,'Ok'); --alert value equals 88
                        set_alert_property('ALERT_1',title,'Invalid Year');
                        set_alert_property('ALERT_1',alert_message_text,CharAlertText);
                        NumAlertVal :=show_alert('ALERT_1');
                        raise form_trigger_failure;
         end if;
    --This section creates system identified parameter list.      
    BEGIN
    pl_id := Get_Parameter_List(pl_name);
    IF Not Id_Null(pl_id) THEN
    Destroy_Parameter_List(pl_name);
    --pl_id := Create_Parameter_List(pl_name);
    --IF Id_Null(pl_id) THEN
    --Message('Error creating parameter list '||pl_name);
    --RAISE Form_Trigger_Failure;
    --END IF;
    END IF;
    pl_id := Create_Parameter_List(pl_name);
    Add_parameter(pl_id,'P_LEVEL',text_parameter,:control.hierarchy);
    IF Id_Null(pl_id) THEN
    Message('Error creating parameter list '||pl_name);
    RAISE Form_Trigger_Failure;
    END IF;
    END;
    --End section that creates parameter list.
    BEGIN
    -- This will get the next sequence number from the database to make the
    -- report file name unique
    select ombil.report_seq.nextval
    into v_rep_num
    from dual;
    exception when no_data_found then
    display_error_text(203,'S','N');
    raise form_trigger_failure;
    END;
    If :control.hierarchy = 1 then
    hold_where_clause := ' ';
    elsif :control.hierarchy = 2 then
         hold_where_clause := ' AND DIV.ID = ' || :control.division_poplist ||' ';
    elsif :control.hierarchy = 3 then
    hold_where_clause := ' AND DIST.ID = ' || :control.district_poplist ||' ';
    elsif :control.hierarchy = 4 then
              hold_where_clause := ' AND PS.ID = ' || :control.psite_poplist ||' ';
    elsif :control.hierarchy = 5 then
    hold_where_clause := ' AND PS.ID IN ' || :CONTROL.MULTI_PROJECT_SITES ||' ';
    end if;
    --charFY := 'where to_char(MP.fiscal_year, ''RRRR'') = to_char(:CONTROL.FISCAL_YEAR, ''RRRR'')';
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'FILE');
    Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,:global.cur_reports_path||to_char(v_rep_num)||'.'||:control.format);
    Add_parameter(pl_id,'P_WHERE',text_parameter,hold_where_clause);
    Add_parameter(pl_id,'P_FY_BEGIN',text_parameter, to_char(:CONTROL.BEGINNING_FISCAL_YEAR, 'DD-MON-YYYY'));
    Add_parameter(pl_id,'P_FY_END',text_parameter, to_char(:CONTROL.ENDING_FISCAL_YEAR, 'DD-MON-YYYY'));
    --Add_parameter(pl_id,'P_LEVEL',text_parameter,:control.hierarchy); 
    /*if :control.format = 'CSV' then
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'DELIMITED');
              Add_Parameter(pl_id,'DELIMITER',TEXT_PARAMETER,',');
                        run_product(REPORTS,'es_adm_mit_percent_csv.rep',SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id,NULL);
    else */
              --Add_parameter(pl_id,'P_LEVEL',text_parameter,:control.hierarchy);
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,:control.format);
         --end if;
    run_product(REPORTS,'es_fish_mit_reqs.rep',SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id,NULL);
    --Destroy_Parameter_List(pl_id);
    web.show_document(:global.cur_reports_url||to_char(v_rep_num)||'.'||:control.format,'_SELF');
    exception when others then
    display_error_text(202,'S','N');
    end;
    Edited by: [email protected] on Feb 27, 2009 6:35 AM

    A coworker figured out that the switchboard data input form was pointed at the wrong executable file. I knew there wasn't anything wrong with my code! I'll remember this one next time!
    Edited by: [email protected] on Feb 27, 2009 12:24 PM

  • Does Weblogic 5.1 support the STANDARD javax.servlet.request.X509Certificate attribute?

    Hello!
    My strong suspicion from looking at the Weblogic SSL documentation on
    http://e-docs.bea.com is that WebLogic SSL does not put any client-side
    certificates into the 'javax.servlet.request.X509Certificate' attribute
    of a servlet's HttpServletRequest (as an array of
    java.security.cert.X509Certificate instances).
    Currently, it appears that Weblogic uses a proprietary attribute name
    ('weblogic.security.somethingOrOther') and returns instances of the
    deprecated Java 1.1 java.security.Certificate class.
    When will Weblogic support this aspect of the Servlet 2.2 specification,
    if it doesn't already?
    Regards,
    James W.

    I just verified this with the Java doc. Either the Java documentation is
    incorrect or we are still using the older version of the certificate
    encoding class. I will check on this, we may have fixed it in a subsequent
    service pack.
    Thanks,
    Michael
    Michael Girdley
    Product Manager, WebLogic Server & Express
    BEA Systems Inc
    "James Webster" <[email protected]> wrote in message
    news:[email protected]..
    Hello!
    My strong suspicion from looking at the Weblogic SSL documentation on
    http://e-docs.bea.com is that WebLogic SSL does not put any client-side
    certificates into the 'javax.servlet.request.X509Certificate' attribute
    of a servlet's HttpServletRequest (as an array of
    java.security.cert.X509Certificate instances).
    Currently, it appears that Weblogic uses a proprietary attribute name
    ('weblogic.security.somethingOrOther') and returns instances of the
    deprecated Java 1.1 java.security.Certificate class.
    When will Weblogic support this aspect of the Servlet 2.2 specification,
    if it doesn't already?
    Regards,
    James W.

  • Cannot add parameter or header to post request URL in Data/Services

    I'm trying to set up Data/Services in flash builder to connect to a RESTful API and as per usual Flash Builder attempts to scupper my efforts with it 'nearly but not quite' tools at every turn.
    So I need to pass a POST request with a JSON string containing auth details to the URL:
    https://myrestservice.com/rest/session/
    For authentication to work I also need to add either:
    A: an additional header containing: api_key = *my-api-key*
    or
    B: append the api key to the URL so: https://myrestservice.com/rest/session/?api_key=*my-api-key*
    Simple right? Wrong. In the data/services tool for a custom http service there seems to be no way to add a custom header. Ok annoying as even a free chrome plugin can do this but hey I can live with that, I'll use option B. Wrong again. The URL field in Data/Services will ignore the query on the end of the URL. Seriously WTF. Am I missing something here?
    So if I amend the auto-generated code in the super class and call it directly it works but if I try to take advantage of any of the tools the code is regenerated and overwrites my changes. Test Operation never works either.
    I know there is a second class which is supposed to be used to extended and override the super class but only certain overrides seem to work so for example:
    This works:
    ._serviceControl.baseurl = ("https://someotherurl.com")
    This doesn't work:
    ._serviceControl.headers = ({"api_key = *my-api-key*"})
    Oh and Test operation only seems to execute the super class. Once again a brick wall.
    Working with flash builder seems to be 50pc coding 50pc deciding if it's a bug in your code or flash builder f*****g you over.
    Any thoughts, workarounds, am I missing something would be much appreciated.
    Thanks

    Shameless bump here!
    So nobody has had this issue before?

Maybe you are looking for

  • Define event to repeat on the last day of each month?

    (I've searched the forum and can't find this question addressed) I want to create a repeating event for the last day of each month. Is this possible?

  • How do I add a PDF to a combined file

    I'm having difficulty combining files and keep getting an error message that doesn't save my combined file once complete ... are the pdfs to large?

  • CONFUSION ON STOCK POSTING

    Sir, pls go through the following points and advice me were the problem is i have a raw material with inspection type 01 and in material master procurement key is active with 0001 in q info record i select no inspection so while gr system directly po

  • Oracle Data Mining Workshop

    Oracle is providing a free 1 day on-site technical workshop designed to help customers and prospects move forward with the data mining technologies. The workshop consists of the following: 1. Understanding of data mining and how it compares to other

  • Pass form data through web service to session bean

    Hello, i want to create an insert in a database table using a web dynpros that call my method createEntry i a sessionbean. The sessionbean is ok, it worked with a jsp. My Problem: The inputfields of my form are blocked so that i cannot insert the val