Properties

Hello folks
simple question (again)
I have just added Properties to my first App, and load/save them from/to disk.
All well there, but them Properties only come in one flavor, String.
And I'm so green here that I haven't got a clue how to extract an int from a String.
Like I would do in C:
int i = atoi("MyStyring");
In JAVA ??
May I say that I expect a really quick answer?
No, just kiddin'!
What I wanna say that I really do appreciate this.here.community.!
Comin from C, I'm finding out a lot of problems have been sold languagewise.
-The Structured Structures- Powerfull stuff, drool!
Platform independed. Yes!
Neat looking Gui.
No preprocessor statements.
(don't know whether I like THAT though..)
Open source.
And, above all, no MS!
(yes, after all these years I've become pretty 'pre'judiced)!
(Are they really going to spoil the party?)
And a very helpfull community too.
I posted 2 questions this week and had a sensible answer to both of them within half an hour.
I couldn't refrain from following some of the spicier forum trails also.
Quite entertaining!
And for you guys who are still having it out who rules, C++ or JAVA, well, I like this JAVA but that don't mean I don't drink beer anymore!
Sorry for blabbering on a bit...
l_e_e.

Yea, like if someone decided a float would look nicer, it wouldnt obviosly be an Integer anymore, so maybe you could add some checking of the property before you use it ;)

Similar Messages

  • How do I add multiple scripts from search engines to my meta tag properties?

    I currently have copied the goolge script for website varification and analytics, etc and pasted it into my meta tag properties dialog box. There is no problem as far as Google varifying the page. However, I would like to copy Bing's search engine script into my meta tag in addition to Googles script. How do I go about doing this? Do I hit the return on my keyboard under the ending of Googles script, then paste in the Bing script?
    The the last part of the Google script ending in this:
    </script>
    (paste new script from Bing here?)
    Will this cancel out each other and cause problems?
    Can someone walk me through this process, because Bing's search engine will not varify my site through two of the three other methods.
    Ben

    Adding a script after the closure of previous script is the way to go i.e. right after the </script> tag.
    So it should look something like below:
    <script>
    Google's script
    </script>
    <script>
    Bing's script
    </script>
    Cannot comment on one interfering with the other since it really depends on what exact code is there in the scripts. Google and Bing help resources will be able to help more with this.
    Thanks,
    Vikas

  • Error while accessing secure store: File "SecStore.properties" does not exi

    Hi ,
    I have a java desktop application, and i am trying to get a connection from a datasource deployed on one SAP AS Java, I can get the datasource succsfullly but when i try to get a connection from the DS, it throughs this exception, I put the secstore..properties file in the classpath even after that it is not happy,
    any solution/hint/light please!!!!
    com.sap.sql.log.OpenSQLException: Error while accessing secure store: File "SecStore.properties" does not exist although it should..
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:106)
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:145)
         at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:226)
         at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:197)
         at com.sap.customcode.ConflictingActionFixture.(ConflictingActionFixture.java:53)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at fit.FixtureClass.newInstance(Unknown Source)
         at fit.FixtureLoader.instantiateFixture(Unknown Source)
         at fit.FixtureLoader.instantiateFirstValidFixtureClass(Unknown Source)
         at fit.FixtureLoader.disgraceThenLoad(Unknown Source)
         at fit.Fixture.loadFixture(Unknown Source)
         at fit.Fixture.getLinkedFixtureWithArgs(Unknown Source)
         at fit.Fixture.doTables(Unknown Source)
         at fit.FitServer.process(Unknown Source)
         at fit.FitServer.run(Unknown Source)
         at fit.FitServer.main(Unknown Source)
    Caused by: com.sap.security.core.server.secstorefs.FileMissingException: File "SecStore.properties" does not exist although it should.
         at com.sap.security.core.server.secstorefs.StorageHandler.openExistingStore(StorageHandler.java:372)
         at com.sap.security.core.server.secstorefs.SecStoreFS.openExistingStore(SecStoreFS.java:1946)
         at com.sap.sql.connect.OpenSQLConnectInfo.getStore(OpenSQLConnectInfo.java:802)
         at com.sap.sql.connect.OpenSQLConnectInfo.lookup(OpenSQLConnectInfo.java:783)
         at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:209)
         ... 18 more
    caused by

    the SecStore.key file was not there, I changed the passwd and checked the 'Encryption' on, after that my sever instance is not starting.
    Any idea?
    -Puneet

  • In Photoshop CC (2014), Hue/Saturation adjustment layer properties disappear

    I am running Photoshop CC (2014) under Windows 7 Professional.  The program is up to date.
    Today, while editing an 8-bit image, I added a Hue/Saturation adjustment layer.  Then, in the properties panel for this layer, with the on-image adjustment tool selected, I clicked a color in the image to get a range of colors whose saturation I wanted to adjust.  Next, using the saturation slider in the properties panel, I increased the saturation of this range of colors. Finally, I closed the properties panel by clicking on the double arrow in the upper right corner.
    Later, I wanted to modify this adjustment layer.  I double-clicked on the layer thumbnail to reopen the properties panel, and found that, although the previous increase in saturation was still operating, the saturation slider was back at its default position, and the range of colors that I had previously established was gone.  Thus, I could not make further adjustments to this range of colors.
    I then did some further experimentation:  I deleted the first Hue/Saturation adjustment layer, and created a new Hue/Saturation adjustment layer. I then again established a range of colors as above, again increased the saturation of these colors, and then again closed the properties panel by clicking on the double arrow in the upper right corner.  This time, however, when I wanted to try to modify this adjustment layer, instead of double-clicking on the layer thumbnail to reopen the properties panel, I right-clicked on the layer and then clicked on "Edit adjustment..."  This opened the properties panel, which, this time, correctly showed my original adjustments -- the saturation slider showed the positive adjustment that I had previously made, and the range of colors established earlier was still shown. But then, on a hunch, I added a Curves adjustment layer above the Hue/Saturation adjustment layer.  Now, when I again opened the properties panel of the Hue/Saturation adjustment layer (by right-clicking on the layer and then clicking on "Edit adjustment..."), my previous settings were gone -- the saturation slider was at its default position and the range of colors was gone!  (But the increase in saturation was still operating.)
    Thus, it appears that there is a bug in the functioning of the properties panel of the Hue/Saturation layer: In short, once you have added a further adjustment layer, you can't then go back and make changes to the properties of the Hue/Saturation layer.  I would be interested to hear if others have noticed this.  Also, is Adobe planning to address this?

    OK, I am not entirely sure I have understood your post completely, but when you edit a colour range with a Hue/Sat layer, and click off and back on again, it will default to showing the RGB values, which you may not have made any adjustment to.  If you pick the previous colour from the image, or a similar colour, it _will_ show you the adjustments.  So long as your picked colour is contained within the range of the previous adjustment.
    Ypu could also use the RGB drop down (actually they call it Master nowadays), and chose the colour that is closest to your previously picked colour.  I expect you are away that you can edit the colour range being operated on by dragging the four sliders on the two colour bars at the bottom of the Properties panel.
    Does that make sense, or am I going in the wrong direction?

  • Program error when opening layer properties

    Hi! I have a really difficult problem in Photoshop. Whenever I try to open the layer properties I get the error message "Could not complete your request because of a program error." I tried to fix it but I really don't know what to do. I am working on a huge project and I need this fixed as soon as possible. Thanks!

    Please read this and proceed accordingly:
    http://forums.adobe.com/thread/419981?tstart=0
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html

  • ADF Custom properties overlay

    Hi all
    I want to put another one data in the same row in view mode in priview link http://tinypic.com/r/10e22wn/6 can see that in Edit form are showing both (Code & Date fields), but on View Form are only date in Custom properties i tried to RoDisplay: IllnessDate ,Code but then in view form showed only Code
    Maybe someone can give some tips about overlay or how i can put the Code into view form in the same row
    Jdeveloper-11.1.1.6.0
    ADF Business Components     11.1.1.61.92
    Thanks ! !
    ID
    Edited by: 1D10T on Nov 7, 2012 4:47 AM

    Sucess
    <CustomProperties>
    <Property
    Name="ShowCodeInRO"
    Value="true"/>
    </CustomProperties>
    Maybe somewhere are some list with all custom Properties ?

  • File Properties: Document Kind... Where Does it Come From?

    In Bridge's metadata subsection "File Properties", what exactly
    is "Document Kind"? Is it synonymous with the file's mime type?
    I've read through Adobe's XMP specification document (http://partners.adobe.com/public/developer/xmp/sdk/index.html) and I've seen many of Adobe's XMP schemas and data elements defined there, but I can't find where "Document Kind" is defined.
    The closest I come is page 39 where the XMP specification notes that the dublin core schema has a property called "format" with a value of "MIMEType". Is "dc:format" synonymous with "file properties: document kind"?
    Thanks for any help.

    dont mind but please tell me how do u communicate with computer ports...
    u can mail any material at [email protected]
    thanks

  • Error reading properties file upon deployment

    hi. i'm still relatively new with regards to the Java programming language. in any case... i am developing a simple project wherein the application has to make a database connection to a server. the application is finished already however.. i am having problems deploying it.
    my project has a "resources" package containing the file "config.properties" which contains various information (connection details among others). correct me if im doing something wrong, but in deploying in, i copied the "dist" folder of my compiled code and then tried to run the java exe independently which resulted in an error. i already tried copying the "config.properties" file to the dist folder and even creating a "resources\config.properties" file but it still results in an error. could you please help me figure out how to deploy the application with the properties file. the code i used in referencing my .properties file is as follows:
    Properties configFile = new Properties();
                configFile.load(this.getClass().getClassLoader().getResourceAsStream("Resources\\config.properties"));
                String username = configFile.getProperty("username");
                String password = configFile.getProperty("password");
                String url = configFile.getProperty("url");
                String dbtype = configFile.getProperty("dbtype");
                Class.forName(dbtype);
                conn = DriverManager.getConnection(url, username, password); thanks in advance. ^^

    thank for the help mangst. i guess the IO approach is also applicable ^^; i changed my code to:
    configFile.load( new FileInputStream( ".\\resources\\config.properties" ) );but i had a little trouble in debugging it since it starts the file search from the main project directory. however it works fine upon deployment. ^^; thanks again.
    Edited by: xnofate on Sep 23, 2008 6:21 PM

  • Error reading Properties file

    I have a main method which i am using to call a servlet located in the same Development Component. Until recently i had the servlet location hard coded and it was working without issues. Now i decided to make the location configurable. For this i created an sap.application.global.properties file in the EAR DC which contains the WAR of this DC.
    The contents of the above file are as follows:
    SAP application properties
    SERVLET.LOCATION=http://<server-name>/ControllerServlet/servlet/com.nike.xapps.eqptsp.swem.controller.ControllerServlet
    The code i am using in the main method to call this properties file and access the property is as follows:
    Context ctx = new InitialContext();
    ApplicationConfigHandlerFactory cfgHdlr = (ApplicationConfigHandlerFactory)ctx.lookup("ApplicationConfiguration");          
    Properties props = cfgHdlr.getApplicationProperties();
    String servlet = props.getProperty("SERVLET.LOCATION");
    contained in a try...catch block.
    On dubugging i get a NoInitialContextException repeatedly in the statement where the lookup is performed.
    These are all the additions i have made for reading this properties file. Does anyone know if there is anything more that needs to be done for this to work.
    Thanks,
    Murtaza.

    thank for the help mangst. i guess the IO approach is also applicable ^^; i changed my code to:
    configFile.load( new FileInputStream( ".\\resources\\config.properties" ) );but i had a little trouble in debugging it since it starts the file search from the main project directory. however it works fine upon deployment. ^^; thanks again.
    Edited by: xnofate on Sep 23, 2008 6:21 PM

  • KM Task Scheduler: How to create custom/editable properties?

    Dear All,
    I created a KM Scheduler Task using the NDWS Wizard.
    The application was successfully deployed and the task runs fine. However, I would like to define some custom properties that could be edited by using the portal, like the standard ones such as Priority, CM Systems, etc.
    Is that possible?
    I already tried to add it in the portalapp.xml, and also in the auto generated files that are in data and meta folders (..co.xml), but the new properties have not appeared in the screen.
    Thanks in advance,
    Marco

    Hi Romano,
    Thanks for the input.
    Do you know in which of the .co.xml files should be added? There is one in "data" and another in "meta" folders.
    The one in "data" folder (actually in one of the subfolders of "data folder") has the following content:
    <?xml version="1.0"  encoding="UTF-8" ?>
    <Configurable configclass="domain.task">
    <property name="name" value="domain.task" />
    <property name="active" value="true" />
    <property name="description" value="Task Test" />
    </Configurable>
    I added in this file a new property but no result.
    The one in meta folder (also in a subfolder of it) has the following:
    <ConfigClass name="domain.task"  extends="SchedulerTask">
    <attribute name="class" type="class" constant="domain.task"/>
    </ConfigClass>
    In this one when I tried to add a new property the task simple does not show, maybe I am not using the correct syntax.
    Do you know in which of these files I should put the custom property and using which syntax?
    Thanks in advance,
    Marco

  • KM Scheduler Service Properties

    Hello experts. I am trying to build a scheduler service in KM that runs an RFC, retrieves some data and stores it into KM once a day. To do this, I tried starting with JCA but that did not work so I ended up using the IConnectionFactory framework and it does work. However, in using that, I have to put the SAP system values and the User ID/Password in the connection properties. I do not want to put this in the code so I wanted to create properties exposed in the System Config -> Knowledge Management -> Content Management -> Global Services -> Scheduler Tasks -> My Scheduler Service. That way, I can maintain those properties there and use them in my code. However, since I do not have experience with the Scheduler Service, I do not know how to expose and read those properties. In a regular component, I would put it in portalapp.xml but it does not seem to work for this one. So, could someone guide me on where to put those properties and how as well as the Java code to read them in at runtime.
    Would really appreciate any help.

    Hi
    Did you find a solution fo this problem?
    Florin

  • Where do I read in the documentation the list of the system properties?

    Yep. Sounds stupid. But it's true. I read in all these forums where and how to set the truststore and so on but it would be beautiful to understand it my own.
    1. First I read setting the -Djavax.net.ssl.trustStore in the VM arguments.
    2. Then I find out the the -D is just for setting something like a static property.
    3. Next I want to read about the system properties. Who, what and where the Java tries to get this system property. I do not find it.
    What I find is great help in these forums and solving this kind of problems seems easy... I googled and the only place I found info about this is in a boulder.ibm.com site:
    http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzaha/sysprop2.htm
    http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzaha/rzahajssesysprops.htm
    I also found some info on a sun tutorial but not an official documentation. Do you know where to find it? It seems that my learning is always about finding the right place to find information and not guessing and trying.
    Thanks!!

    Thanks for your soon reply. Yeah, I found that but I really was expecting a more serious documentation.
    I have to admit that it is documented. Yes. But I didn't expect to find that in middle of a guide. But more in a reference or in a specification document. It's inside the "Customization" and in a table, yes... But it's a guide!!
    I like Java but something to worry about is the "too many - too less" documentation. Documentation is not clear enough and all the hundreds of options you have can make the programming with Java no good. It would sound like a good thing have a lot of choices and hundreds of places to look info for but I am a bit disappointed with that. It's not clear enough to find the right info.
    Anyway, thanks a lot for your help!! I will have to live with that.
    Guide: http://java.sun.com/j2se/1.5.0/docs/guide/security/jsse/JSSERefGuide.html

  • Chnages in the Graph properties are not getting reflected in the Browser.

    Hi,
    I have made some changes in the Graph properties in web template,
    Eg. : 1. change in color of a series for a columnar type graph
             2.change in the Text properties of Graph Series..
    When I save the template and try to run in the Browser, these changes are not getting reflected.
    Can anybody help me in this aspect ?
    Thanks.
    Regards.
    Amol Bade

    Same here :´(
    Thanks In Advance
    Juan

  • Returning only searchable properties

    I wanted to create an instance of the unified tree control such that I could present a collection of properties that are currently marked as being searchable.
    Is this possible with the unified tree control? When I try to create a "properties to be searched" tree in order to build a custom search query, I get back properties that are not necessarily marked as being searchable, causing a search query to bomb.
    I was using ClassID 36 (Property ObjectClass ID).
    I really don't want to have to reroll my own control if there's an easy way of filtering out those properties that aren't marked as searchable within the control.
    Thanks,
    Ari Braginsky
    ===
    <pt:standard.tree
    value="Select property"
    class="gContentSection"
    pt:windowname="myWindow"
    pt:windowfeatures="location=no,menubar=no,height=500,width=300"
    pt:RootID="1"
    pt:Multi="false"
    pt:SelectMd="2"
    pt:SubmitMd="2"
    pt:Submit="PickerSubmit"
    pt:Title="Property"
    pt:SubTitle="Pick a property"
    pt:Class="36"
    />

    My recommendation would be to subclass pt:standard.tree (com.plumtree.taglib.standard.TreeTag) and mix in this functionality. It shouldn't be quite as hard as rolling your own tag . . . .
    HTH,
    Chris Bucchere | bdg | [email protected] | http://www.bdg-online.com

  • Suggestion - adding properties like labels to .pdf files

    First of all, I'm not sure whether this is the right forum, but it is the most accurate I could find.
    I was wondering whether .pdf files could have the enhancement of custom properties. In Vista, it is possible to add such properties (as well as author, subject, etc.) to files such as Microsoft Office ones, .xps and .jpg files in the Details Pane of Windows Explorer. With .pdf files, however, it is not possible. If this was implemented, I'd be able to organize .pdf files on my computer much better as well, which would be a huge improvement in my opinion.
    Just a suggestion, please let me hear if it could be implemented as well as your own thoughts of this.

    Thanks for your reply.
    I'm really sorry but it is perhaps that I only have Adobe Reader that I cannot see properties in Windows Explorer. When going to the properties window itself, the values on the PDF tab are read-only. I assume that's the reason for me not being able to read or write them in Windows Explorer.

  • Empty XML properties

    In the weblogic-ra.xml that we are shipping with our RAR file, the
              <ra-link-ref> and <native-libdir> are just included for completeness, but
              don't include any values. They are being treated as non-null values in 6.1
              beta. I think there should be a test for both null and an empty-string,
              especially for the <ra-link-ref>, since an empty value will cause the RAR to
              be deployed, but no JNDI entry is created. These are just 2 examples that
              we have discovered, may exist for other cases.
              Eric
              

    Hi Detlev
    Thank you very much for your two answers. I will be looking into your answer regarding multivalued properties in the beginning of the next week.
    Regarding this question:
    Sorry, I wasnt precise at all. I am thinking of ComboBoxes when it comes to leaving the default value empty. When I use ComboBoxes, the form automatically selects the first value (and when I use Browsers, the input field stays empty as default).
    But I would also like to enable the user to select more than one value from ComboBoxes and Browsers. But that doesnt seem possible.

Maybe you are looking for