SSO with a website using Apache Httpclient form post

Hi ,
I am trying to obtain, SS0 with a website, that accepts the user information via post.
I tried using app Integrator, but the website sends a cookie in first request, and redirects to another URL. App Integrator is only catching the first response.
Thus i tried implementing this Form post using Apache HTTPClient class inside the Abstractportacomponent, as shown..
The login is taking place. But, When i click on any link on the page, It is redirecting to the login page again, I am wondering where should i give the Cookie, so the portal request will include that cookie in its subsequent requests, so that i wont be prompted for login agian..
thank you,
chiranjeevi.
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
    {try
                  String url = "http://www.xxxxxxxxxxxxx.com/gold_online/validate.asp";
                  //Here, calling the timberline comes into place.
                   HttpClient client = new HttpClient();
                    PostMethod method = new PostMethod (url);
                    method.setFollowRedirects(false);
                    method.addParameter( "code","xxxxxxx");
                    method.addParameter( "upass", "xxxxxx" );
                              int statusCode = client.executeMethod( method );
                    if( statusCode != -1 ) {
                         // The Status code for this first request is 302..which is a redirect with the redirect path
                         Header locationHeader = method.getResponseHeader("location");
                         Header cookie = method.getResponseHeader("set-cookie");
                         String redirectedURL = locationHeader.getValue();
                         String host = "http://www.xxxxxxxxxxxxxx.com/gold_online/";
                         redirectedURL = host+redirectedURL;
                         GetMethod method2 = new GetMethod (redirectedURL);
                         method2.setFollowRedirects(false);
                         method2.setRequestHeader("cookie",cookie.getValue());
                         method2.addRequestHeader("Accept", "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, /");
                         int statuscode2 = client.executeMethod( method2);
                         String contents  = method2.getResponseBodyAsString();
                         // Converting the Relative URLs to Absolute URLs
                         contents = replace (contents,"src=\"","src=\""+host);
                         contents = replace(contents,"href=\"","href=\""+ host);
                         Cookie ck = new Cookie("cookie", cookie.getValue()) ;
                         //adding the cookie to the response...
                         response.addCookie(ck);
                         response.write(contents);
                      method.releaseConnection();

Hi Manish,
first, welcome on SDN! About your question:
The URL iView in SP9++ has been reported quite instable from different sides (just do a look on "URL iView" within this forum). The alternative for the aim you have is to use the good "old" application integrator iView, which behaves very stable and will do what you want without hesitating...
Also see URL iView and HTTP System - SSO to web app
Hope it helps
Detlev
PS: Please consider to reward point for helpful answers on SDN. Thanks in advance!

Similar Messages

  • I'm running 5.0.1 which isn't compatible with the website used by my graduate studies program. In lieu of switching to IE 9 to access this site, is there any way to gain access to Firefox 4.0?

    The website used by my graduate studies program doesn't yet support Firefox 5.0. In lieu of switching browsers, I would like to get an older version of Firefox (4.0) to support my studies.
    Thanks.

    You can install the portable Firefox 3.6.19 version to access websites that do not work with Firefox 5+.
    *http://portableapps.com/apps/internet/firefox_portable#legacy
    *http://portableapps.com/apps/internet/firefox_portable/localization#legacy36

  • SAP Connection with a Website using HTTPS

    SAP Gurus,
    We are on SAP 4.7.  Requesting you to revert whether it is possible to connect SAP 4.7 with HTTPS (Secured) thru some BAPI or BADI.
    Details:
    1. The Business Process expected to be set is for Vendor Transactions.
    2. That is, the Vendor liability document is expected to be posted from the data that would flow thru Internet HTTPS.
    3. The request would originate from a website (that is NOT SAP).
    4. It would have the Vendor Party credentials.
    5. The Line Item Data would come to SAP thru HTTPS and it is expected that SAP would accept the request and process it.
    6. After successful process of the file, the system would generate Accounting Document.
    7. This Accounting Document is expected to be sent back to the originator website, using the same HTTPS connection.
    8. The entire leg is expected to be completed in 180 seconds.
    Qs:
    a. Is it possible to achieve this with using some BAPI or BADI?
    b. Whether it is possible to connect to SAP with some RFC (RFC may not be the right technical word, please recommend what else) using the Secured connection, that is HTTPS?
    Many Thanks

    Hi,
    Thanks for ur reply.
    I am facing the following problem.(I am using Https protocol)
    1.A runtime exception is thrown at line no 5. This is the main problem i am facing and as i am not able to establish the connection with the server, i was able to proceeed further.
    2. I need help for setting the content type(Remember i am using Https)
    3. As u said at server side file has to be decompressed but that is not under my scope so it is not a problem for me.
    4. once connection is established, I need to create a byte stream and write to destination and then i have to check the response sent by the server.
    I am looking for an idea how to establish the connection with the server. any references let me know.
    Code written by me:
    URL url = new URL("https://www.sun.com");
    URLConnection conn = url.openConnection();
    conn.setRequestProperty("content-type","Application/x-zip-compressed"); // I dont think this is correct way of setting the header var
    conn.connect(); // an exception is raised here
    conn.setDoOutput(true);
    OutputStream ostream = conn.getOutputStream();
    Message was edited by:
    vbr3650

  • Stuck with install/first use of Adobe forms in NWDS

    Hi
    I'm trying to use interactive forms in NWDS, but there seems to be nowhere in NWDS that I can access anything Adobe like. I'm not sure if this a very simple thing I'm missing in NWDS, or my installation has gone wrong.
    From the beginning, I've installed Web AS ABAP+Java plugin 2004s SP6, running under linux. Everything starts up fine.
    I'm running Windows XP on a virtual box to install SAPGUI 7.10 and NWDS 7.0.12. Can connect with SAPGUI and from NWDS to J2EE message server.
    Installed Adobe Live Cycle Designer 7.1 (as not part of NWDS installation - 816065) plus patch plus xACF. Registered WDAbobeControl.dll according to 822198.
    Tested successfully Adobe Webservices from browser, but do get an 500 error when called from within NWDS.
    To start using forms, what should I do next ? I've tried creating a webdynpro project, but there's no indication of how to call a layout.
    Any successful pointers rewarded with, er, points
    Thanks, Phil

    hi Philip,
    Have you installed and configured ADS on your server.
    without ADS... you cant work on your interactive forms.
    <b>check the following points</b>
    <b>(this is an old version of requirements but still will help)</b>
    <b>2-1</b> The SAP NetWeaver Developer Studio (Support Package Stack 11) including Adobe LiveCycle Designer (forms design tool) is installed on your computer.
    <b>2-2</b> You have access to the SAP J2EE Engine (Release 6.40). (Note that you can download an evaluation version (Sneak Preview SAP Web Application Server 6.40 Java) from the SDN Download Area at https://www.sdn.sap.com/sdn/downloadarea.sdn.)
    <b>2-3</b> Adobe Reader 7.0.x is installed on your computer.
    <b>2-4</b> The Active Component Framework (ACF) of the Interactive Forms integration is installed on your computer. With SP Stack 11, calling a Web Dynpro application that includes a PDF form for the first time should automatically install the ACF in the background. If you experience
    difficulties that may be related to the frontend installation, please see SAP Note 766191 on the SAP Service Marketplace for manual installation.
    <b>2-5</b> The Adobe document services are configured on the SAP J2EE Engine you are using. To access the Installation and Configuration Guides for Adobe document services, go to http://service.sap.com/nw04installation &#8594; SAP Web AS &#8594; SAP Web AS 6.40 SR1 and Related Documentation &#8594; Adobe Document Services.
    <b>2-6</b> Basic knowledge of developing Web Dynpro applications. For helpful information about Web Dynpro, go to https://www.sdn.sap.com/sdn/developerareas/webdynpro.sdn?node=linkDnode6-2.
    regards,
    -ag.
    Message was edited by:
            amol gupta

  • Problem Accessing Website using Apache

    Hi All,
    I successfully integrated Apache 2.0.37 with Tomcat 4.1.18.
    I can access my web appln(jsp based) successfuly via Tomcat directly as well as Apache on my machine i.e localhost.
    But when i try to access the jsp web appln from some other machine on my Network It always gives an Error 404 Not Found whereas I am able to access the web appln directly on Tomcat port.
    What could be the reason for this.
    I would apprecaite an early answer
    Thanks
    Raj

    Is your server has unique name or fixed ip like abc for instance, you can't use localhost to refer to your server even under LAN environment
    To access that particular jsp on fixed IP , try the following
    http://abc:port number/jsp location/jsp page without mapping or
    http://abc:port number/mapped directory
    On local LAN environment , be sure to tick bypass proxy for local addresses in your browser setting

  • How can I integrate a blog with my website using Adobe Muse? (I am hosted by Adobe Business Catalyst

    I know I need to start a blog, but want to integrate it into my existing Muse-designed website, which is hosted with Adobe Business Catalyst? Is there any way to do this? (I want my main master page navigation bar to have a link to the blog...which I can't do unless the page is part of the site, right?)
    Please help.

    Crafting Actions Package UPDATED Aug 14, 2012 Changed AspectRatioSelection Plug-in script added Path support.
    Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    12 Scripts for actions
    Example
    Download

  • Problems with PDF printing, using Apache FOP!

    When I click on "print" link I reseive an empty file!
    I done each step that was described in manual.
    I don't know what to do.
    Best Regards, Kostya Proskudin!

    Ok, let me describe all my actions:
    1. I download from http://archive.apache.org/dist/xmlgraphics/fop/source/ file fop-0.20.5-src.zip.
    2. I extract it.
    3. go to $ORACLE_HOME/oc4j/j2ee and copied folder fop-0.20.5.
    ($ORACLE_HOME - means DB home, is it right?)
    4. Then I add to the end of file $ORACLE_HOME/oc4j/j2ee/home/config/application.xml
    <!-- libraries below added for FOP support -->
    <library path="../../../j2ee/fop-0.20.5/build/fop.jar"/>
    <library path="../../../j2ee/fop-0.20.5/lib/batik.jar"/>
    <library path="../../../j2ee/fop-0.20.5/lib/avalon-framework-cvs-20020806.jar" />
    <!-- above libraries added for FOP support -->
    5. Go to $ORACLE_HOME/oc4j/j2ee/home/default-web-app and copied there apex_for_render.jsp.
    6. Open my apex_dmin .... and fill host (my DB host 10.10.10.4), port (DB port 1521 the same as tns has, is it right?) at least script "/apex_fop_render.jsp" (with "/")
    Thank you!

  • Variable multiple single value filled with customer exit used in FOX form.

    Hi guys, I definitly need your help in the following scenario:
    I have variable (multiple single value) filled in a customer exit and use it in web template. There it is used in the drop down box for selecting a special date in the analysis item. And there comes the first question:Why the results from the customer exit are written in the way "date1; date2; date3" in one line? They should appear line by line in rows. How can I influence that? I tried both data binding types, "variable" and "characteristic".
    Now a button raises a planning function with a fox formula which should write the selected date (from the drop down box) in a customer table using "call function".
    I always get the error, that I need to restrict the variable to "single value". Why do I have to do that and if necessary how can I do that? Other planning functions without the fox formula also work properly with using the selection from the drop down box.
    I appreciate you help.
    Kind regards, Anja.

    Hi Vamsi.,
    Try this code.
    WHEN 'PREVIOUS_YEAR_1'.
    IF I_STEP = 2. "after the popup of user entry
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'ZCURRENT_YEAR_PERIOD'.
    break-point.
    IF SY-SUBRC EQ 0.
    WA_YEAR = LOC_VAR_RANGE-LOW+0(4). "Year
    WA_MONTH = LOC_VAR_RANGE-LOW+5(3). "Period
    WA_YEAR = WA_YEAR - 1.
    CONCATENATE WA_YEAR wa_month INTO WA_FISC_PERD .
    CONCATENATE WA_YEAR WA_MONTH1 INTO L_S_RANGE-HIGH .
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDIF.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDIF.
    ENDIF.
    ENDLOOP.
    endif.
    Assing points if it helps you.
    -- Selva

  • Oracle with service web using apache axis

    hello,
    I'don't know where can i put this question .
    My problem is :
    i've done web services using JAVA, my program in JAVA use Oracle , and it works well, but when it could not connect to oracle, it stoppes in this instruccion : DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Can you help me ?
    thanks

    make sure the classes related to jdbc are reachable withit the scope of your CLASSPATH environemnt variable.
    Regards.

  • AM SDK SSO with AM server running in Realm mode throws exception

    Hi All,
    we have a web application which does SSO with AM server using AM SDK APIs. Following is the code snippet.
    SSOTokenManager ssoMgr = SSOTokenManager.getInstance();
    SSOToken token = ssoMgr.createSSOToken(request);
    boolean tokenValid = ssoMgr .isValidToken(token);
    AMUser amuser = null;
    if (!tokenValid) {
    MStoreConnection amsc= new AMStoreConnection(token);
    amuser = amsc.getUser(token.getPrincipal().getName());
    String uid = amuser.getStringAttribute("uid");
    This code works perfectly fine with AM running in Legacy mode. But throws following exception with AM running in Realm mode.
    com.iplanet.am.sdk.AMException: Unable to get attributes from data store.
    at com.iplanet.am.sdk.ldap.DirectoryServicesImpl.getAttributes(DirectoryServicesImpl.java:791)
    at
    com.iplanet.am.sdk.ldap.CachedDirectoryServicesImpl.getAttributes(CachedDirectoryServicesImpl.java:823)
    at
    com.iplanet.am.sdk.ldap.CachedDirectoryServicesImpl.getAttributes(CachedDirectoryServicesImpl.java:625)
    at
    com.iplanet.am.sdk.AMObjectImpl.getStringAttribute(AMObjectImpl.java:669)
    at
    com.sun.comms.client.security.sso.impl.AMSSOProvider.SingleSignOn(AMSSOProvider.java:73)
    at
    com.sun.comms.client.web.sso.SSOFilter.doFilter(SSOFilter.java:154)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
    at
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:75)
    at
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:181)
    at java.security.AccessController.doPrivileged(Native Method)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:177)
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
    at
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
    at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
    at
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
    at
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
    at
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
    at
    com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
    at
    com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
    at
    com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
    at
    com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
    at
    com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
    at
    com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
    at
    com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
    at
    com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    We have created a realm with sunDS datastore where all our application users data is stored. Same LDAP is used as authentication module (AM auth module) in realm.
    --Balamurugan.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi All,
    we have a web application which does SSO with AM server using AM SDK APIs. Following is the code snippet.
    SSOTokenManager ssoMgr = SSOTokenManager.getInstance();
    SSOToken token = ssoMgr.createSSOToken(request);
    boolean tokenValid = ssoMgr .isValidToken(token);
    AMUser amuser = null;
    if (!tokenValid) {
    MStoreConnection amsc= new AMStoreConnection(token);
    amuser = amsc.getUser(token.getPrincipal().getName());
    String uid = amuser.getStringAttribute("uid");
    This code works perfectly fine with AM running in Legacy mode. But throws following exception with AM running in Realm mode.
    com.iplanet.am.sdk.AMException: Unable to get attributes from data store.
    at com.iplanet.am.sdk.ldap.DirectoryServicesImpl.getAttributes(DirectoryServicesImpl.java:791)
    at
    com.iplanet.am.sdk.ldap.CachedDirectoryServicesImpl.getAttributes(CachedDirectoryServicesImpl.java:823)
    at
    com.iplanet.am.sdk.ldap.CachedDirectoryServicesImpl.getAttributes(CachedDirectoryServicesImpl.java:625)
    at
    com.iplanet.am.sdk.AMObjectImpl.getStringAttribute(AMObjectImpl.java:669)
    at
    com.sun.comms.client.security.sso.impl.AMSSOProvider.SingleSignOn(AMSSOProvider.java:73)
    at
    com.sun.comms.client.web.sso.SSOFilter.doFilter(SSOFilter.java:154)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
    at
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:75)
    at
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:181)
    at java.security.AccessController.doPrivileged(Native Method)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:177)
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
    at
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
    at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
    at
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
    at
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
    at
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
    at
    com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
    at
    com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
    at
    com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
    at
    com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
    at
    com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
    at
    com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
    at
    com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
    at
    com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    We have created a realm with sunDS datastore where all our application users data is stored. Same LDAP is used as authentication module (AM auth module) in realm.
    --Balamurugan.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problem in upload PDF file using Apache HttpClient3.1

    Hi:
    I am using Apache HttpClient 3.1 to upload pdf image from a STANDALONE java application to remote server (Weblogic9.1). Here are some questions:
    1) Do i have to use multipartpost method? (I am uploading pdf image one by one)
    2) The pdf image is added to request as:
    HttpClient client = new HttpClient();
    PostMethod method = new PostMethod("myServletUrl");
    method.getParams().setParameter(HttpMethodParams.RETRY_HANDLER,
    new DefaultHttpMethodRetryHandler(3, false));
    InputStreamRequestEntity entity = new InputStreamRequestEntity(new FileInputStream(file), "application/pdf");
    method.setRequestEntity(entity);
    method.setRequestHeader("Content-type", entity.getContentType());
    int statusCode = client.executeMethod(method);
    3) On server side, a servlet will save the posted pdf image as (Apache FileUpload is not used here):
    InputStream is = req.getInputStream();
    saveFile(is, fileName); // write this input stream to file.
    The above steps 2 and 3 will create a pdf file on remote server with MUCH REDUCED size. Any idea what's the problem? content-type problem?
    4) An working example link will be great.
    thanks

    Dunno, but as this is a client side issue, the solution, if there is one will lie in the HTML / javaScript.
    If you dont get an answer in here, have google for an HTML solution, which you can then write out in your jsp.

  • Issues with this website

    Is this a Safari issue or a Dice issue, or both?
    http://community.dice.com/t5/Customer-Support/Using-Safari-with-this-website/td- p/191198
    My post
    The font size is WAY WAY too small, and I have had some other issues as well. One of which is when I close the browser window and come back to a thread and hit the reply button, I am taken to some search screen, and have to completely log out and log back in before I can reply. Its very annoying and needs to be done everytime I reply to a post. I have deleted all my cookies, cleared my cache, etc.. I am thinking its a issue with how this website talks with safari but I could be wrong. I could ISOLATE the problem by creating or logging into another Mac account I setup for testing problems, but I am too lazy to do so, as I am thinking this is a Dice + Safari issue because I never had the problems when I used FireFox full time.
    John

    I bet a donut that the problems I am experiencing have nothing to do with logging in as a admin. I bet its a Dice + Safari issue.

  • How to make result of form post to jsp to appear in child frame

    Two frames inside a frameset, A and B (A is the first frame, B is the second). A has as it's source an html page containing a form with a submit button. The form posts to a jsp called Content.jsp. Works great, except: I want the results returned by Content.jsp to appear inside frame B. Seems like I've got the target for the form inside A wrong somehow, because when I click the submit button inside frame A, my results appear in a new browser instance, rather than inside B. Here's what the form declaration looks like:
    <form action="Content.jsp" method="post" target="_parent.frames[1]">
    If I make the target parent, that obviously replaces the whole page. If I make the target self, that obviously replaces the contents of frame A. I want to replace the contents of frame B. Any ideas?

    Thanks, but I'm not using IFrame, just Frame and FrameSet. In any event, I have tried using the name attribute to no avail. Here's a really simple version of the code:
    //Parent frameset
    <frameset rows="50%,50%">
    <frame name="A" src="testSubmit.html">
    <frame name="B" src="">
    </frameset>
    //Here's the form in testSubmit.html
    <form ACTION="testResult.html" METHOD="POST" TARGET="_parent.B">
    <input TYPE="SUBMIT" VALUE="Click Me">
    </form>
    I've also tried TARGET="_parent.frames[1]" with the same result -- a new browser window is launched rather than the results being displayed in B.
    Thanks for any assistance.

  • How to use SSO with Forms application

    Can somebody explain, how can we configure the SSO with Forms application.
    I have two application server instances. One for infrastructre and Other for application.
    Thanks

    Have a look at http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsso.pdf and http://download-uk.oracle.com/docs/cd/B14099_19/web.1012/b14032/sso.htm#i1006721

  • SSO to a website with applet as a home page

    Hi,
    we have a scenario in which we need to setup a SSO to a website which has applet as its homepage. I am trying to use the application integrator.
    did anybody else implemented this scenario, if so, could you please share your experiences or ideas with me.
    thank you

    You could use the mysapsso2 control for .NET and write a wrapper.  This would have to be an external page/application that would check for the existance of the SSO cookie and then do a redirect.  This has to be external because PDK does not support redirect.  At least this is my understanding.

Maybe you are looking for