How to change the properties of a directory using java code

Hai All,
I need to change the properties of directory( websharing).
Can i do this using java code.
Regards,
Charan

I need to change the properties of
directory( websharing).
an i do this using java code.Depends on whether the server has a Java API to do it. Most likely it hasn't.

Similar Messages

  • How to store the data read from excel using java code in Ms access database

    Hi. I wrote a code to read the data from excel. May i know how can i save it to Ms access database using java. Also i have many excels. So i should not connect the database using DSN. So is there any other way to achieve this?

    kramish wrote:
    Im pretty sure that Access does support JDBCNo it does not. It supports ODBC.
    just doing a quick Google came up with some pages:
    http://blog.taragana.com/index.php/archive/access-microsoft-access-database-from-java-using-jdbc-odbc-bridge-sample-code/
    http://www.javaworld.com/javaworld/javaqa/2000-09/03-qa-0922-access.html
    Both articles explains how to use the jdbc-odbc bridge. I think I've seen a pure jdbc driver for access but it wasn't from Microsoft and it wasn't free.
    Kaj

  • How to change the properties of waveform graph from time domain to frequency domain?

    Actually, I want my output waveform graph give me the answer in x-component in frequency instead of time after the FFT. My output waveform graph gives the x-components in time instead of frequency. How to change the properties of the waveform graph?

    vasus wrote:
    Hi,
           I amtaking sensor input signals through NI FPGA cRIO-9004. i am analysing this using wave graph. the problem is i am not getting accurate singal.How to decrease the frequency? 
    You are responding to a very old (8 years) thread, be aware that that might not be the best option.
    However, you want to decrease the frequency? or increase?
    What is the code you are running?
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • How to dynamically configure JPA setting at runtime using java code?

    Hi,
    I am new to EJB 3.0 and JPA. I am trying to help my company to deploy the use of JPA in EJB3.0. Currently, i am trying out with OpenJPA in IBM Webshpere Application Server 7.0. We have four different WAS servers running for testing, system integration testing, user testing and production respectively, and in each region, the configurations for data source, JDBC username and password, schema, etc are different. So i think i would need to configure the JPA setting during runtime using Java code that determines which is the environment. And apparently i am stuck with the limited knowledge i have.
    1) I understand that i could override the JDBC in the persistence xml by creating entity manager using entity manager factory. But is it possible that i do similar thing by using inejction of persistence context on entity manager to obtain a container managed entity manager?
    2) Alternatively, it is possible to create multiple persistence unit in the XML and inject different PU to the entity manager, am i right? But how to inject dynamically since @PersistenceContext(unitName="xxx") only accepts constant declaration.
    3) Is it possible that the JDBC username and password are read from properties file?
    Thanks for your help in advance!

    Hi
    Thanks for the reply.
    Are you saying that i have to configure the data source authentication to the backend DB2 using the JAAS-J2C? Correct me if i am mistaken. I guess i am unable to do so as the application server setup only contains one data source, and the server hosted a number of applications. Every applications has their own JDBC username and password supply to the data source (the ID supplied at the DB2 side will decide which resource can access) and thus, i have to supply the username and password at runtime. Talked to the server guy and seems that it is not feasible to have seperate datasource for each applications as considered to the volume of applications hosted inside the server.
    Any suggestion?

  • How can we get requester's user id using java code

    Hi,
    How can we get requester's user id using java code?
    eg: If i had logged in as xelsysadm and request a resource for user uid101 on the userid field it should display uid101 and not xelsysadm.
    also,
    I have a resoure "A" which on revoking should also revoke resources B and C. How can it be done. Resource A, B, and C are 3 different resource objects.
    ==Thanks,
    doki

    Ok, so there is a way, but it's not available during submission. You can use the findRequests api. From the result set, get the "Requests.Consolidated Data Value" value. In this information, you will get an xml formatted data. It provides the list of users on the request on the left side after submission. After the request is completed, this value is available. Upon completion, you could get the request information, get this value, and parse the information for user ids.
    In the same adapter, use the following API:
    formIntf.setObjectFormData(objInstanceKey, formHash)
    The formHash is a hashtable containing the field name on your object form, and the values you wish to populate it with. You could create a textarea box on your object form and populate the userids for who the request is for.
    However, this makes absolutely 0 sense. When you get a request, the list of userids are listed right there on the request.
    -Kevin

  • How to send sms to mobile from tomcatserver using java code?

    Hi,
    Could you please let me know that,
    How to send sms to mobile from tomcatserver using java code? Please provide the code snippet.
    Thanks in advance.

    Yes, but something needs to send that message. You can't just take an arbitrary computer and send an SMS, it does not have the hardware to do that.
    So either you have a mobile through which you do that or more likely - you use some sort of online service to do it. Whatever choice you make will determine what code you will have to write to get it done. Nobody is going to deliver the code to you, that's your job. It is also your job to figure out what service you are going to use.

  • How to change the properties of individulal elements in an array?

    Hi all,
    I have an array (size is 25) of string and I want to disable and grayout half of them. But how do I do it? How do I change the properties of individual elements in an array? I have tried to use some of the examples given in the discussion forums, but it didint work for the task mentioned above. Anybody would be able to help me with a suitable example that can be specifically used for disable or enable the individual array  elements?
    Dev

    Telemaque wrote:
    The user will see the first half of the string elements filled-in and the lower half grayed-out (to be filled in later).  Make a test VI, play around.
    ... except that all elements "greyed out" with this method contain the default string for the array element (blank by default, but changeable). There is no way to have meaningful, unique text in the greyed out elements.
    I would suggest to use a listbox as control/indicator. Here elements can easily be disabled programmatically.
    LabVIEW Champion . Do more with less code and in less time .

  • How to change the password of a schema using Oracle SQL Developer

    Hi need to change the password of a schema using Oracle SQL Developer how do i do it?

    Hi
    alter user username identified by password

  • How to change the icon for 'windows group' in Java 1.6 [Windows XP] ?

    Hello,
    I was wondering if there is a possibility to change the icon for 'windows group' in Java 1.6...
    I'm using Windows XP SP2. Now the windows from my Java 1.6 application are grouped with the standard Sun icon [screen below] on the group.
    http://img382.imageshack.us/img382/8995/iconbl1.png
    I would like to change the icon for my own. Is there a way to do that ?
    Please help.

    Whichever icon I use for the main frame (I tried few), after grouping the main frame and other sub-frames the icon is changed to standard 'Java Sun' icon as you can see in the screenshot from my first post. The problem occurs only when frames are grouped, when the are separated in the task bar their titles and icons are ok...
    So how can I change the icon/title for the group only (for Java 1.6 in Windows XP) ?

  • How to change the port number for deployment in JAVA Studio Enterprise 8?

    Hi!
    Yesterday i downloaded this new sun java studio enterprise and found it mind blowing.
    Now i find that all my previous applications which were running on port 8080 can't be run on sun java studio enterprise(sjse) 8.
    Can anyone tell me how to change the port number on this software so i won't have to edit all my applications?

    http://docs.sun.com/source/819-0080/install.html
    In the Admin Configuration page (or at the command line), enter the following:
    Admin User Name�Name of the user who administers the server
    Password�Admin user�s password to access the Admin Server (8-character minimum)
    Admin Port�Administration port number for initial server instance
    HTTP Port�Port number to access the default server instance
    HTTPS Port�Secure port number to access the default server instance

  • How to launch Jar file in Mac Os using java code??

    can anyone tell me how can i launch another jar file in my apllication using java code.

    define "launch".
    - You want to run a new java program in a separate process? (see Runtime.exec())
    - You want to run a method in a specific class in the jar? (add jar to application classpath and then simply instantiate the class and call the method)

  • How to compare two huge xml files(50MB+) using Java Code

    I want to compare two huge xml files using java code and need to find the difference of those xml files
    is there any API for that

    You should find third party API

  • How to change the properties of the local area connection

    Try to make change in the properties of the local area connection, i.e.  click Start --> Control panel --> Network Connection --> Local Area Connection --> properties. Then select Internet Protocal(TCP/IP), click on the Properties. Normally, the PC is set at Obtain an IP address automatically. Now need to change to Use the following IP address, then enter the IP address, Default gateway address. after that, click OK.
    I am wondering, is Labview could do the setup as described? Once all done, is it possible to change the TCP/IP setting back to "Obtain an IP address automatically"?
    Thanks,
    Test

    Thanks smercurio_fc.
    I tried but not working. The way I try to do is connnecting two PCs directly through Ethernet cable. Then change the IP addresses as mentioned, after that ping another PC. If done manully, working. 
    After run the program you mentioned in your email, I check the "ipconfig /all" in the DOS window, it is still the old IP address. If changed manually, check ipconfig in the DOS window, it is changed.
    Any thoughts?
    Thanks,

  • How to change the URL of a URL-iView over Code ?

    Hi all,
    i am getting started with the Portal-Application-Developement and want to change the URL of an URL-iView on runtime with java-code.
    i have read the context and can get the Property url with this statement.
    endContext.getProfile().getProperty("url")
    But if i change this property, nothing is done.
    endContext.getProfile().setProperty("url", "http://www.yahoo.com");
    Where is my fault.
    Thanks for help.
    Regards Jürgen

    Hi,
    the context is of Type IPortalComponentContext.
    I cant find no method getParameter() at the context or the profile.
    The methods to read the properties of the URL-iView are
    context.getProfile().getProperty("url")
    context.getProfile().getAttributeValue("url")
    But if i want to set (change) this attribute, nothing is done.
    Regards Jürgen

  • How to change the Color of a string using swings/awt concept.

    Hi friends,
    How can i change the Color of a string.
    For ex:
    If i have a string "Welcome to the Java World",I want one particular Color for the string "Welcome to the" and a different Color to the "Java World" string.
    So please kindly help me out to resolve this issue.
    Thanking u in advance.

    "Text Component Features"
    http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html

Maybe you are looking for

  • Using Time Capsule and Mac Mini to replace a PC.

    I have 4 macs of various vintage in the house and 1 PC. I use the rather robust PC as the server for my itunes library. I'm fully uploaded to iCloud. I'd like to replace this final PC with a Mac Mini but none have a harddrive large enough to accomoda

  • Portal Run time error after changing the logon screen

    Hi all, I am running an EP7 SP08 and I try to change the logon screen as described on: http://help.sap.com/saphelp_nw2004s/helpdata/en/23/c0e240beb0702ae10000000a155106/frameset.htm I copied the 'com.sap.portal.runtime.logon.par.bak' file, renamed it

  • List of health plans

    Hi All, Where can I see all the health plans available in one Benefits Area, irrespective of employee qualified or not. Thanks in Advance.

  • Video Slowdown in Quicktime Pro 7.1.3

    Often when I playback any video in a Quicktime powered application, such as iMovie, or Quicktime Pro (7.1.3), the video, regardless of the screen size of resolution will slow way down, though the audio continues to run at normal speed. The video even

  • Work scheduling view should be preselected while creating semifinish matl.

    Dear Sirs, I have a specific requirement - that while creating  the material master through MM01 I want preselected work scheduling view. *Pls don't suggest user specific settings and screen sequence settings. Thank you, Anup.