Need code snippets

Hi:
i m developing my first sample application and need some code snippet for
- connect to/read/write a database (access or SQL)
- send email
- directory listing and file upload
thanks.
-Z

http://javaalmanac.com/egs/index.html

Similar Messages

  • URGENT : Need java code snippet to retrieve uniquemember values OID 11g API

    Hi All,
    We have a requirement to retrieve the uniquemember attribute values using OID 11g API. We are using labeleduri approach for dynamic groups and thus all the uniquemember values are created using dynamic groups.
    When we are trying to retrieve the uniquemember values using Java code snippet, it is not returning the values. The strange thing is: The uniquemember values created using dynamic groups are not visible in ODSM OID console or JExplorer tool. However those values are visible in LDAP Browser v2.8.1 tool.
    So can somebody throw light on this? Any pointers or sample code snippet to retrieve uniquemember values would be grateful.
    Thanks
    Mahendra.

    Hi All,
    We have a requirement to retrieve the uniquemember attribute values using OID 11g API. We are using labeleduri approach for dynamic groups and thus all the uniquemember values are created using dynamic groups.
    When we are trying to retrieve the uniquemember values using Java code snippet, it is not returning the values. The strange thing is: The uniquemember values created using dynamic groups are not visible in ODSM OID console or JExplorer tool. However those values are visible in LDAP Browser v2.8.1 tool.
    So can somebody throw light on this? Any pointers or sample code snippet to retrieve uniquemember values would be grateful.
    Thanks
    Mahendra.

  • Working code snippet for JSSE 1.0.2

    This code works only with JSSE 1.0.2. JSSE 1.0.1 has a bug I believe which give null cert chain
    error when using client authorization.
    Below is a java code snippet to create a SSL server and client sockets.
    SocketsFactory.java
    This class is an utility class which gets you the Secure Socket for server and the client.
    It reads from the properties file.
    public class SocketsFactory{
    /** Creates a SSL client socket. It uses the properties obtained from the
    * sslPropsFile to create the client socket.
    * @param sslPropsFile The ssl properties file that contains information about the provider etc.
    * @param host The host to connect to.
    * @param port The port on which this socket should attempt to connect
    * @throws IOException if there was any exceptions in creating the sockets or if the properties file
    * was not found or corrupted.
    * @return returns the socket that was created.
         public static Socket createSecureSocket(final String sslPropsFile, String host,int port)throws IOException{
              Properties props = readPropertiesFile(sslPropsFile);
              SSLSocketFactory factory = null;
              System.setProperty("javax.net.ssl.trustStore",(String)props.get("com.ibm.idmg.ssl.keyStore"));
              //Getting a secure client socket using sun..
              try {
                   addProvider(props);
                   // Set up a key manager for client authentication
                   // if asked by the server. Use the implementation's
                   // default TrustStore and secureRandom routines.
                   SSLContext ctx = getSSLContext(props);
                   factory = ctx.getSocketFactory();
              catch (Exception e) {
                   e.printStackTrace();
                   throw new IOException(e.getMessage());
              SSLSocket client =(SSLSocket)factory.createSocket(host, port);
              client.startHandshake();
              return client;
    /** Creates a SSL server socket based on sun's implementation using JSSE. Uses the
    * sslPropsFile to get the keystore used for validating certificates and their
    * passwords.
    * @param sslPropsFile The properties file containing SSL provider, key passwords etc.,
    * @param port The port to which this socket should listen at.
    * @throws IOException If the properties file was not found or it was corrupted or if there was any
    * other errors while socket creation.
    * @return the serversocket object.
         public static ServerSocket createSecureServerSocket(final String sslPropsFile,int port) throws IOException{
              Properties props = readPropertiesFile(sslPropsFile);
              String trustStore = (String)props.get("com.ibm.idmg.ssl.keyStore");
              System.setProperty("javax.net.ssl.trustStore",trustStore);
              //     Getting a sun secure server socket
              SSLServerSocketFactory ssf = null;
              try {
                   addProvider(props);
                   // set up key manager to do server authentication
                   SSLContext ctx = getSSLContext(props);
                   ssf = ctx.getServerSocketFactory();
              } catch (Exception e) {
                   e.printStackTrace();
                   throw new IOException(e.getMessage());
              SSLServerSocket socket = (SSLServerSocket)ssf.createServerSocket(port);
              socket.setNeedClientAuth(true);
              return socket;          
         * Internally used function to read a provider from the properties and
         * add it as the current ssl provider. The properties should have the
         * property <i>com.ibm.idmg.ssl.sslProvider</i> defined. Otherwise
         * throws NullPointerException.
         private static void addProvider(Properties props) throws Exception{
              String provider = (String)props.get("com.ibm.idmg.ssl.sslProvider");
              if (provider == null)
                   throw new NullPointerException("com.ibm.idmg.ssl.sslProvider is not specified!");
              java.security.Security.addProvider((java.security.Provider)Class.forName(provider).newInstance());
         * Internally used function to read a file and return it as java properties.
         * It uses java.util.Properties. Throws FileNotFoundException if the file
         * was not found. Otherwise returns the properties.
         private static Properties readPropertiesFile(final String file) throws IOException{
              if (file == null)
                   throw new IOException("SSL Context File name not specified!");
              FileInputStream in = new FileInputStream(file);
              Properties properties = new Properties();
              properties.load(in);
              in.close();
              in = null;
              return properties;
         * Internal function used to retrieve a SSLContext object. It is used primarily
         * for creating SSL sockets that can authenticate each other based on the
         * keystores specified using the properties.
         private static SSLContext getSSLContext(Properties props) throws Exception{
              SSLContext ctx;
              KeyManagerFactory kmf;
              KeyStore ks;
              String password = (String)props.get("com.ibm.idmg.ssl.keyStorePassword");
              if (password == null)
                   password = System.getProperty("javax.net.ssl.keyStorePassword");
              char[] passphrase = password.toCharArray();
              ctx = SSLContext.getInstance("TLS");
              kmf = KeyManagerFactory.getInstance("SunX509");
              ks = KeyStore.getInstance("JKS");
              String keyStoreFile = (String)props.get("com.ibm.idmg.ssl.keyStore");
              if (keyStoreFile == null)
                   keyStoreFile = System.getProperty("javax.net.ssl.keyStore");
              FileInputStream in = new FileInputStream(keyStoreFile);
              ks.load(in, passphrase);
              in.close();
              in = null;
              //     All keys in the KeyStore must be protected by the same password.
              String keyPassword = (String)props.get("com.ibm.idmg.ssl.keyPassword");
              if (keyPassword != null)
                   passphrase = keyPassword.toCharArray();
              kmf.init(ks, passphrase);
              ctx.init(kmf.getKeyManagers(), null, null);
              return ctx;
    The Server properties file looks like this.
    #     Specify the SSL provider here.
    #     Using sun's reference implementation for testing..
    com.ibm.idmg.ssl.sslProvider=com.sun.net.ssl.internal.ssl.Provider
    #     Specify the keystore file that this ssl socket should use
    com.ibm.idmg.ssl.keyStore=server.ks
    #     Specify the password for this keystore file
    com.ibm.idmg.ssl.keyStorePassword=servercanpass
    #     Specify the password used to protect the keys in the keystore
    #     Note: all the keys should have the same password
    com.ibm.idmg.ssl.keyPassword=icanpass
    The client properties file
    #     Specify the SSL provider here.
    #     Using sun's reference implementation for testing..
    com.ibm.idmg.ssl.sslProvider=com.sun.net.ssl.internal.ssl.Provider
    #     Specify the keystore file that this ssl socket should use
    com.ibm.idmg.ssl.keyStore=client.ks
    #     Specify the password for this keystore file
    com.ibm.idmg.ssl.keyStorePassword=clientshouldpass
    #     Specify the password used to protect the keys in the keystore
    #     Note: all the keys should have the same password
    com.ibm.idmg.ssl.keyPassword=canipass
    Now to create the certificates..
    Its a 5 step process
    1) Create the keystore file.
         keytool -genkey -alias mohan -dname "CN=Mohan Tera OU=IS O=IM L=sanjose S=NY C=US" -keystore server.ks -storepass servercanpass -validity 180 -keypass icanpass
    2) Create a self signed certificate. If you need to get it signed from
         verisign then you have to create a certificate request. For testing purposes,
         you can create a self signed certificate.
         keytool -selfcert -alias mohan -dname "CN=Mohan Tera OU=IS O=IM L=sanjose S=NY C=US" -keystore server.ks -storepass servercanpass -validity 180 -keypass icanpass
    3) Export the public key from the keystore to a certificate file that is to be imported to the client keystore.
         keytool -export -alias mohan -file fromserver.cer -keystore server.ks -storepass servercanpass
    4) Repeat the above steps for the client also..
         a)
         keytool -genkey -alias moks -dname "CN=Jennifer Poda OU=Javasoft O=Sun L=Edison S=NJ C=US" -keystore client.ks -storepass clientshouldpass -validity 180 -keypass canipass
         b)
         keytool -selfcert -alias moks -dname "CN=Jennifer Poda OU=Javasoft O=Sun L=Edison S=NJ C=US" -keystore client.ks -storepass clientshouldpass -validity 180 -keypass canipass
         c)
         keytool -export -alias moks -file fromclient.cer -keystore client.ks -storepass clientshouldpass
    5) Import the certificates that were exported in steps 3 and 4c in client and server keystore respectively.
         keytool -import -trustcacerts -alias new -file fromserver.cer -keypass keypass -storepass clientshouldpass -keystore client.ks
         keytool -import -trustcacerts -alias new -file fromclient.cer -keypass keypass -storepass servercanpass -keystore server.ks
    And voila you are all set to go..
    Hope this explains to all the people who are struggling with JSSE..
    Regards,
    Moks

    when i using your method in my code i get the following exception
    pl. help me.
    java.security.UnrecoverableKeyException: Cannot recover key
    at sun.security.provider.KeyProtector.recover(KeyProtector.java:301)
    at sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:103
    at java.security.KeyStore.getKey(KeyStore.java:289)
    at com.sun.net.ssl.internal.ssl.X509KeyManagerImpl.<init>(DashoA6275)
    at com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl.engineInit(DashoA6
    275)
    at javax.net.ssl.KeyManagerFactory.init(DashoA6275)
    at ClassFileServer.getServerSocketFactory(ClassFileServer.java:145)
    at ClassFileServer.main(ClassFileServer.java:115)
    Exception in thread "main" java.lang.NullPointerException
    at ClassFileServer.main(ClassFileServer.java:117)

  • How do I create a drop down menu with Code Snippets and Flash CS5?

    Hi
    I am wondering how to create a drop down menu using the Code Snippets and CS5?
    There are some older tutorials out there and it would be nice if someone could create an updated drop down menu tutorial, and it might be me doing this after I have figured out the best and easiest way to create one, but before that I need some pointers.
    Thanks!
    Have a great day!
    Paal Joachim

    You can use panel widget to create manual menu where set to show target on rollover.
    Something like this :
    http://muse.adobe.com/exchange-library/menu-vertical-accordion-widget-1
    http://muse.adobe.com/exchange-library/tiptop-navigation-menu
    Thanks,
    Sanjit

  • OLE2 Doc/Code snippet to assist in creating a word doc with underlined text

    I would like to use OLE2 to create a simple Word document. I would like some of the text to be bold/underlined and the rest of the text to be regular. There seems to be a serious dearth of information regarding OLE2 in conjunction with PS/SQL in Word applications. We're running Forms 6 and Oracle 9i.
    I don't believe that I need to use the techniques described in the Forms Manual (OLE2 containers, etc.). I have managed to create a Word doc and write some text to it but I've been unable to find out/guess at the syntax that I'd need to control bolding and underlining. It would be a big help if I could just find the syntax for Word OLE2 commands. During my documentation search, I seem to remember a post that mentioned 'Reference 2' and maybe 'Reference 3' as a source of information related to OLE2 in PL/SQL code. If anyone can give me a shove in the right direction I'm more than willing to read the manuals. I won't be too disappointed if someone could send me a code snippet either!
    Thanks,
    Ron Walker

    Hi Ron,
    Office ships with a number of resources that you will find indispensable for the sort of work you're doing. Take a look at the VBA IDE (Visual Basic for Applications IDE). You may already be familiar with it, if you've ever written a Word macro, but to call it a macro editor sells it short -- it is a full-blown development environment. Its Object Browser allows you to browse Word's object model, search by keyword, and view call syntax.
    In case you aren't familiar with the VBA IDE, try this:
    1. Open Word
    2. Switch between Word and the VBA IDE by pressing <Alt><F11>
    3. Open the Object Browser by pressing <F2>
    Spend some time familiarizing yourself with the Object Browser. Constrain its scope by selecting the Word library instead of <All Libraries> (the default). Learn to search by keyword. Click on items within your results for details. If Visual Basic Help is installed, pressing <F1> will raise help on a selected item.
    Visual Basic Help may not be part of the Compact or Typical install. Running Office Setup, either from the install CD, or through Add/Remove Programs under Control Panel, will allow you to add the feature. (The Office installer lists Visual Basic Help in the Office Tools section.)
    I have found the VBA IDE to be the perfect place for prototyping and testing automated processes. It is a far friendlier environment for learning Office automation, as it offers code completion and context-driven help. Once the process works, I manually translate my VBA routine into Forms PL/SQL, which is fairly painless. I've written a short tutorial, that I will post shortly -- I didn't want to bury it in this thread!
    Hope this helps,
    Eric Adamson
    Lansing, Michigan

  • Jdev10.1.3 - is there a suppotr for parametrized code snippets?

    Hi,
    I am looking to add parameters to the code snippet (simple name value pairs and iterators)
    I need to be able to prompt the user to enter these parameters when designing the page (inserting the code snippet results in an editor that prompts for the parameters)
    Is such a feature available or planned?
    thanks
    Vijay

    Hi,
    depends on what kind of code snippet you need. JDeveloper supports code templates that can have variables in them that are filled in by the developer when adding it with <abbreviation>ctrlenter
    See tools --> Preferences --> Code Editor -> Code Templates
    If e.g. you create a code template "about" and add the following snippet
    * File: $file$
    * Date created: $date$
    * Author: $author$
    then all variables surrounded by $..$ are highlighted (you can have JDeveloper to add default values as well
    Frank

  • Request for C++ ExtractorProcessor code snippets

    Hi,
    Does anyone have any C++ code snippets of using the ExtractorProcessor?
    I'm trying to implement an ExtractorProcessor in C++ - I have created a ValueExtractor and I can create the ExtractorProcessor from that, but the compiler gives me an error when I try to invoke it
    Error     6     error C2665: 'coherence::lang::TypedHandle<T>::TypedHandle' : none of the 4 overloads could convert all the argument types     c:\dcs_systems\test\trunk\ThirdParty\Components\coherence_3_7_1_x86\include\coherence\lang\TypedHolder.hpp     205     D3ContextCache
    This is my call
    int CacheD3ContextRepository::getD3ContextState(int call_id) const
         Integer32::View vKey = Integer32::create(call_id);
         ValueExtractor::View vStateExtractor =
              COH_MANAGED_BOX_EXTRACTOR(Integer32::View, CacheD3Context, getState);
         ExtractorProcessor::Handle vStateFetcher = ExtractorProcessor::create(vStateExtractor);
         Integer32::View vState;// = _cache->invoke(vKey, vStateFetcher);
         return *vState;
    Essentially I have CacheD3Context object but I don't want to read back the whole object just the state field.
    I have been told that something called a 'ReducerAggregator' is a better way of doing this but I haven't been able to find this yet.
    Thanks
    Joe
    Edited by: 841803 on 09-Apr-2013 00:55

    Hi Joe,
    The invoke method returns an Object::Holder, which will need to be cast to the extracted type:
    int CacheD3ContextRepository::getD3ContextState(int call_id) const
        Integer32::View              vKey            = Integer32::create(call_id);
        ValueExtractor::View         vStateExtractor = COH_MANAGED_BOX_EXTRACTOR(Integer32::View, CacheD3Context, getState);
        ExtractorProcessor::Handle   vStateFetcher   = ExtractorProcessor::create(vStateExtractor);
        Integer32::View              vState          = cast<Integer32::View>(_cache->invoke(vKey, vStateFetcher));
        return *vState;
        }Note that when the extraction will be performed server side, the above extractor will be evaluated as a ReflectionExtractor in java, and will invoke the java getState method. This implies you'll need the CacheD3Context (or equivalent) java class in the classpath of your cache servers. If this is not an option then have a look at PofExtractor.
    thanks,
    Mark
    Oracle Coherence

  • Code Snippet for Pop-Window

    Hi Colleague,
    I need to show a pop-up window on an event. How can i achieve this in ABAP WD.
    Code Snippet would be helpful.
    Regards,
    Piyush

    Piyush,
    When you create a pop up window using code wizard, you'll get a OK button by default. By clicking on it the pop up window will close. Or if you want to place a OK button in the view that is present in the pop up window and want to close the pop up by clicking on it, that is also possible. Just Put a button in the pop up view and use this code in the ONACTION method of that button:
    data:
                l_api         type ref to if_wd_view_controller,
                l_window_ctlr type ref to if_wd_window_controller,
                l_popup       type ref to if_wd_window.
                l_api         = wd_this->wd_get_api( ).
                l_window_ctlr = l_api->get_embedding_window_ctlr( ).
                if l_window_ctlr is bound.
                l_popup       = l_window_ctlr->get_window( ).
                l_popup->close( 'l_popup' )." pass the pop up view name here
                endif.
    Regards
    Arjun
    Edited by: Arjun Thakur on Mar 13, 2009 10:01 AM

  • Code Snippet issue?

    So ... I'll try to explain this the best I can.
    I have a flash file that is nothing more than a slide presentation.
    I go from one slide to another using buttons.
    There are global buttons (navigation: Next Previous, Home) ... and their are screen specific buttons (go to frame X and stop).
    That's it.
    For some reason ... navigation never works on the last slide.
    None of the navigation, global OR local.
    There is nothing different about this screen than any other screen.
    It shares the same global navigation as the previous screens ... but once published ... the code snippets do not work.
    When you arrive to the last slide ... it does nothing.
    The buttons are active in the sense that the cursor changes on roll-over, but the action does not take place.
    I have even tried to make that last slide seperate by giving it it's own set of buttons.
    Still ... it does not work.
    I have RACKED my brain trying to figure out why this would happen.
    If I delete the last slide (say ... #20) then publish ... #19 stops working.
    Is this a bug with the software?
    The file is SO simple it stupid.
    It could be done in html ... but it needed to be done in Flash to create a .swf so it could be displayed on a PlayBook.
    The whole project is now a flop.
    Does ANYONE know why this might happen?   :|
    I know this is hard to explain ... but there really is nothing to this file.
    Thanks in advance.

    What this is ... is a demo for an phone app.
    They are doing the demo on a PlayBook.
    There are 20 screens and the design looks like a BlackBerry Torch.
    The bottom navigation takes the user back to screen One.
    I have a button on Frame 1 of the timeline that runs across all 20 screens.
    The Code Snippet for that button is:
    HomeLeft.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_9);
    function fl_ClickToGoToAndStopAtFrame_9(event:MouseEvent):void
    gotoAndStop(1);
    So .. if the user is on say ... screen 10 and clicks the "HomeLeft" button .. it takes them to screen #1.
    That works.
    All the navigation works up to screen 19.
    Then ... when you navigate to screen 20 ... nothing.
    The buttons react ... but the script is not activated.
    I have looked EVERYWHERE for rogue code.
    I even deleted the frames for screen 20 and then built it again.
    Still ... it does not work.
    If I could show you a screen shot of the timeline ... I think it would make more sense.

  • Trouble with iWeb code snippet for drop down menu

    Hello,
    So, I'm having a bit of trouble figuring this out and it goes beyond my knowledge, to be honest. I'm working on a website for someone and when viewed in Safari for Mac or iPad or even iPhone, it all works out great. But, when viewed in any other browser for Mac or Windows, the drop down doesn't display the "menu heading," only what should be the first drop down selection. Not only that, that page now becomes "unselectable" and more or less dead.
    Here is what it should read, and does on Safari:
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    On all other browsers, it displays the FAQ - Yoga option as the "title" and only displays the other two options. So, is this something that can be fixed in the code snippet or is what I'm seeing a more involved HTML issue that would require actual skills to fix? Any help or direction would be greatly appreciated because I'd love to get this knocked out and also pick something up in addition. If I have to edit the actual HTML pages themselves I could do that as well; I've got an editor and have done that for my own site when needed. Anyway, thank you very much in advance!
    Her
    <html>
    <title></title>
    <head>
    <script>
    <!--
    function land(ref, target)
    lowtarget=target.toLowerCase();
    if (lowtarget=="_self") {window.location=loc;}
    else {if (lowtarget=="_top") {top.location=loc;}
    else {if (lowtarget=="_blank") {window.open(loc);}
    else {if (lowtarget=="_parent") {parent.location=loc;}
    else {parent.frames[target].location=loc;};
    function jump(menu)
    ref=menu.choice.options[menu.choice.selectedIndex].value;
    splitc=ref.lastIndexOf("*");
    target="";
    if (splitc!=-1)
    {loc=ref.substring(0,splitc);
    target=ref.substring(splitc+1,1000);}
    else {loc=ref; target="_self";};
    if (ref != "") {land(loc,target);}
    //-->
    </script>
    </head>
    <body>
    <style type="text/css">
    <!--
    .combobox {
    background-color: #fef3e2;
    color: #463c3c;
    font-size: 13pt;
    font-family: optima;
    font-weight: normal;
    font-style: none;
    -->
    </style>
    <form action="dummy" method="post"><select name="choice" size="1" class="combobox" onChange="jump(this.form)"
    <option value="">Rates, Hours, Reservations</option>
    <option value="http://yogareikimassage.com/MG/Rates.html*_top">Rates and Hours</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Yoga.html*_top">FAQ and Reserve - Yoga</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Reiki.html*_top">FAQ and Reserve - Reiki</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Massage.html*_top">FAQ and Reserve - Massage</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Personal_Training.html*_top">FAQ and Reserve - Training</option>
    </select>
    </form>
    </body>
    </html>

    Here is what it should read, and does on Safari:
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    No, it shouldn't and it doesn't. It should look like :
    Rates, Hours, Reservations
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    FAQ and Reserve - Training
    Here's the correct part :
    <select>
              <option value="">Rates, Hours, Reservations</option>
              <option value="http://yogareikimassage.com/MG/Rates.html*_top">Rates and Hours</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Yoga.html*_top">FAQ and Reserve - Yoga</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Reiki.html*_top">FAQ and Reserve - Reiki</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Massage.html*_top">FAQ and Reserve - Massage</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Personal_Training.html*_top">FAQ and Reserve - Training</option>
    </select>
    The <select> item was missing. And if you don't want the first line in the menu (Rates, Hours, Reservations) then don't enter it in the first place.
    BTW, it's not a dropdown menu. It's a selection list in a form.

  • Why can't I paste code snippets in Page Properties Metadata area for head ?

    I downloaded the new Muse 2014 CC the other day and everything seemed to install correctly, however, yesterday I tried add Google Analytics code snippet to the Page Properties >> Metadata section where code goes into <head> area of the site and after coping the code, in Muse Paste was grayed out. I tried on both the HOME page and Master page.

    How can I do a screenshot when my cursor needs to be in the EDIT >> PASTE drop down? It's impossible. Just know that after I click into the <head> code area and select it so that it becomes outlined in blue, then go to EDIT >> PASTE none of the items in the EDIT drop-down are available, everything is grayed out.

  • Code snippet to create SOAPElement

    i need to write a code snippet for creating the below SOAPElement
    <tag:resourceName>ABC</tag:resourceName>
    <tag:encodingFormat>?</tag:encodingFormat>
    <tag:ruleName>?</tag:ruleName>
    <tag:IdType>?</tag:IdType>
    <tag:allocationType>?</tag:allocationType>
    <tag:quantity>?</tag:quantity>
    <tag:filterValue>?</tag:filterValue>
    I am new to Webservices.
    Please help

    This link http://download.oracle.com/javaee/1.4/tutorial/doc/SAAJ3.html is the 4th hit on google for "java tutorial soapelement".

  • Adding a target to 'drag and drop' code snippet

    Hi,
    I would imagine it's a simple enough bit of additional code, but I'm no programmer, and trawling the Web has proved fruitless to date...
    Within Flash CS5 and using AS 3, I'm attempting to create a series of drag-and-drop interactions for a learning exercise where items must be dragged into the correct box with positive and negative feedback being generated as a result of where the learner drops the item. All I need is the code to link the drag and drop code snippet (which I have working) to a specific object/location on the stage (which I cannot find nor figure out for the life of me)!
    I may be overcomplicating given that perhaps there is a CS5-compatible extension out there somewhere (whatever happened to all of the e-learning extensions and tools Flash once had if my memory serves?) which can provide me with an easily customizable template to achive what I need to do?
    Many thanks in advance to whomever can offer and tips, tools or usable code for this task.
    Galvoice.

    the easiest way to handle that would be to assign a transparent movieclip to the target position and use that movieclip as your droptarget.

  • Code snippet for custom scheduler

    Hi,
    I need to write a custom scheduler as per one of the solutions present in doc in metalink (doc id:1109539.1). Few lines of information in the doc is as below:
    A better solution is to:
    1. Create a custom scheduled task.
    2. The task should run every 10 minutes, and should do a simple call to the server using the singleton instance.
    3. This will assure that the instance is kept alive, hence it will not timeout.
    As per the above solution, what exactly is meant by "do a simple call to the server using the singleton instance". Does anyone help me to provide a code snippet to do the same.
    Thanks
    DPK

    That Metalink ID is not related to your requirement.
    It is a workaround if someone is using Singleton Pattern in their code.
    If they are using Singleton then session will expire after some time and it throws error that's why they are suggesting to use that instance by creating a schedule task after every 10 min so that instance should be alive. It's no where related to your use case. Don't use Singleton Pattern in your code.
    You can read here about Singleton
    http://java.sun.com/developer/technicalArticles/Programming/singletons/

  • Inserting html code snippets

    I'm using Contribute 3 (version 3.11) and cannot insert html code snippets with this. But I'm rather confused as to what I need to upgrade to to do this.
    On the Adobe Help Center webpage it states that " Advanced Adobe Contribute users can use Adobe Contribute CS3 to add custom HTML code snippets to Contribute pages".
    So what is the difference between my version Contribute 3 and Contribute CS3?  And I know that there is now CS4 also, so assume that would be even better?
    I've spent quite a bit of time on the net trying to get to the bottom of this, and hope that someone will take pity on me and enlighten me!
    Thanks in advance.

    Joe, I'm told it should be in the Insert drop down menu if it has been enabled by the Administrator. Is there someone else involved with your site who could have disabled this function? I know that similar things have happened to me in the past.
    Anyway ... I have some good news to report. I downloaded the free trial of Contribute CS4 from the Adobe website yesterday. It took over an hour to download and I wasn't very optimistic that I would be able to get it to work but I did. There is indeed an "Insert html snippet" function and I have produced a test page with a booking engine on it as a result of inserting some code. I have not yet tested it with audio and video files. I will have the use of the free trial for 30 days so will be able to carry out some more tests before taking the plunge and upgrading.
    If you have the minimum system requirements I would say it is worth your giving this a try, Joe

Maybe you are looking for

  • How can I create a card with only a picture on the front - inside blank

    How can I create a card that only has a picture on the front and the inside is blank?

  • Macbook pro can't connect to Dlink wireless router

    Hi, I just bought a new MacBook pro and found it can't connect to my office wireless router Dlink. I can't get a proper IP address from DHCP.  Now I have to go wired. But some other routers I can connect to. is this the driver problem? is this a know

  • Spacing in table of contents

    Is there a way to adjust, to increase, the minimum amount of spacing between a table of contents entry and it's page number for single line paragraphs? I know that I can insert non-breaking spaces in long paragraphs, but if a paragraph fits on one li

  • Log files in EPMA batch client

    Hi All, I want to make log files while using EPMA Batch client. I am using -T and -R option to make the log files. But its not working correctly. Can anyone tell whats wrong with this? I used belong command. epma-batch-client.bat -C"D:\Ads File\DimAd

  • One Sold-to-Part & THREE Ship-to-Parties in One SO-How to configure?

    Dear SAP Peers, My requirement is like this: Sold-to-Party is one and one sales order is created for the qty. of 250 each. Out of these 250 each we have to send as follows: Ship-to-party 01 - >    100 Ship-to-party 02 - >      50 Ship-to-party 03 - >