Learn the code on Siena

Hi there,
I am new in Project Siena. I need to start an app ASAP, a simple one, using Project siena, but I can´t find any information explaining the code. 
What is the name of the code which is used in behaviors, properties etc? (html, jquery, jscript)
Where can i find documentation explaining how to write simple sentences using the code? For isntance, i need to know how to hide an image after click (on select) a button.
Many thanks,
Marco

Hello Marco,
You can access all the documentation and visuals / function descriptions via the following page
http://www.microsoft.com/en-us/projectsiena/Documentation.aspx
As a starter and addressing your second question and to make that as "sexy" as possible
1. add an image control to the screen and select your image
2. click the image control and open the express view (bottom right) and look for the "Visible" property
3. change the value to
imgVisible
in order to declare a variable
4. add a button control to your screen
in the onSelect of the button add
If(imgVisible=true,UpdateContext({imgVisible:true});UpdateContext({imgVisible:false}),UpdateContext({imgVisible:false});UpdateContext({imgVisible:true}))
within the ifvalue and elsevalue the toggle is to be done twice as to make sure it is applied
5. in order to make sure your image is shown the moment you go on the screen, click somewhere in the screen and in the onVisible of the screen add the following
UpdateContext({imgVisible:false});UpdateContext({imgVisible:true})
This should answer your question.
Regards
StonyArc
http://www.stonyarc.com http://www.xboxlivenation.com Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This is beneficial to other community members
reading the thread.

Similar Messages

  • I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    That is because you don't have a web server configured and running to serve the html page. In order to see the page in a browser you need to access it using a url similar to http://localhost/~yourUserName if you are serving the page from your user account.
    Prior to Mountain Lion you could go into web sharing and turn on the web server. With Mountain Lion there is no option, other than using terminal, to turn on the web server. The web sharing menu item has been removed in Mountain Lion. Apache is still on your computer but it will take a little searching these forums or the Internet to find how to turn it on.
    If you want a graphic user interface to turn on/off the Apache server you could download and install a server application like xampp, http://www.apachefriends.org/en/xampp.html. I use this and it works well.

  • Learning to Code? What's the rush?

    I just read an interesting article titled: Do slower programmers get there faster?
    http://jaxenter.com/slow-programming-112923.html 
    At this point in time I'm not too fussed about getting anywhere specifically. I'm still on a learning journey. I've been learning to code for 2 years now and when I started I did some research on learning to become a good programmer. My take away
    was that it takes quite a while to get any good at it. I'm working on a 5 to 10 year learning path.
    So after 2 years of SB I've learnt the language and some good programming techniques so that I can program with it. Towards the end of that period I've finally began to gain a good understanding of what SB is good for, albeit this understanding
    is subjective but always open to new thoughts.
    My next language after SB was C# - a different language with a bigger library. It's gunna take me years to learn that one and how to use it. No biggie, i'll most likely be still alive in 5 years from now.
    Now I'm at the point where I want wrap up my learning with SB. I figure my own "show what you know" project might be the way to go here. This will require applying everything I've learnt about Programming so far. A holistic approach. I bet I learn
    lots in the process.
    Picking up new languages along the way.
    While doing my wrap up I've began to learn/pick up HTLM5, CSS3 and some server/client side scripting. While doing this I put down one language to focus on another, a learning technique I find helpful. My best solutions come to me when I'm doing something
    else (often when I'm not even in front of a computer).
    My thoughts on Slow Programming:
    I think Slow isn't the best word. I prefer to get as deep understanding into what I do as I can. This is so I can successfully do lots with what I understand. If this makes feel slower at times then that's ok. The very question addressed in the article
    was "do slower programmers get there faster?"
    Re-learning can be difficult and very time consuming and is often the goto after getting there lightning fast.
    But you still need write and finish programs. Sometimes they don't work - more learning required. I like it when something works! My own slowness comes from a desire to not just know that it works, but why it works. A deeper understanding.

    Hello Jibba Jibba,
    I agree and follow your learning philosophy: self taught learning. As Isaac Asimov once said, “Self-education is, I firmly believe, the only kind
    of education there is.” When I learn, I want to understand programming in depth and understand how everything works. Not just learn the skills, I'm trying to figure out how to enter the programming world as a professional. How do I make myself stand out? Will
    a college degree give me the technical, social, and practical skills to enter the work force? Most of all, I want to challenge myself and grow as a programmer. With each program I write, I try to pick up new techniques that can be applied in programming in
    general. At it's core, It's the reasoning skills and techniques gained that matter, not the syntax and countless jargon that surrounds programming. Most importantly, I want to become a problem solver and not a walking rule book.
    I started learning programming with small basic about six months ago. Initially, it was the most confusing task and I couldn't understand any of it. Programming required a whole new
    mind set, patience, and persistence. The first couple weeks I had to understand how programming worked and adapt to a “computational thinking” mindset. These last few months, I realized that I could learn the basis of programming with unconventional means.
    In other words, I may not have to rely heavily on college to pursue my career (or become educated). I respect college institutions and love to learn, but I realized that I could continue learning beyond school. I wanted to instilled this philosophy, life long
    learning, in my mind as a second nature. That got me thinking. What's the point of college? How can I duplicate it so I can teach myself but still get into the work force? What skills do employers look for? What are the traits and skills of a proficient programmer?
    The article you provided is very insightful and its contents is exactly what I seek. As a consequence, I wanted to approach my learning style in a more pragmatic style. Learning through extensive practicing but also challenging myself to learn something new
    and grow as an individual.
    On the contrary, self taught learning does lack social interaction. That's why, I must find people who share my goals and ambitions so I could
    learn to work in a team setting. Also, not just work with people to improve my skills but also meet people that work for a company so I could get connections. Get first hand advice from someone who has worked as a programmer professionally. What do companies
    look for in a programmer? What makes the difference between a good programmer and bad one? Can I get a part time/full time internship through this company? I want to get exposed to the work field as soon as I can. Learn to apply my skills on a professional
    level and gain practical skills. Sometimes it's not how well I know my craft but my personality as well that could propel me in the work force. Although, I may not have the resources I can get in a college, I could use the growing resources from the internet
    to move forward. I don't need to wait for college to start educating myself.
    Finally, life long perseverance is at the heart of learning and becoming successful, not financially so but
    rather as an individual. As far as I know, it's physically impossible to master one's craft. The craft is so long and life so short. Self teaching is part of the life of a computer programmer or, truly, in any profession. As technology advances, the demand
    for programmers with the latest skills is always in demand. It's a life long pursuit. Therefore, one should learn to love learning because one will have commit to life long learning to survive as a computer programmer.
    I want to start out as a Computer Programmer, move on to become an Applications Software Developer, and in
    my later years become an Indie Game Developer in Japan.
    What inspired you to learn programming? Do you, if at all, work with a group of programmers or people that have the same goals? How do you approach
    the social and resource limitations that comes with self taught learning? Could you elaborate on “show what you know project”? I'm coming close to dividing my time between using small basic and learning a new language, most likely C#, and welcome any project
    ideas.
    Disclaimer: I may have used computer programmer and software developer interchangeably so I apologize for any inconsistency, but I am aware they
    play different roles in the software development process. Computer programmer: writes code and software developer: plans, instruct programmers, and writes code. Sometimes, when a programmer gains enough experience they are promoted as developers. A quick word
    about college. I may still attend college and get a degree in the future but at the moment it doesn't agree well with my plans. I may mix it up by teaching myself and get certificates. There are several options. Everyone will approach their career pursuits
    a bit differently. What may work for me may not work for other people. It's good to explore all possible options. For some, college is the best option for them. Whichever way, one will need to be willing to learn and have plenty of self motivation.
    Here is an article that rhymes with your thinking.
    http://norvig.com/21-days.html
    Another article that is more loosely based on this discussion but nonetheless relates to programming and prompts some interesting points.
    http://www.motherjones.com/media/2014/06/computer-science-programming-code-diversity-sexism-education

  • How to connect my app interface with the code in flash builder?

    I'm a beginner and learning my way around actionscript,mxml and flash builder.So this may seem foolish but please bear with me,I'm creating a very simple ios app using flash builder,I have created a simple app interface (A background and a custom navigation bar)using photoshop for my app,now the question is how do i import it into flash builder so that i can connect it with the code i have written? or is there another simpler way to create a app interface using other products like fireworks or catalyst?
    In short, I want to know how is an app interface created(wt software) and how is it connected with its code using flash builder.Any help would be greatly appreciated, and tutorials would be swell
    Thanks!

    Can you use stage.width or stage.stageWidth?

  • Please check the code why it is not working

    I am a new java servlets and jsp learner. I am running below example of session in Tomcat and "AccessCount" supposed to be increased by one value whenever servelet is refereshed. But I am always getting 0 value even after refereshing it.
    I will appreciate your help.
    =======================================================
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.net.*;
    import java.util.*;
    /** Simple example of session tracking. See the shopping
    * cart example for a more detailed one.
    public class ShowSession extends HttpServlet {
    public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    String title = "Session Tracking Example";
    String heading;
    HttpSession session = request.getSession(true);
    // Use getAttribute instead of getValue in version 2.2.
    Integer accessCount = (Integer)session.getAttribute("accessCount");
    if (accessCount == null) {
    accessCount = new Integer(0);
    heading = "Welcome, Newcomer";
    } else {
    heading = "Welcome Back";
    accessCount = new Integer(accessCount.intValue() + 1);
    // Use setAttribute instead of putValue in version 2.2.
    session.setAttribute("accessCount", accessCount);
    out.println("<html><h1>" + title + "</h1>" +
    "<BODY BGCOLOR=\"#FDF5E6\">\n" +
    "<H1 ALIGN=\"CENTER\">" + heading + "</H1>\n" +
    "<H2>Information on Your Session:</H2>\n" +
    "<TABLE BORDER=1 ALIGN=\"CENTER\">\n" +
    "<TR BGCOLOR=\"#FFAD00\">\n" +
    " <TH>Info Type<TH>Value\n" +
    "<TR>\n" +
    " <TD>ID\n" +
    " <TD>" + session.getId() + "\n" +
    "<TR>\n" +
    " <TD>Creation Time\n" +
    " <TD>" +
    new Date(session.getCreationTime()) + "\n" +
    "<TR>\n" +
    " <TD>Time of Last Access\n" +
    " <TD>" +
    new Date(session.getLastAccessedTime()) + "\n" +
    "<TR>\n" +
    " <TD>Number of Previous Accesses\n" +
    " <TD>" + accessCount + "\n" +
    "</TABLE>\n" +
    "</BODY></HTML>");
    /** Handle GET and POST requests identically. */
    public void doPost(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    doGet(request, response);
    ========================================================

    Change the code
    HttpSession session =
    request.getSession(true);AS
    HttpSession session =
    request.getSession(false);If you pass "false", then the Session is not created.
    If you pass "true" the session is always created
    new.
    Thanks and regards,
    Pazhanikanthan. PI dont think that's correct -
    1. request.getSession(false) returns a Session object if one exists.
    2. request.getSession(true) creates a new Session object if it doesnt exist or returns the reference to the existing object if the request is part of an valid session.
    OP, check with default session-timeout values in web.xml
    Ram.

  • How to create an audit trail file and what is it ( pls see the code)

    All my System.out.println statements , should be printed in an audit file , instead of printing to a console .
    How and where in the program , i should create a file and how should i write System.out.println statements output to it .
    Pls help me with the code .
    //Start the main method
         public static void main(String[] args){
              if(!(args.length == 3 || args.length == 4))
                   System.out.println("Usage: java Load_data @baseyr @rateyr @caseID [@infile]");
                   System.exit(1);
              String baseYr = args[0];
              String rateYr = args[1];
              String param3 = args[2];
              System.out.println("The base year is :"+baseYr);
              System.out.println("The rate year is :"+rateYr);
              if(param3.compareToIgnoreCase("max") == 0)
                   caseID=25;
                   System.out.println("The CaseID begins at :"+caseID);
              else if(param3.compareToIgnoreCase("one") == 0)
                   System.out.println("Warning : I am assuming the CaseID as 1");
                   //caseID=1;
              inFile = (args.length == 4) ? args[3] : "C\\UDS_YYYY.txt";     
            System.out.println("The Input file we are using is :"+inFile);
              goodOutFile = "C:/Documents and Settings/Desktop/Program/GOOD_LOAD.txt";
              badOutFile = "C:/Documents and Settings/Desktop/Program/BAD_LOAD.txt";
              inFormat = "C:/Documents and Settings/Desktop/Program/FORMAT.csv";
    //Here I call the Load_data method.
              new Load_data();
              System.out.println("The number of records written to good O/P FIle :" +goodRecord);
              System.out.println("The number of records written to bad O/P FIle :" +badRecord);
              System.out.println("")
    }

    1sai wrote:
    However, a better choice would be to use log4j which support rolling log files and more control over what output goes where in what format.
    Can U pls explain this ,or where i can learn abt this .
    Thank UTry clicking on the link BigDaddyLoveHandles provided you in the previous reply.
    Your hands must get tired with your hiney sitting on them all day, huh?

  • Problem in Packages while compailing the code "bad class file"

    Hi,
    I wrote the code for encrypt the password in .java file and i used package also
    i'm importing that package and i'm compiling the .java file it throws the error like this.
    regi1.java:23: cannot access EncryptPassword
    bad class file: .\EncryptPassword.java
    file does not contain class EncryptPassword
    Please remove or make sure it appears in the correct subdirectory of the claspath
    EncryptPassword enc = new EncryptPassword();
                            ^
    1 error
    EncryptPassword.java
    package encrypt;
    import java.io.UnsupportedEncodingException;
    import java.security.MessageDigest;
    import java.security.NoSuchAlgorithmException;
    import sun.misc.BASE64Decoder;
    import sun.misc.BASE64Encoder;
    import sun.misc.CharacterEncoder;
    public class EncryptPassword  
         public EncryptPassword() { }
         public EncryptPassword instance;
         public String getEncrypt(String plaintext) throws Exception
         MessageDigest md = null;
         try
         md = MessageDigest.getInstance("SHA"); //step 2
         catch(NoSuchAlgorithmException e)
         throw new Exception(e.getMessage());
         try
         md.update(plaintext.getBytes("UTF-8")); //step 3
         catch(UnsupportedEncodingException e)
         throw new Exception(e.getMessage());
         byte raw[] = md.digest(); //step 4
         String hash = (new BASE64Encoder()).encode(raw); //step 5
         return hash; //step 6
         public EncryptPassword getInstance() //step 1
         if(instance == null)
         return new EncryptPassword();
         else
         return instance;
    }regi1.java
    import encrypt.*;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class regi1 extends HttpServlet
         public regi1(){     }
          public void service(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
            throws ServletException, IOException
            java.io.PrintWriter printwriter = httpservletresponse.getWriter();
            HttpSession httpsession = httpservletrequest.getSession(true);
            httpservletresponse.setContentType("text/html");
            try
            {     EncryptPassword enc = new EncryptPassword();
                   String Email = httpservletrequest.getParameter("email");
                   String Password = httpservletrequest.getParameter("password");
    *--- some code for database connection---*
    String insQry1 =  "INSERT INTO register (Email, Pass);
    pStmt.setString(1,Email);
    pStmt.setString(2,enc.getEncrypt(Password));     
              catch( Exception exception)
                   exception.printStackTrace();           
                   System.out.println(exception);
              httpservletrequest.getRequestDispatcher("./FileSubmit.jsp").forward(httpservletrequest,httpservletresponse);
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Multipost: http://forum.java.sun.com/thread.jspa?threadID=5225097&tstart=0
    Please continue the thread there and don't multipost!
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • How to learn the Business Process and how it is related to BI?

    Dear Experts,
    How to learn the Business Process? for example the business process from finance to sales. As I am more involved in technical development of BI; I dont know or having very hard time to understand what the business process. And how the Business Process is related to BI?
    I think if I don't understand the business process than it is very hard to satisfy the User requirements. If you have any documentation please feel free to forward it to [email protected]
    I wish you happy new year. Thank you in advance.
    Aslam.

    If only plan data entered, try to delete the planning data before delete the object and then re-create it again. Otherwise you may have to leave it as is and change the description for the usage by the different company code.

  • I'm trying to add the system date with a Label. What is wrong with the code

    import java.util.*;
    import javax.swing.*;
    public class CurrentDateApplet extends JApplet
         Calendar currentCalendar = Calendar.getInstance();
         JLabel dateLabel = new JLabel();
         JPanel mainPanel = new JPanel();
         int dayInteger = currentCalendar.get(Calendar.DATE);
         int monthInteger = currentCalendar.get(Calendar.MONTH)+1;
         int yearInteger = currentCalendar.get(Calendar.YEAR);
         public void init()
              mainPanel.add(dateLabel);
              setContentPane(mainPanel);
              dateLabel.append(currentCalendar.get(Calendar.HOUR) + currentCalendar.get
                        (Calendar.MINUTE);
    }

    As for what's wrong with the code, it would be easier if you said: it doesn't show the date (it does this instead), it doesn't compile (I get this message) etc.
    Anyway I'll assume you want to display the time in a label...
    dateLabel.append(currentCalendar.get(Calendar.HOUR) + currentCalendar.get
    (Calendar.MINUTE);This won't compile: the parentheses are mismatched, and there is simply no such thing as append(). So we could trydateLabel.setText("" + currentCalendar.get(Calendar.HOUR) + currentCalendar.get(Calendar.MINUTE));This wroks, but looks pretty nasty and it's not how you are supposed to format dates and times. Here's the unofficial party line, nicked from one of jverd's posts:
    Calculating Java dates: Take the time to learn how to create and use dates
    Formatting a Date Using a Custom Format
    Parsing a Date Using a Custom Format
    From those links you should be able to find those applicable to times like this: http://www.exampledepot.com/egs/java.text/FormatTime.html
    Using this approach you would end up with something like:import java.text.Format;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import javax.swing.JApplet;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    public class CurrentDateApplet extends JApplet
        private Date date;
        private JLabel timeLabel;
        private JPanel mainPanel;
        public void init()
            mainPanel = new JPanel();
            timeLabel = new JLabel();
            mainPanel.add(timeLabel);
            setContentPane(mainPanel);
            date = new Date();
            Format formatter = new SimpleDateFormat("HH:ss a");
            timeLabel.setText(formatter.format(date));
    }

  • What happened to the code reference panel from CS5?

    I have been watching a CS5 Flash ActionScript tutorial, but I am using Flash CC. In the tutorial, there is a code reference panel to the left of the actions panel that has a list of all the possible code pieces, and when hovering over any of them, it shows a tooltip describing the code piece. Did they remove this panel in later versions of Flash, and if so, is there any way to bring it back? It would be extremely useful as a tool to learn ActionScript.
    The following is a picture to show what I am referring to.

    There's a chance you might find it in the exchange but I believe ultimately the packaged documentation is no longer the desired route to obtain help.
    If you hit Help->Flash Help you'll be instantly directed online. I think that shows you that they want you to view the most up to date documentation for the product possible.
    While the methods/properties/etc are missing from the left menu, you can always contextually see them by default when you type a period next to an objects name. If I make a Sprite and type the name followed by a period I am greeted by a contextually specific list of properties and methods for the object I'm referring to:
    If I don't know what the property or method does, I can accept it, select it and hit F1 to be taken directly to the documentation for it:
    This shows the emphasis on using the online documentation.
    If you haven't already, check out these resources for learning ActionScript:
    http://tv.adobe.com/videos/actionscript/
    http://www.adobe.com/devnet/actionscript/learning.html

  • Trying to learn to code div tag so that i can make 3 columns

    Hello,
    I am trying to learn how to work with the code for div's in Dreamweaver.
    I have a id for the main container named wrapper that is 900px wide and I have 3 div's inside of it that are just long blocks of type . Each div (#history, #attitudes, #per) is 300px wide with the height falling to accommodate the type. I want then next to each other, and right now they are just one long column with the 3 sections..each have a different background color. Here is the code so far...I am trying to play with the float and positioning but nothing I do works.  In the End, it should just be 3 columns of type next to each other. Each column has one header tag for the topic name and the rest is just using the p body tag. can someone help me get the columns next to one another using the code?
    thanks!
    babs
    #wrapper{
    width:900;
              background-color:#CCCC66;
    #history{
              width:300px;
              height:80px;
              background-color:#FF9999;
    #attitudes{
              width:300px;
              height:80px;
              background-color:#ccFF99;
    #per {
              background-color:#FFFF99;
              width:300px;
              height:80px;
    Here is an image to see them on top of one another....I jusyt want them side by side.....

    Copy & paste this code into a new, blank document in code view.  Save and preview in browsers.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 document</title>
    <style>
    body {
        margin:0;
        padding:0;
        font-family:"Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
        font-size:16px;
    #wrapper {
    width: 900px;
    margin: 0 auto;
    background-color: #CCCC66;
    overflow: hidden;  /**float containment**/
    /**three columns**/
    #history, #attitudes, #per {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    float: left;
    width: 33.33%;
    min-height: 80px;
    padding:12px;
    #history { background-color: #FF9999; }
    #attitudes { background-color: #CCFF99; }
    #per { background-color: #FFFF99; }
    </style>
    </head>
    <body>
    <div id="wrapper">
    <div id="history">
    <h3>History</h3>
    <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae libero lacus, vel hendrerit nisi!
    Maecenas quis velit nisl, volutpat viverra felis.
    Vestibulum luctus mauris sed sem dapibus luctus.
    Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus. Aenean tristique enim ut ante dignissim. </p>
    </div>
    <div id="attitudes">
    <h3>Attitudes</h3>
    <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae libero lacus, vel hendrerit nisi!
    Maecenas quis velit nisl, volutpat viverra felis.
    Vestibulum luctus mauris sed sem dapibus luctus.
    Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus. Aenean tristique enim ut ante dignissim. </p>
    </div>
    <div id="per">
    <h3>Per</h3>
    <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae libero lacus, vel hendrerit nisi!
    Maecenas quis velit nisl, volutpat viverra felis.
    Vestibulum luctus mauris sed sem dapibus luctus.
    Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus. Aenean tristique enim ut ante dignissim. </p>
    </div>
    <!--end wrapper--></div>
    </body>
    </html>
    Nancy O.

  • Where's the *code* go?

    Just downloaded the 7.0.2.0 version of weblogic portal, went through
    their "Your first portal" pdf, and was wondering where the actual
    code goes.
    I'm coming from an IBM WebSphere background where I'm used to writing
    the doView(), doEdit() etc. methods in a class implementing
    PortletAdapter. The developer's guide (which I haven't read totally,
    yet), doesn't even seem to have any real java code in it.
    How do you write code for a portlet to, say, connect to a
    backend/datasource/etc. and Do Interesting Things (tm)?
    What I'm looking for more or less is some coding documentation. I did
    look at bea's e-docs site, but the pdf's there don't seem to be the
    ticket (or I missed one; entirely likely).
    Any direction welcome. A courtesy cc: to [email protected]
    would be most welcome too.
    Thanks

    BEA portal works totally different from WebSphere and Jetspeed.
    The rough equivalence of PortletAdapter in the BEA framework would
    be the "InputProcessor". Check out the BEA e-docs site for the
    Javadoc.
    However, to answer your more general question of "Do Interesting
    Things", you really need to look at both the code and the EBCC
    project of the sample portal that BEA provides you with. AFAIK
    there is not a "how-to" documentation or coding tutorial. Javadoc
    is available, but it's like trying to learn how to code Servlets
    by reading the Servlet Javadoc.
    If you are familiar with the struts framework, EBCC sort of
    defines the "forwards" from page-to-page/page-to-InputProcessor,
    and the InputProcessors are like the Action classes. The
    InputProcessor classes talk to your back-end, puts beans into
    the request/session, and the JSPs then use those beans to display
    in the portlet.
    Side point: I hope bea will have a way to migrate portals done
    in their proprietary API to the Portlet API once that gets approved
    ... though it's hard to see how it could be done.
    David Lu
    Senior Software Engineer
    eBuilt, Inc.
    Mike Campbell wrote:
    Just downloaded the 7.0.2.0 version of weblogic portal, went through
    their "Your first portal" pdf, and was wondering where the actual
    code goes.
    I'm coming from an IBM WebSphere background where I'm used to writing
    the doView(), doEdit() etc. methods in a class implementing
    PortletAdapter. The developer's guide (which I haven't read totally,
    yet), doesn't even seem to have any real java code in it.
    How do you write code for a portlet to, say, connect to a
    backend/datasource/etc. and Do Interesting Things (tm)?
    What I'm looking for more or less is some coding documentation. I did
    look at bea's e-docs site, but the pdf's there don't seem to be the
    ticket (or I missed one; entirely likely).
    Any direction welcome. A courtesy cc: to [email protected]
    would be most welcome too.
    Thanks

  • Plz help in the code

    I want to increase the number reduce the number specified in the textbox2 
    Dim ip1 As Integer = TextBox1.Text
    Dim ip2 As Integer = TextBox2.Text
    'Dim ip3 As Integer = TextBox1.Text
    'Dim ip4 As Integer = TextBox2.Text
    For i = ip1 To ip2
    ListBox1.Items.Add(i)
    next

    I don't know what "scan ip range" means. Also I haven't worked with IP addresses in a long time.
    So if you mean you want to get all IP addresses between 1.5.7.6 and 1.0.0.1 then do the match for that. Get the integer from 1.0.0.1 then get the integer for 1.5.7.6. Reduce the integer for 1.5.7.6 by one and get the IP address for that integer and so on
    until that integer equals the integer for 1.0.0.1. Unless that is not what you mean. And whatever "ip range" you come up with may contain invalid IP addresses since broadcast and network addresses may be included in the mix for all I know.
    La vida loca
    I want an example bro
    You want because that is simpler than learning through research.
    Also I am not your Bro. And I live in the desert now so I no longer hang out at the beach or windsurf so the word bro is unecessary as most people do not use it unless you are around a certain crowd which talks like they're hip or something. So don't call
    me bro.
    Here is an example.
    A ListBox can not apparently display all of the results without becoming unstable which I will not attempt to explain what occurs. You can try a ListBox if you want.
    Although with the previous code I provided you should have had the willpower and thoughtfulness to research on your own on how to use it rather than saying you want anybody else (specifically bro) to write the code for you. Which by doing so shows no effort
    on your part to learn. As if rather than writing code you are only capable of copying and pasting code and can not learn how code works in order to use it to perform what you want to do. So either you are attempting to program outside of your skillset range
    meaning you need to increase your scope of knowledge in various areas or perhaps you don't have the capability to program if you are unwilling to increase your scope of knowledge to raise your skillset to where it needs to be for what you want to program for.
    Also because of the time it takes this code to run for the two IP addresses you provided it would be a good idea to use threading to offload various code into a separate thread as this freezes the UI until the code ends after displaying the result.
    I will not do this for you.
    Option Strict On
    Imports System.Net
    Imports System.IO
    Imports System.Text
    Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Me.Location = New Point(CInt((Screen.PrimaryScreen.WorkingArea.Width / 2) - (Me.Width / 2)), CInt((Screen.PrimaryScreen.WorkingArea.Height / 2) - (Me.Height / 2)))
    Label1.Text = "Waiting"
    Label2.Text = "Waiting"
    End Sub
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    If ParseIP(TextBox1.Text) = True Then
    If ParseIP(TextBox1.Text) = True Then
    Label1.Text = "Waiting"
    Label2.Text = "Waiting"
    Dim SB As New StringBuilder
    Dim TBox1IPLong As Long = ConvertIPToLong(TextBox1.Text)
    Dim TBox2IPLong As Long = ConvertIPToLong(TextBox2.Text)
    If TBox1IPLong > TBox2IPLong Then
    Label1.Text = "Nr IP Addresses is " & (TBox1IPLong - TBox2IPLong).ToString & "."
    Label2.Text = "IP scan results for ip address" & _
    vbCrLf & TextBox1.Text & " to " & TextBox2.Text & "."
    TBox1IPLong -= 1
    Do Until TBox1IPLong = TBox2IPLong
    SB.Append(ConvertLongToIP(TBox1IPLong) & vbCrLf)
    TBox1IPLong -= 1
    Loop
    Else
    Label1.Text = "Nr IP Addresses is " & (TBox2IPLong - TBox1IPLong).ToString & "."
    Label2.Text = "IP scan results for ip address" & _
    vbCrLf & TextBox2.Text & " to " & TextBox1.Text & "."
    TBox2IPLong -= 1
    Do Until TBox2IPLong = TBox1IPLong
    SB.Append(ConvertLongToIP(TBox2IPLong) & vbCrLf)
    TBox2IPLong -= 1
    Loop
    End If
    RichTextBox1.Text = SB.ToString
    Else
    MessageBox.Show("TextBox2 contains invalid IP address. Try again.")
    Exit Sub
    End If
    Else
    MessageBox.Show("TextBox1 contains invalid IP address. Try again.")
    Exit Sub
    End If
    End Sub
    Private Function ParseIP(Item As String) As Boolean
    Dim TestIP As IPAddress
    Dim Result As Boolean = IPAddress.TryParse(Item, TestIP)
    Return Result
    End Function
    Private Function ConvertIPToLong(Item As String) As Long
    Dim BinaryOctet As String = ""
    Dim CompleteBinary As String = ""
    Dim ItemSplit() As String = Item.Split("."c)
    For i = 0 To ItemSplit.Count - 1
    BinaryOctet = Convert.ToString(CLng(ItemSplit(i)), 2)
    If BinaryOctet.Count < 8 Then
    Do Until BinaryOctet.Count = 8
    BinaryOctet = BinaryOctet.Insert(0, "0")
    Loop
    End If
    CompleteBinary &= BinaryOctet
    Next
    Dim Result As Long = Convert.ToInt64(CompleteBinary, 2)
    Return Result
    End Function
    Private Function ConvertLongToIP(Info As Long) As String
    Dim Temp As String = Convert.ToString(Info, 2)
    If Temp.Count <> 32 Then
    Do Until Temp.Count = 32
    Temp = Temp.Insert(0, "0")
    Loop
    End If
    Dim Result As String = CStr(CInt(Convert.ToInt32(Temp.Substring(0, 8), 2))) & "." & _
    CStr(CInt(Convert.ToInt32(Temp.Substring(8, 8), 2))) & "." & _
    CStr(CInt(Convert.ToInt32(Temp.Substring(16, 8), 2))) & "." & _
    CStr(CInt(Convert.ToInt32(Temp.Substring(24, 8), 2)))
    Return Result
    End Function
    End Class
    La vida loca

  • Please solve the code

    class Horseradish
    //insert code here
    protected HorseRadish(int x)
    System.out.println("bok choy");
    class Washabi extends HorseRadish{
    public static void main(String[] args)
    Wasabi w=new Wasabi();
    which two,inserted independently at line 2,will allow the code to compile and produce the output "bok choy"?(choose two)
    1. //just a comment
    2. protected HorseRadish(){}
    3.protected HorseRadish()
    {this(42);}
    4.protected HorseRadish() { new horseRadish(42);}
    which two are the right options and why??
    please answer

    because we want people to think for themselves rather
    than spoonfeed them everything.
    When you start spoonfeeding them, they'll never learn
    to think on their feet and will forever come here
    with every tiniest problem.Original:
    public class Spoon {
        public static Answer feed(Person me) {
            /* Implementation */
    }New:
    protected class Spoon {
        private static Answer feed(Person me) {
            /* Implementation */
    }Problem solved.

  • How can I view the code of a program in a browser?

    For example, is it possible for me to see the code of this program:
    http://cisweb.mwcc.edu/st01/robertscourseversion2/runapplet.htm
    Sorry, I know this is a dumb question, I just started to learn Java.

    In general, no. The applet you see is contained in one or more .class files -
    possibly contained in a .jar file. There may also be other files (resources)
    that the applet is using.
    If you go to that page and look at the .html source (browsers will let you do this)
    you see:<html>
      <body>
        <applet code = ClassApplet.class
          width = 400
          height = 400>
        </applet>
      </body>
    </html>In this case it appears that at least one of the files involved can be obtained
    from the url http://cisweb.mwcc.edu/st01/robertscourseversion2/ClassApplet.class
    It is possible to "reconstruct" the source (search the fabulous web for
    "Java Decompiler"). And this source may well lead you other classes and
    resources that are being used.*
    There may be legal restrictions on what you can and can't do with stuff that's
    made publically accessible on the internet. (I'm no lawyer.)
    * In the course of writing this I downloaded JAD - a common java decompiler -
    and ran it on this class file. There seem to be no other .class files being
    referenced within it.

Maybe you are looking for

  • Error in Directory Server 5.0 SP1

    I have encoutered with following error message on Directory Server 5.0 SP1. Any resolution for this problem? [07/May/2007:18:41:32 +0100] - libdb: Lock table is out of available locks [07/May/2007:18:41:32 +0100] - idl_store(=uid=siegertszs,ou=member

  • How do I set up a merged clip?

    Hello I've got a ebook of Premier Pro CC 2014 .And here is the thing that I can't undestand What dose it mean "select the camera clip"? There is know option like that.And even I folow by instruction and choose some clip, I do the right click, as desc

  • Facing problem with SOAMANAGER while working on ABAP Client Proxy

    Dear Community Friends & Experts,              I am facing a problem with the SOAMANAGER, I think so. Let me explain you a scenario what I am into: The scenario is like I need to Push data from BI table to SAP PI. We decided to go using ABAP client p

  • Desktop Manager all of a sudden stopped Synchronizing

    I have tried all of the help suggestions in the help section of the Desktop Manager.  I have downloaded and installed new drivers and software and my Desktop Manager still reads disconnected.  HELP!

  • Visual Admin service not present for Adobe Interactive forms

    Hi EP experts, i want to use Adobe Document for creating Adobe Interactive forms in webdynpro java. but initially i want to activate Adobe Document Service from Visual Admin.. For this ,Under Cluster tab of visual admin, i want to select Document Ser