Adding a RootViewController to a tabBar?!

I started my app as a navigation based app, but soon realized I also needed a tab bar. I added one programatically, but can't figure out how to make my RootViewController show up as an item on the tab bar?
UIWindow *window;
UINavigationController *navigationController;
UITabBarController *tabBarController;
RootViewController *myRootViewController;
That last line gives me a syntax error, and then I'm not sure about the code to actually put it on the tabBar, make any sense?
I thought RootViewController may be a system used controller, so I tried renaming it to something else, and fixing all the mentions in the code, but no worky
Any ideas?
Many thanks in advance, I'm stoked to keep plugging away on this one!

Simply just plug the monitor into the correct port, Thunderbolt or HDMI. The display settings should automatically pop up where you can change the settings to your liking. If the settings do not pop up automatically, just click the apple, go to system preferences, and click displays.

Similar Messages

  • ctrl: tags in template files.

    Hi,
    I tried adding the following in the tabBar.uit.
    <tabBar selectedIndex="${ui:defaulting(uix.pageProp.tab, '0')}">
    <contents childData="${source.rows}">
    <link text="${uix.current.firstName}" >
    <boundAttribute name="destination">
    <ctrl:pageURL name="${uix.current.url}">
    <ctrl:properties>
    <ctrl:property key="tab" value="${uix.current.tabIndex}"/>
    </ctrl:properties>
    </ctrl:pageURL>
    </boundAttribute>
    </link>
    </contents>
    </tabBar>
    <subTabBar>
    <contents>
    <switcher childName="${ui:defaulting(uix.pageProp.tab, '0')}">
    <case name="0">
    <link text="sub1" onMouseOver="LoadMenus()"/>
    </case>
    <case name="1">
    <link text="sub2"/>
    </case>
    </switcher>
    </contents>
    </subTabBar>
    But there are warnings when the page is compiled because of the
    <ctrl: tags. Is it not possible to incude <ctrl: tags in templates?
    Regards,
    Rekha.

    Here are seven common mistakes that will result in changes
    not propagating
    from Template to child -
    1. Rename the Templates folder
    2. Move the Templates folder to some other folder level in
    the site other
    than root level
    3. Move a template out of the Templates folder.
    4. Make changes to an editable region of the template (which
    will not
    propagate)
    5. Assume that template changes can be uploaded to the server
    without also
    uploading the changed local files
    6. Corrupt the site cache so that the link between template
    and child page
    is broken
    7, Improperly create your child pages by simply opening the
    template,
    adding page specific content, and resaving the template with
    an *.html
    extension rather that its *.dwt extension. (you can tell if
    this is the case
    by looking at the code on a child page - if you see anything
    like <!--
    TemplateBeginEditable... then this is what you have done). If
    you *have
    done this*, then recreate the child pages (in DWCS3) using
    FILE | New > Page
    from Template, select the template and click CREATE.
    The 6th problem can be repaired by using SITE | Advanced >
    Recreate Site
    Cache, and the six others can be fixed by just not doing
    them. Have you
    done any of those?
    Or, read this -
    http://www.adobe.com/go/dd83ba8b
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "dksoccer" <[email protected]> wrote in
    message
    news:g2h91f$o94$[email protected]..
    >I probably misstated that...it isn't the cahe,
    dreamweaver itself is still
    >pointing to the old page, is there another place that I
    need to update
    >besides in the template?

  • [svn:fx-trunk] 11989: Added Jody's TabBar example and the TabBar icon.

    Revision: 11989
    Revision: 11989
    Author:   [email protected]
    Date:     2009-11-19 09:13:28 -0800 (Thu, 19 Nov 2009)
    Log Message:
    Added Jody's TabBar example and the TabBar icon.   This feature should be OK to officially sign-off now.
    QE notes:
    Doc notes:
    Bugs:
    Reviewer: Hans
    Tests run:
    Is noteworthy for integration: no
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TabBar.as
    Added Paths:
        flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/TabBarExam ple.mxml
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TabBar.png

    I am not sure what's happening with IE9 (no live site) but I had real problems viewing your code in Live View - until I removed the HTML comment marked below. Basically your site was viewable in Design View but as soon a I hit Live view, it disappeared - much like IE9. See if removing the comment solves your issue.
    <style type="text/css">
    <!-- /*Remove this */
    body {
        margin: 0;
        padding: 0;
        color: #000;
        background:url(Images/websitebackgroundhomee.jpg) repeat scroll 0 0;
        font-family: David;
        font-size: 15px;
        height:100%;

  • Adding a custom UIViewController to an iOS ANE

    Hello all,
    I'm using the following code to add an UIWebView to my Adobe AIR Mobile app:
    UIWindow* keyWindow = [[UIApplication sharedApplication]keyWindow];
    UIViewController* mainController = [keyWindow rootViewController];
    // UIWebView initialization
    CGRect frame = getWebViewFrameFromASParams(argv); // params from ActionScript
    UIWebView *webView = [[UIWebView alloc]initWithFrame:frame];
    [mainController.view addSubview:webView];
    I need now access to the UIViewController to override willAnimateRotationToInterfaceOrientation.  The idea behind this custom rotation feature is to allow a fullscreen HTML5 video player to rotate in landscape/portrait mode, regardless of my application being a portrait mode only app.
    I already have my custom UIWebViewController class but I don't know how to "plug-it" into the application.  Every post I've seen in stackoverflow or google references using IB or StoryBoard, which for this case, is not an option.
    Thanks.

    If your Single Sign On is configured, you should be able to navigate directly to the Page. Adding a link through personalization is not a problem. Parameters could be included in the URL itself(you might need to check on security).
    But I am not sure how much would your third party application would integrate with Oracle. Kindly try passing information through URLs and check out the behaviour.
    Sumit

  • Place spark TabBar on Bottom of ViewStacks (+ rounded corners pointing downwards)

    Why is it so hard to do such a simple thing... I figure also it must be a very common thing.
    <s:VGroup horizontalAlign="center" horizontalCenter="0" verticalCenter="0" gap="0">
        <mx:ViewStack id="view" width="450" height="300" />
        <!-- NavigatorContent dynamically gets added to view on appComplete-->
        <s:TabBar dataProvider="{view}" skinClass="skins.CustomSparkTabBarSkin" />
    </s:VGroup>
    The Custom Skin:
    <s:Skin
    xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:fb="http://ns.adobe.com/flashbuilder/2009"    
    alpha.disabled="0.5"><fx:Metadata>
        <![CDATA[
        [HostComponent("spark.components.TabBar")]
        ]]>
    </fx:Metadata>
    <fx:Script  fb:purpose="styling" >
        <![CDATA[
        import mx.core.UIComponent;
        /**  Push the cornerRadius style to the item renderers.*/
        override protected function updateDisplayList(unscaledWidth:Number, unscaleHeight:Number):void {
            const numElements:int = dataGroup.numElements;
            const cornerRadius:int = hostComponent.getStyle("cornerRadius");
            for (var i:int = 0; i < numElements; i++) {
                var elt:UIComponent = dataGroup.getElementAt(i) as UIComponent;
                if (elt)
                    elt.setStyle("cornerRadius", cornerRadius);
            super.updateDisplayList(unscaledWidth, unscaledHeight);
        ]]>           
    </fx:Script>
    <s:states>
        <s:State name="normal" />
        <s:State name="disabled" />
    </s:states>
    <!--- @copy spark.components.SkinnableDataContainer#dataGroup -->
    <s:DataGroup id="dataGroup" width="100%" height="100%">
    Comes out with this component:
    I would like to place that TabBar at the Bottom of the viewstack, rounded corners pointing outwardly.
    if I add rotation="180" to the TabBar <s:TabBar dataProvider="{view}" skinClass="skins.CustomSparkTabBarSkin" rotation="180"/> will make the matter all the more laughable. I don't understand why is it so hard to create a TabNavigator with the buttons on the bottom?!

    Alright, I solved it by using Flash Catalyst... at least its' a simple way...
    So what I did was, Skinned it in Photoshop, imported it to Catalyst, and did the ncessary (convert to button, and select the label for it) and imported it into Flash Builder 4.
    I added the following component in Main:
    <mx:ViewStack id="view" width="450" height="300"  x="33" y="70"/>
    <s:TabBar id="tabBar" dataProvider="{view}" skinClass="components.CustomSparkTabBarSkin" y="375" x="32"/>
    The component.CustomSparkTabBarSkin
    <s:DataGroup id="dataGroup" width="100%" height="100%">
        <s:layout>
            <s:ButtonBarHorizontalLayout gap="4"/>
        </s:layout>
        <s:itemRenderer>
           <fx:Component>
               <s:ButtonBarButton skinClass="components.TabButton" buttonMode="true"/>
           </fx:Component>
        </s:itemRenderer>
    The components.TabButton (generated by Flash Catalyst)
    <s:Group d:userLabel="Tab Button 1" x="0" y="0">
         <s:BitmapImage smooth="true" source="@Embed('/assets/images/Game Tab Navigator/Buttonec.png')" d:userLabel="Button 99c" x="4" y="0"/>
         <s:RichText alpha="0.95" color="#725b3c" fontFamily="Bebas" fontSize="18" height="20" lineHeight="120%" textAlign="center" d:userLabel="hello" whiteSpaceCollapse="preserve" width="62" x="0" y="24" x.up="0" y.up="14">
              <s:content>
                   <s:p>
                   <s:span>Hello</s:span>
                   <s:span baselineShift="2" fontFamily="Myriad Pro" fontSize="17" fontWeight="bold">¢</s:span>
                   </s:p>
            </s:content>
         </s:RichText>
    </s:Group>
    Now the problem is... When I label my NavigatorContent, and dynamically added to the ViewStack (which is the dataprovider of the TabBar), the TabBar don't show the labels...
    Even though it's hardcoded in the example above to show Hello ... Nothing shows.
    What am I missing?

  • [svn:fx-trunk] 11444: Initial commit of the TabBar component.

    Revision: 11444
    Author:   [email protected]
    Date:     2009-11-04 12:22:02 -0800 (Wed, 04 Nov 2009)
    Log Message:
    Initial commit of the TabBar component.  ButtonBar and TabBar share a new base class called ButtonBarBase. 
    QE notes: tests for TabBar are TBD
    Doc notes: Please check the new TabBar, ButtonBarBase ASDoc
    Bugs:
    Reviewer: Alex, Glenn
    Tests run: ButtonBar Mustella tests pass
    Is noteworthy for integration:
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/defaults.css
        flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as
        flex/sdk/trunk/frameworks/spark-manifest.xml
    Added Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TabBar.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBas e.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TabBarButtonSkin.mxml
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TabBarSkin.mxml

  • Hiding tabBar in tabNavigator

    Hi All,
    Does anyone know how to hide the tab bar up top on a flex tabnavigator component?  I don't want to see the tab bar at all and I don't need to click on it (I have an automated iterator through the tabs).
    Thanks for any input!
    Regards,
    Joseph

    Just use a viewStack.  tabNavigator is literally a viewStack with a tabBar added for navigation.

  • First proper app - problem with tabBar

    Hi all, I'm a iPhone dev newbie, and been running through "hello world " type of tutorials. Now I'm trying to make my first app, and have hit a brick wall right at the start.
    Using the tabBar template, I've added a label to the first view and made a outlet to connect to it as I've done before in single View apps, and it crashes on start up. To explain this in more detail, I've made a short video showing what I'm doing, there must be one or more steps I'm missing, so if anyone could tell me what, heres the video:
    http://www.vimeo.com/1889825
    I realise in the video I've not written any code for the label
    Eg. IBOutlet UILabel *blahblahOutlet;
    But that doesn't seem to make any difference anyway.
    Any help please guys, I'm used to Java and VB.NET development, so this is all a bit different from anything I've done!

    Hey thanks Jerbeers for replying, I was beginning to give up hope, and turn back to the dark side (java programming).
    Heres what the console says for the complete session, theres something bad about the UIkit not being found...it was there when I last used it
    [Session started at 2008-10-07 21:32:00 +0100.]
    Loading program into debugger…
    GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat Jul 26 08:14:40 UTC 2008)
    Copyright 2004 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB. Type "show warranty" for details.
    This GDB was configured as "i386-apple-darwin".warning: Unable to read symbols for "/System/Library/Frameworks/UIKit.framework/UIKit" (file not found).
    warning: Unable to read symbols from "UIKit" (not yet mapped into memory).
    warning: Unable to read symbols for "/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics" (file not found).
    warning: Unable to read symbols from "CoreGraphics" (not yet mapped into memory).
    Program loaded.
    sharedlibrary apply-load-rules all
    Attaching to program: `/Users/scott/Library/Application Support/iPhone Simulator/User/Applications/4A87E90E-C0E7-4935-ADC4-CE429D3DE59F/CRtabs.app/CRt abs', process 6125.

  • Behaviour of the TabBar in mobile TabbedViewNavigatorApplication

    Hi everyone,
    i just discovered that the active  navigator returns to his first view, if you click on the already active  Tab in the TabBar. Any chance to prevent this from happening?

    Have you found a solution to this yet? I have built a mobile app using Flex 4.5.1 and in testing it for release have found the same problem that you are refering to hear, however, in profiling the application against this problem I am finding that it is not in fact returning to the first view when the already selected tab is pressed but is rather creating a new instance of the view and adding it to the stack of that particular view.
    I have been unseccesful as of yet to find a solution or the reason for this behavior and would appreciate very much hearing about any solutions you or anyone else has found, Thanks

  • Reading tab index in s:TabBar on mouseover

    Hello there,
    Here is my question: how to detect tab index of the s:TabBar on MouseEvent.MOUSE_OVER?
    Although I found a temporary workaround - event.target.toString() gives the inner id of the TabBarSkinInnerClass0 (which is inaccessible) - I hope there is more proper/standard solution; probably customizing the TabBarSkin.
    Any advice is appreciated.
    Thanks,
    FTQuest

    Thank you Peter.
    Yes, you're right - the solution is in custom skin.
    But for my needs - detecting the tab index on mouseover - I found much simpler solution that the one suggested at the StackOverflow.
    Since detecting state change is already buit-in, I just added one line of code in the custom TabBarSkin:
    var elt:UIComponent = dataGroup.getElementAt(i) as UIComponent;
    if (elt)
    elt.setStyle("cornerRadius", cornerRadius);
    elt.id = String(i); // that's the only line that I have added
    And now I can get this index on mouseover: event.target.id
    Best,
    FTQuest

  • Error while adding A/P Credit Memo!

    Error while adding A/P Credit Memo..........
    'G/L Accounts' (OACT) (ODBC-2028) Message - 131-183
    Please advice me .....
    Thanks...

    Hi
    Check this thread this may help you.
    [Re: AP Invoice - No Matching Account Error]
    Regards
    Balaji

  • Added new field to cube but data not passed from DSO

    Hope someone can help.
    (BI 7.0) We added new fields into a cube. The fields already existed in the DSO. When we ran the process chain in development for the first time after making this change, we notice that the 'historical' data for these fields is populated in the cube. When we do this in our quality system only new data passed to the cube is updated. In development in the sub-chain DTP request we see all previous requests listed under selections. In quality it is only the latest request. The only difference is that the DeltaInit flag in the DTP request in development is ticked (extraction mode) - but not in quality. Does anyone know whyb this is?

    hi peter,
    Adding fields to cube doesn't affect delta status...The delta DTP should be able to handle delta requests automatically.
    I guess in you quality system, the cube already got all requests updated from ODS before you importing the change request. And in develop system none of the requests in ODS were updated before the change.
    Regards,
    Frank

  • Adding data mid-month?

    HI, i recently just switched to verizon and so far i have loved it. But now im running into an issue and itseems almost impossible to get ahold of anyone via phone for support so im going to try this way.
    I am mid way through my month and i have ran out of data. I want to add more to my account so my phone will have internet again. How do i do this? I have added more data packages but that hasnt solved the issue, i still have no internet. I use my phone for work alot and need to have internet the remainder of the month. Can someone please tell me how to go about getting internet on my phone until my plan renews in two weeks.
    THank you for any help!

        huss9,
    I am happy to hear that you are loving the service. Welcome to the Verizon Wireless family. But let's get to work on the issue at hand today. With the iPhone can you please go into Settings, General, Scroll to the bottom and tap on Reset, then do reset network settings. This will not delete any of your personal information. All of your pictures, contacts, apps, and music will still be on the phone. Then re-try the network out. Please keep us posted.
    KevinR_VZW
    Please follow us on Twitter @VZWSupport

  • When adding folders to iTunes 11, they don't show up in the library.  On one folder add, it created a playlist (not what I wanted).  On the second folder, it shows nothing.  Never seen this before.  Advice?

    I added my first folder of MP3s and it created a playlist, but didn't show up in the library.  When adding a second folder, it didn't show up anywhere.  I can do a search for them in the search window, and it finds/plays them, but I want to be able to browse them in my library.  These are not MP3s downloaded from iTunes, but are personal files located on my hard drive.  Can anyone help?

    I have a Dell that's running Windows XP. I have found that itunes is very temperamental. this works most of the time... except on my son's computer that's running Windows Vista.
    Go to your library in iTunes. Then go up to file and try one of the options (import, add folder to library, or add file to library).
    Adding a folder is the least work. You can add all the files from a folder with one click... if it works. Remember that itunes is temperamental.
    If that doesn't work, try adding a file. The problem with that is that you have to go through the whole process for each and every file (song, movie, etc).
    Sometimes the only thing that works is to import.
    I haven't gotten iTunes to work on my son's computer (Windows Vista).
    I can't get support from apple in any way at all! They are good about creating electronics that appeal to us But they are lousy at support. If anyone figures out how to access support (where you can actually contact Apple) please let me know ([email protected]). I've been trying for 6 months.

  • Adding New Data To Same Page - HELP

    I am trying to put together a invoice on the fly, the products are added to the invoice by selecting the disired product from a drop down menu and hitting the add button. You SHOULD then be able to select more products from the same drop down menu and htting add again will include it in the invoice.... simple?? Well the problem i have is that when i hit the add button to add another item it just replaces the one i have already added.... this is very annoying... i cannot think of a way to take the product data through the form submission ready for adding too.
    Any Ideas this is really bugging me, and the more time i spend on it, the worse its getting. Code Below
    <%@ page buffer="32kb" %>
    <%@ page import="java.sql.*, javax.servlet.ServletException, java.io.IOException, com.stock_control.*" %>
    <%!
    String convertResultsToSelect ( ResultSet rs, String selectName, String idCol, String descCol ) throws SQLException
    StringBuffer sb = new StringBuffer ( "<select name=" + selectName +">" );
    if (rs != null) {
    while (rs.next()) {
              sb.append ( "<option value=" );
    sb.append ( rs.getString(idCol) );
    sb.append ( ">" );
    sb.append ( rs.getString(descCol) );
    sb.append ( "</option>" );
    sb.append ( "</select>" );
    return sb.toString ();
    %>
    <html>
    <head>
    <title>Members Area - Stock Check</title>
    </head>
    <body bgcolor="#CCCCCC" topmargin="0">
    <%@ include file="topConn.jsp" %>
    <%
              String msg = "";
              String name = "";
              String address1 = "";
              String address2 = "";
              String town ="";
              String postcode = "";
              String country = "";
              String phone = "";
              String mail = "";
              String comments = "";
              float total = 0;
              int nextFree = 0;
              String prodResults;
              int numberOfItems = 0;
         String shop = (String)session.getValue("SHOP");
         String selectProd = "SELECT ProductID, ProductName FROM product WHERE ShopID=";
         rs1 = stmt.executeQuery(selectProd+shop);
         prodResults = convertResultsToSelect( rs1, "product","ProductID","ProductName");
         rs = stmt.executeQuery("SELECT COUNT(*) AS stockLevel FROM product WHERE ShopID ="+shop);     
    while(rs.next())
         numberOfItems = rs.getInt("stockLevel");
         Product[] products = new Product[numberOfItems];
    if (request.getParameter("add")!=null)
              // get values from all text boxes....
              name = request.getParameter("name");
              address1 = request.getParameter("address1");
              address2 = request.getParameter("address2");
              town = request.getParameter("town");
              postcode = request.getParameter("postcode");
              country = request.getParameter("country");
              phone = request.getParameter("phone");
              mail = request.getParameter("mail");
              comments = request.getParameter("comments");
                   // add data from dropdown
              String newProduct = request.getParameter("product");
              //connect to database and put product data into array + increment
                   int thenewid = 0;
                   String theName = "";
                   float thePrice = 0;
                   String nono = "0";
              String getProd = "SELECT * FROM product WHERE ProductID=";
              rs = stmt.executeQuery(getProd+newProduct);
              if(rs.next())
                   thenewid = Integer.parseInt(newProduct);
                   theName = rs.getString("ProductName");
                   thePrice = rs.getFloat("SalePrice");
                   Product addProduct = new Product(thenewid, theName, thePrice, nono);
                   products[nextFree] = addProduct; //PROBLEM
                   nextFree++;
    // reload page with new data in form
    //for loop arround array     
    %>
    <form method="GET">
    <div align=center>
    <p>
    <%=prodResults%>
    <input type="submit" value="Add" name="add"></p>
    <TABLE width=100% height="1">
    <TBODY>
    <tr>
    <td width="4%" height="19"> </td>
    <td width="96%" height="19"> 
    </td>
    </tr>
    <tr>
    <td width="4%" height="198"> </td>
    <td width="96%" height="198">
    <div align="center"></div>
    <table border="0" cellpadding="2" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber5">
    <tr>
    <td width="4%"> </td>
    <td width="15%"><font face="Verdana" size="2">Customer Name</font></td>
    <td width="30%"><input type="text" name="name" size="30" value="<%=name%>"></td>
    <td width="19%"><font face="Verdana" size="2">Customer Phone #</font></td>
    <td width="26%"><input name="phone" type="text" size="30" value="<%=phone%>"></td>
    <td width="6%"> </td>
    </tr>
    <tr>
    <td> </td>
    <td><font face="Verdana" size="2">Address Line 1</font></td>
    <td><input type="text" name="address1" size="40" value="<%=address1%>"></td>
    <td><font face="Verdana" size="2">Customer E-mail</font></td>
    <td><input name="mail" type="text" size="30" value="<%=mail%>"></td>
    <td> </td>
    </tr>
    <tr>
    <td height="32"> </td>
    <td><font face="Verdana" size="2">Address Line 2</font></td>
    <td> </td>
    <td><font face="Verdana" size="2">Comments</font></td>
    <td width="26%" rowspan="5"><p>
    <textarea name="comments" cols="29" rows="5"><%=comments%></textarea>
    </p>
    <p>  </p></td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td><font size="2" face="Verdana">Town/City</font></td>
    <td><input name="town" type="text" size="40" value="<%=town%>">
    <input name="address2" type="text" size="40" value="<%=address2%>"></td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td><font size="2" face="Verdana">Post Code</font></td>
    <td><input type="text" name="postcode" size="10" value="<%=postcode%>"></td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td><font size="2" face="Verdana">Country</font></td>
    <td><input type="text" name="country" size="40" value="<%=country%>"></td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td height="24"> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td height="23"> </td>
    <td><strong><font size="2" face="Verdana">Product Code</font></strong></td>
    <td><strong><font size="2" face="Verdana">Name</font></strong></td>
    <td><strong><font size="2" face="Verdana">Price</font></strong></td>
    <td> </td>
    <td> </td>
    </tr>
    <%
    if (request.getParameter("add")!=null)
    for(int i=0; i<nextFree; i++)
    Product temp = products;
    int prodID = temp.getid();
    String prodName = temp.getname();
    float prodPrice = temp.getprice();
    total = total + prodPrice;
    // work out total on the fly
    %>
    <tr>
    <td height="23"> </td>
    <td> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=prodID%> </font></td>
    <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=prodName%></font></td>
    <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&pound;<%=prodPrice%></font></td>
    <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
    <td> </td>
    </tr>
    <%
    %>
    <tr>
    <td width="4%" height="23"> </td>
    <td width="15%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
    <td width="30%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
    <td width="19%"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Total:</font></strong></td>
    <td width="26%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=total%></font></td>
    <td width="6%"> </td>
    </tr>
    </table>
    <p align="center">
    <input type="submit" value="Continue" name="continue">
              </form>
    </p>
    </td> </tr> </TBODY></table>
    <%@ include file="bottomConn.jsp" %>
    </body>
    </html>

    anyone?

Maybe you are looking for