Putting java together

hello people,
im need to java, i was wonderig if anyone could
help me out i have some jsp's java script, and ive never
messed with jave before how would i put these scripts together?

i need some help if someone is
willing to help me put the thing i have together on
my server ... its called webaim and Silicon Monkey
developed is and i dont have a clue about java cos i have
never messed with it.. and i really want this on my server.

Similar Messages

  • ADOBE DPS - MAGAZINE to TABLET in INDESIGN.....Need to brush up my tablet design in DPS (did it a few yearscback), can anyone recommend on the Adobe site tutorials that I can download, with artworks /buttons / actions and put it together?

    ....Need to brush up my tablet design in DPS (did it a few years back), can anyone recommend on the Adobe site tutorials that I can download, with artworks /buttons / actions and put it together?

    See this forum post here from Bob. Best place to learn DPS is on Adobe TV http://tv.adobe.com/product/digital-publishing-suite/
    If you are specifically looking to learn how to create interactive overlays, go here http://helpx.adobe.com/digital-publishing-suite/help/overview-interactive-overlays.html Watch the videos on "Folio Overlays panel, Part I & Part II"

  • Put java.sql.Date in correct format

    I need to put java.sql.Date in correct format to query an Oracle database.
    Here is my code:
            SimpleDateFormat formatter = new SimpleDateFormat("dd-MMM-yy");
            java.util.Date dateChosen = jXDatePicker1.getDate();
            String strDate = formatter.format(dateChosen);
            System.out.println("Date Chosen: " + strDate); // output is: 11-Feb-00
            java.util.Date parserDate = null;      
            try {
                parserDate = formatter.parse(strDate);
            } catch (ParseException re) {
                System.err.println("Exception caught: " + re.getMessage());
            // create java.sql.Date object
                java.sql.Date oraDate = new java.sql.Date(parserDate.getTime());
            System.out.println(oraDate);  // date is in this format: 2000-02-11
            System.out.println("formatted oraDate: " + formatter.format( oraDate ) ); // no good, stringIf I use formatter.format( oraDate ) I get the correct format (11-Feb-00) BUT it is no longer a sql Date, it is a String which can't be use.
    I have looked at the API and many other forum threads on this, any help would be greatly appreciated!

    In the class with the PreparedStatement, I pass the date like this:
    public class report extends javax.swing.JDialog {
         java.sql.Date newDate;
        public report(java.sql.Date passedOraDate, String passedtxtDate) {
            super();
            initComponents();
            setTitle("Report");
            setModal(true);
            newDate = passedOraDate;
            statusLabel.setText(passedtxtDate);
            System.out.println("passedtxtDate: " +passedtxtDate);       
            System.out.println("newDate: " +newDate);      
        }Here is the code that uses the actual PreparedStatement:
            try {
                // In my actual code I have all columns listed in query
                String query = "SELECT * FROM report WHERE repdate = ?";
                ps = conn.prepareStatement(query); // create a statement
                           ps.setDate(1, newDate); // set input parameter
                rs = ps.executeQuery();
                // extract data from the ResultSet
                ResultSetMetaData md = rs.getMetaData();
                int columns = md.getColumnCount();This is greatly edited to show relevant code!

  • Where to put java code - Best Practice

    Hello. I am working with the Jdeveloper 11.2.2. I am trying to figure out the best practice for where to put code. After reviewing http://docs.oracle.com/cd/E26098_01/web.1112/e16182.pdf it seemed like the application module was the preferred spot (although many of the examples in the pdf are in main methods). After coding a while though, I noticed that there were quite a few libraries imported, and wondered whether this would impact performance.
    I reviewed postings on the forum, especially Re: Access service method (client interface) programmatically . This link mentions accessing code from a backing bean -- and the gist of the recommendations seems to be to use the data control to drag it to the JSF, or use the bindings to access code.
    My interest lies in where to put java code in the first place; In the View Object, Entity Object, and Am object, backing bean.....other?
    I can outline several best guesses about where to put code and the pros and cons:
    1. In the application module
    Pros: Centralized location for code makes development and support more simple as there are not multiple access points. Much like a data control centralizes services, the application module can act as a conduit for different pieces of code you have in objects in your model.
    Cons: Everything in one place means the application module becomes bloated. I am not sure how memory works in java -- if the app module has tons of different libraries are they all called when even a simple query re-execute method is called? Memory hog?
    2. Write code in the objects it affects. If you are writing code that accesses a view object, write it in a view object. Then make it visible to the client.
    pros: The code is accessed via fewer conduits (for example, I would expect that if you call the application module from a JSF backing bean, then the application module calls the view object, you have three different pieces of code --
    conts: The code gets spread out, harder to locate etc.
    I would greatly appreciate your thoughts on the matter.
    Regards,
    Stuart
    Edited by: Stuart Fleming on May 20, 2012 5:25 AM
    Edited by: Stuart Fleming on May 20, 2012 5:27 AM

    First point here is when you say "where to put the java code" and you're referring to ADF BC, the point is you put "business logic java code" in the ADF Business Components. It's fine of course to have Java code in the ViewController layer that deals with the UI layer. Just don't put business logic in the UI layer, and don't put UI logic in the model layer. In your 2 examples you seem to be considering the ADF BC layer only, so I'll assume you mean business logic java code only.
    Meanwhile I'm not keen on the term best practice as people follow best practices without thinking, typically best practices come with conditions and people forget to apply them. Luckily you're not doing that here as you've thought through the pros and cons of each (nice work).
    Anyway, back on topic and off my soap box, as for where to put your code, my thoughts:
    1) If you only have 1 or 2 methods put it in the AppModuleImpl
    2) If you have hundreds of methods, or there's a chance #1 above will morph into #2, split the code up between the AppModuleImpl, ViewImpl and ViewRowImpls. Why? Because your AM will become overloaded with hundreds of methods making it unreadable. Instead put the code where it should logically go. Methods that work on a specific VO row go into the associated ViewRowImpl, methods that work across rows in a VO go into the ViewImpl, and methods that work across VOs in the associated AppModuleImpl.
    To be honest which you ever option you choose, one thing I do recommend as a best practice is be consistent and document the standard so your other programmers know.
    Btw there isn't an issue about loading lots of libraries/imports into a class, it has no runtime cost. However if your methods require lots of class variables, then yes this will have a memory cost.
    On a side note if you're interested in more ideas around how to build ADF apps correctly think about joining the "ADF EMG", a free online forum which discusses ADF architecture, best practices (cough), deployment architectures and more.
    Regards,
    CM.

  • I have two accounts how do I put them together?

    I have two accounts how can i put them together so I have only one?

    Currently, it's not possible. All purchases are tied to eack individual account.

  • How to put website together?

    I have designed a pretty basic website design and usually just put it together in softwae my webhost had but it is no onger available and I'm wondering how i would put all this together to host.
    The Layout Goes This Way
    Home Page          - - - - -          Home Page
                                      Photo Page - - - - -           Portrait Page
                                                        - - - - -           Model Page
                                                        - - - - -      Wedding Page
                                                        - - - - -      Event Page
                                                        - - - - -      Sports Page
                                                        - - - - -      Product Page
                                      Video Page
                                      Design Page
                                      Info Page
                                      Blog Page
                                      Contact Page
    Some Pics of layout:
    HOME PAGE                                                                                                     PHOTO PAGE(LIST FOR DIFFERENT PHOTO PAGES OPEN)
    Model Photo Page
    From there with Photo page would just have horizontal scroll to view all images and for Design and Video would just have a Vertical Scroll.
    I realize this is probably really basic but I don't have hours of time to actually find a tuturiol on this so if you could help and message me or point me in a direction for tuturiol on what I'm looking for that would be great!
    Thanks,
    Stew

    Pointing you to tutorials that discuss HTML & it's relationship with CSS won't help you much because you won't understand a word of it.  If you don't have the discipline & time to learn code and web design basics first, Dreamweaver is not the best tool for you.
    As Curtis said, you should probably hire a professional web developer to build your site so you can concentrate on what you do best. 
    If that's not an option.  Then you'll be happier with a consumer-level product such  as Adobe MUSE (beta code name) or SiteGrinder .  The code isn't terrific but results are  adequate for amateurs and hobbyists who don't need a professionally crafted web site.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Cracked my, tried put back together now wont turn on:(:(

    Cracked my screen, tried fixing it but ordered the glass w/o a LCD screen, put back together now wont turn on:(:(. What can I do??

    Order the correct parts and attempt the repair again.
    If you are unable to repair it yourself you will need to take it to a third party repair shop.
    Neither Apple nor an Apple authorised dealer will help as you have dismantled the iPhone yourself.  In the unlikely event they do help they will charge you for the full repair cost.  A third party repairer will be considerably cheaper, assuming you have not damaged it beyond repair.

  • I have 4 diffrent color puzzle pieces and I want to put them together in one design how would I do it?

    I have 4 different color puzzle pieces and I want to put them together in one design how would I do it?

    More info please.
    Do you have the 4 puzzle pieces in 4 separate files? If that is the case...
    1. Create a blank canvas large enough to fit the completed puzzle.
    2. Open one of the piece files.
    3. Select just the piece (minus the background).
    4. Copy the selection to the clipboard (Edit > Copy).
    5. Activate the canvas and paste from the clipboard (Edit > Paste). The piece will be placed on a new layer with transparent background.
    6. Do the same with the other pieces.
    7. Now you can rotate/move the pieces as necessary to fit them together.
    If the 4 pieces originally are in the same file you can do similar: select each piece and copy/paste, etc.
    If this is not your scenario please clarify.

  • Putting Java Applets in Cell in Report

    I am in a small biotech and am trying to put together a chemi-bioinformatics application with HTMLDB. I want to have chemical structures (2D & 3D) show up in reports in the same row with the data associated with that chemical (e.g. properties, assay results, etc.)
    I have found several Java applets that work well. These are uploaded along with the chemical structure files (as static files)and referenced using #WORKSPACE_IMAGES# in the path in the HTML/Javascript.
    What I would like to do is to have the structural info (essentially it is formated alphanumeric text) in a table linked to the appropriate chemical id and associated data.
    This will be displayed as a report with the first cell of each row containing the applet (with a reference to read in the structural info cell on the same row).
    How can I embed the applet into the first cell of each row on the report?
    Any suggestions will be greatly appreciated!
    -Dave Hecht

    our oracle support analyst was checking around internally re your issue, and tipped your hand a little by saying you're trying to have your #MOLFILE# column render as a textarea. as you've probably found, those "Updateable Column Attributes" are ignored when you specify an HTML Expression. since you would still like to have your data render as updatable while applying some of that html expression formatting, consider manually making your #MOLFILE# column updatable. if you do that, you'd have 100% control over the id values that you're having issues with. so if you had a report query like...
    select molfile from my_table
    ...and you indicated that you wanted molfile to render as a textarea, you'd find the generated html for each row to look something like this...
    <textarea name="f01" rows="15" cols="15" wrap="VIRTUAL" id="f01_000N">some molfile data here</textarea></td>
    ...where N is the associated #ROWNUM#. so if you're having a hard time referencing your values after rownum=9, as i'm gathering, you could consider manually naming your cells (though there's probably a more proper/fancy way to dynamically reference those higher rownum values, i just haven't looked for one). to do so you could turn off the "Updateable Column Attributes" by setting the "Display As" field in that region to "Display as Text (does not save state)". then drop something like...
    <textarea name="f01" rows="15" cols="15" wrap="VIRTUAL" id="f01_#ROWNUM#">#MOLFILE#</textarea></td>
    ...into the "HTML Expression" field for your molfile column. the part of this syntax that needs to conform to htmldb standards is the "name" value. this is somewhat explained in our tabular form how-to doc at...
    http://otn.oracle.com/products/database/htmldb/howtos/tabular_form.html#MANUAL
    ...but the form elements with names f01, f02, f03, etc will be accessible during the htmldb engine's accept processing via those pl/sql varchar arrays, htmldb_application.g_f01, htmldb_application.g_f02, htmldb_application.g_f03, etc. if you're using an htmldb wizard-generated tabular form instead of one you're creating yourself, just make sure your HTML Expression code provides the same html form element names that would have been used by the unaltered form.
    hope this helps,
    raj

  • Is it necessary to put .java file in 'bin' folder

    when ever i am creating a .java file i have to put that in bin folder then only javac compiling the file.
    otherwise its not compiling the file.
    how can i compile my java file by putting in any folder of mine?
    even if i am creating any folder inside the bin folder then also its not compiling my .java file.

    when ever i am creating a .java file i have to put
    that in bin folder then only javac compiling the
    file.That's a huge mistake. You should never do that.
    otherwise its not compiling the file.
    how can i compile my java file by putting in any
    folder of mine?Add the Java /bin directory to your PATH so the operating system can find the javac.exe and java.exe apps.
    even if i am creating any folder inside the bin
    folder then also its not compiling my .java file.Then you've got a bigger problem. You must have compiler errors that you need to read and fix in your source code.
    %

  • How to put java files in  *.jar

    I have 5 *.java files in 1 directory. I want to put those 5 classes in a *.jar file without using some special tool. How is the best way to do that.
    It is something with the command prompt?
    All help welcome.
    Grtz
    Lehtori

    What is a 'special' tool?
    If you want to write your own jar app then feel free. You should probably need to do some research on zip files.
    If not then I suggest you use "jar" which will put anything into a jar file that you want.

  • Where should I put Java Servlet Spec

    Dear all,
    I'm in the process of installing Oracle Application Express Listener where it needs Java Servlet Spec 2.3. I got the Spec downloaded, but I don't know where should I put it. How come it's hard to find documentation about this? Please help....
    Currently I'm using Linux 64.
    Best regards,
    Val

    Oh,
    haha.. I just realized that....
    About System Requirements
    Oracle Application Express Listener system and space requirements are as follows:
          Oracle Database (Enterprise Edition, Standard Edition or Standard Edition One) release 10.2.0.3 or higher, or Oracle Database 10g Release 2 Express Edition or higher.
          Java 6 Update 20 JDK or higher.
          Java Servlet Specification 2.3 or higher.
          Web browser requirements:
              o
                Microsoft Internet Explorer 8.0 or higher.
              o
                Mozilla Firefox 3.0 or higher.
              o
                Google Chrome 2.0 or higher.

  • How to put Java application in the MS. Windows System tray

    dear all,
    Is it possible to make a Java application communicate with the MS. Explorer and to put a Java application in the MS. Windows System tray
    Regards

    http://www.esus.com/docs/GetQuestionPage.jsp?uid=624
    or look for madcap on sourceforge

  • Compiling and putting java classes in database schema

    hi..good evening to all...
    I have total 7 java classes which i have to compile and put in the database schema. those 7 classes are interdependent on each other thats why there is a particular order of execution.
    i want to compile and put them in the schema thorugh the command line.
    i have tried doing this one by one by executing the following command in cmd...
    D:\>loadjava -u username/password@sid -v -resolve javaclassname.java
    then its working fine..
    But i have to do this in one time i.e i have to compile and put all the 7 classes in schema by a single command.
    Thats why i have put all the 7 classes one by one in the required order...save the file as 'java_sources.java' and then run the following command...
    D:\>loadjava -u username/password@sid -v -resolve java_sources.java
    but it is not working... :(
    please help...thanks in advance

    Hi,
    It is not required to load one by one class files into the schema. Can create a jar file for all the class files and load the jar file using the '-o' option in loadjava
    eg:
    loadjava -u username/password@sid -v -r -o jar_file_name.jarI hope you might use any IDE to develop the java class files. All the IDE have option to develop jar file if not get oracle JDeveloper for easy option.
    Check the version of jdk used in your oracle server and use appropiate version of Jdeveloepr and compile the classes.
    If your class files use any builtin library jar files those also need to be loaded.
    As thomaso said if pasted with errors can resovle easier
    NB:
    http://download.oracle.com/docs/cd/B10500_01/java.920/a96659/02_load.htm

  • Put java program on website

    I made a Java program I can compile and run. the questions and outputs are displayed with JOptionPane.showInput/showMessageDialog, so I'm not using System.out.prinln. How can I put this in a website. Is it possible to do something like : <java src="tool.java"> or <program src="tool.class"> or is there a other way. What is the most easy way ?? so I dont have to change much ?? Because it's quite a long program.

    Pppfftt ... thats to bad, because I read In Y.Daniel Liangs Java Programming how applets are made .. and its totaly different then the code I allready have :
    import javax.swing.JOptionPane;
    public class tool {
         public static void main(String[] args) {
             String aString = JOptionPane.showInputDialog(null,
             "Maak een keuze uit de volgende omrekeningen :\n1   Inch naar centimeter\n2   Centimeter naar inch\n3   Inch naar millimeter\n4   Millimeter naar inch\n5   Voet naar meter\n6   Meter naar voet\n7   Yard naar meter\n8   Meter naar yard\n9   Mijl naar kilometer\n10   Kilometer naar mijl\n\n0   Stop","Tools",JOptionPane.QUESTION_MESSAGE);
             int a = Integer.parseInt(aString);
             while (a != 0){               
              if (a == 1){
                   String bString = JOptionPane.showInputDialog(null,
                   "Hoeveel Inch ?","Tool - Inch naar centimeter",JOptionPane.QUESTION_MESSAGE);
                   double b = Double.parseDouble(bString);
                   double c = b * 2.54;
                   c = (int)(c * 100) / 100.0;
                   JOptionPane.showMessageDialog(null,
                   b+" Inch is "+c+" centimeter","Tool - Inch naar centimeter",JOptionPane.INFORMATION_MESSAGE);
              else if (a == 2){
                   String dString = JOptionPane.showInputDialog(null,
                   "Hoeveel Centimeter ?","Tool - Centimeter naar inch",JOptionPane.QUESTION_MESSAGE);
                   double d = Double.parseDouble(dString);
                   double e = d / 2.54;
                   e = (int)(e * 100) / 100.0;
                   JOptionPane.showMessageDialog(null,
                   d+" Centimeter is "+e+" inch","Tool - Centimeter naar inch",JOptionPane.INFORMATION_MESSAGE);
              else if (a == 3){
                   String fString = JOptionPane.showInputDialog(null,
                   "Hoeveel Inch ?","Tool - Inch naar millimeter",JOptionPane.QUESTION_MESSAGE);
                   double f = Double.parseDouble(fString);
                   double g = f * 25.40;
                   g = (int)(g * 100) / 100.0;
                   JOptionPane.showMessageDialog(null,
                   f+" Inch is "+g+" millimeter","Tool - Inch naar millimeter",JOptionPane.INFORMATION_MESSAGE);
              else if (a == 4){
                   String hString = JOptionPane.showInputDialog(null,
                   "Hoeveel Millimeter ?","Tool - Millemeter naar inch",JOptionPane.QUESTION_MESSAGE);
                   double h = Double.parseDouble(hString);
                   double i = h / 25.40;
                   i = (int)(i * 100) / 100.0;
                   JOptionPane.showMessageDialog(null,
                   h+" Millimeter is "+i+" inch","Tool - Millimeter naar inch",JOptionPane.INFORMATION_MESSAGE);
              else if (a == 5){
                   String jString = JOptionPane.showInputDialog(null,
                   "Hoeveel Voet ?","Tool - Voet naar meter",JOptionPane.QUESTION_MESSAGE);
                   double j = Double.parseDouble(jString);
                   double k = j * 0.31;
                   k = (int)(k * 100) / 100.0;
                   JOptionPane.showMessageDialog(null,
                   j+" Voet is "+k+" meter","Tool - Voet naar meter",JOptionPane.INFORMATION_MESSAGE);
              else if (a == 6){
                   String lString = JOptionPane.showInputDialog(null,
                   "Hoeveel Meter ?","Tool - Meter naar voet",JOptionPane.QUESTION_MESSAGE);
                   double l = Double.parseDouble(lString);
                   double m = l / 0.31;
                   m = (int)(m * 100) / 100.0;
                   JOptionPane.showMessageDialog(null,
                   l+" Meter is "+m+" voet","Tool - Meter naar voet",JOptionPane.INFORMATION_MESSAGE);
              else if (a == 7){
                   String nString = JOptionPane.showInputDialog(null,
                   "Hoeveel Yard ?","Tool - Yard naar meter",JOptionPane.QUESTION_MESSAGE);
                   double n = Double.parseDouble(nString);
                   double o = n * 0.91;
                   o = (int)(o * 100) / 100.0;
                   JOptionPane.showMessageDialog(null,
                   n+" Yard is "+o+" meter","Tool - Yard naar meter",JOptionPane.INFORMATION_MESSAGE);
              else if (a == 8){
                   String pString = JOptionPane.showInputDialog(null,
                   "Hoeveel Meter ?","Tool - Meter naar yard",JOptionPane.QUESTION_MESSAGE);
                   double p = Double.parseDouble(pString);
                   double q = p / 0.91;
                   q = (int)(q * 100) / 100.0;
                   JOptionPane.showMessageDialog(null,
                   p+" Meter is "+q+" yard","Tool - Meter naar yard",JOptionPane.INFORMATION_MESSAGE);
              else if (a == 9){
                   String rString = JOptionPane.showInputDialog(null,
                   "Hoeveel Mijl ?","Tool - Mijl naar Kilometer",JOptionPane.QUESTION_MESSAGE);
                   double r = Double.parseDouble(rString);
                   double s = r * 1.61;
                   r = (int)(r * 100) / 100.0;
                   JOptionPane.showMessageDialog(null,
                   r+" Mijl is "+s+" kilometer","Tool - Mijl naar Kilometer",JOptionPane.INFORMATION_MESSAGE);
              else if (a == 10){
                   String tString = JOptionPane.showInputDialog(null,
                   "Hoeveel Kilometer ?","Tool - Kilometer naar mijl",JOptionPane.QUESTION_MESSAGE);
                   double t = Double.parseDouble(tString);
                   double u = t / 1.61;
                   u = (int)(u * 100) / 100.0;
                   JOptionPane.showMessageDialog(null,
                   t+" Kilometer is "+u+" mijl","Tool - Kilometer naar mijl",JOptionPane.INFORMATION_MESSAGE);
              else {
                   JOptionPane.showMessageDialog(null,
                   a+" mag niet, voer een getal van 0 tot 10 in !","ERROR",JOptionPane.ERROR_MESSAGE);
              aString = JOptionPane.showInputDialog(null,
              "Maak een keuze uit de volgende omrekeningen :\n1   Inch naar centimeter\n2   Centimeter naar inch\n3   Inch naar millimeter\n4   Millimeter naar inch\n5   Voet naar meter\n6   Meter naar voet\n7   Yard naar meter\n8   Meter naar yard\n9   Mijl naar kilometer\n10   Kilometer naar mijl\n\n0   Stop","Tools",JOptionPane.QUESTION_MESSAGE);
              a = Integer.parseInt(aString);
              so ... thnx anyway ...

Maybe you are looking for

  • Can´t see my flash movie

    I´m working with authorware 7.02 and try to import a flash movie. This is published as flash 6 (actionscript 1) and contains a video (mpeg4) and control buttons for it (play, pause, change of speed,...). I tryed to import it with the flash asset xtra

  • Problem with remove task from schedule in PWA

    In our environment problem with remove task from schedule by PWA. Problem is only when I want to remove few task in the same time, but the operation one by one is correct. In my opinion problem is with calculation schedule after remove tasks, column

  • Convert date in modal binding table into dd.mm.yyyy format

    DEar ALL, i have a date in the modal table, this value is coming from r/3 in yyyymmdd format. But i need to change its format to dd.mm.yyyy. How can i achieve it..i don't want to create my own table...pls suggest Regds, Anup.

  • Program not working since 8.0.8 update

    The application has not worked (connected my mac to windows 7 PC) since the 8.0.8 update. 8.0.9 has since been released and has still not fixed the problem. Any suggestions as to what is wrong? I see this is a common issue with other users.

  • Reverse printing (unintended mirroring) on Brother MFCs

    In reply to several posts now archived, mirroring which occurs even when mirror printing is not selected, is cured on my MFC 420CN by: advanced options --> print settings, uncheck "bi-directional printing."