HTMLB: Colspan in formLayoutCell is not working

Hi,
I'm having a huge problem: it seems like the attribute "Colspan" of the tag formLayoutCell is not working properly.
I want to build a very simple page which has 2 rows. 1st row has 9 cells, 2nd row has 3 cells, each with colspan=3. It should look like this:
+--------------------------------------------+
| 1a | 1b | 1c | 2a | 2b | 2c | 3a | 3b | 3c |
|       1      |      2       |      3       |
+--------------------------------------------+
I used the following code which is not working. In the second row it only shows the first cell, it looks like this:
+--------------------------------------------+
| 1a | 1b | 1c | 2a | 2b | 2c | 3a | 3b | 3c |
|       1      |                             |
+--------------------------------------------+
We are using version 6.0 of the Enterprise Portal. If anyone has the solution I would highly appreciate it!
Here is the code:
<%@ taglib uri="tagLib" prefix="hbj" %>
<hbj:content id = "CONTENT" >
<hbj:page>
<hbj:form>
     <hbj:formLayout
         debugMode = "true" >
<!-- Row2 -->          
     <hbj:formLayoutRow>
         <hbj:formLayoutCell>
               <hbj:textView text = "zelle1a">
                  </hbj:textView>                             
             </hbj:formLayoutCell>
         <hbj:formLayoutCell>
               <hbj:textView text = "zelle1b">
                  </hbj:textView>                             
             </hbj:formLayoutCell>              
         <hbj:formLayoutCell>
               <hbj:textView text = "zelle1c">
                  </hbj:textView>                             
             </hbj:formLayoutCell>
         <hbj:formLayoutCell>          
               <hbj:textView text = "zelle2a">
                  </hbj:textView>          
         </hbj:formLayoutCell>
         <hbj:formLayoutCell>          
               <hbj:textView text = "zelle2b">
                  </hbj:textView>          
         </hbj:formLayoutCell>
         <hbj:formLayoutCell>          
               <hbj:textView text = "zelle2c">
                  </hbj:textView>          
         </hbj:formLayoutCell>
         <hbj:formLayoutCell>          
               <hbj:textView text = "zelle3a">
                  </hbj:textView>          
         </hbj:formLayoutCell>        
         <hbj:formLayoutCell>          
               <hbj:textView text = "zelle3b">
                  </hbj:textView>          
         </hbj:formLayoutCell>
         <hbj:formLayoutCell>          
               <hbj:textView text = "zelle3c">
                  </hbj:textView>          
         </hbj:formLayoutCell>
    </hbj:formLayoutRow>
<!-- Row1 -->     
     <hbj:formLayoutRow>
          <hbj:formLayoutCell colspan = "3">
               <hbj:textView text = "zelle1">
                  </hbj:textView>    
          </hbj:formLayoutCell>
          <hbj:formLayoutCell colspan = "3" >
               <hbj:textView text = "zelle2">
                  </hbj:textView>    
          </hbj:formLayoutCell>
          <hbj:formLayoutCell     colspan = "3">
               <hbj:textView      text = "zelle3">
                  </hbj:textView>                    
          </hbj:formLayoutCell>
     </hbj:formLayoutRow>             
</hbj:formLayout>      
</hbj:form> 
</hbj:page>
</hbj:content>

Hi Jan,
just like evaluated, nice to hear
For it has been some work to evaluate it, I would appreciate if you would appreciate my efforts - I know you know the point rewarding system...
Thanks in advance
Detlev

Similar Messages

  • Element htmlb:group not working.

    Hi All,
    I need to group some logicaly related elements in the BSP page, i tried using the BSP HTMLB element GROUP , but for some reason it does not make any difference in the BSP page.I have seen the HTMLB_SAMPLES and SBSPEXT_HTMLB applications and tried using the same logic......but not working.
    <htmlb:group id        = "group1"
                  title     = "Test Group"
                  tooltip   = "This is a tooltip" >
          <htmlb:groupHeader>
             <htmlb:textView id="mytext" text="This is a test" tooltip="Test Text Tooltip">
             </htmlb:textView>
            </htmlb:groupHeader>
                 <htmlb:groupBody>
        SOME ELEMENTS HERE    
    </htmlb:groupBody>
               </htmlb:group>
    I have  a Gridlayout divided into 2 columns and 6 rows , i want to group only the last two rows  ie 5 & 6 into a group.
    What might be the problem?
    Thanks,
    Anubhav.

    Hi,
    if I understand, you´re trying to group rows in your grid control and NOT related elements (like radiobuttons), as stated. That´s why it does not work with <htmlb:group>.
    I assume you have a code like this:
    <htmlb:gridLayout columnSize="2" rowSize="3" cellPadding="5">
      <htmlb:gridLayoutCell columnIndex="1" rowIndex="1">Field 1</htmlb:gridLayoutCell>
      <htmlb:gridLayoutCell columnIndex="2" rowIndex="1">Value 1</htmlb:gridLayoutCell>
      <htmlb:gridLayoutCell columnIndex="1" rowIndex="2">Field 2</htmlb:gridLayoutCell>
      <htmlb:gridLayoutCell columnIndex="2" rowIndex="2">Value 2</htmlb:gridLayoutCell>
      <htmlb:gridLayoutCell columnIndex="1" rowIndex="3">Field 3</htmlb:gridLayoutCell>
      <htmlb:gridLayoutCell columnIndex="2" rowIndex="3">Value 3</htmlb:gridLayoutCell>
    </htmlb:gridLayout>
    how about if you change it like this:
    <htmlb:gridLayout columnSize="2" rowSize="2" cellPadding="5">
      <htmlb:gridLayoutCell columnIndex="1" rowIndex="1">Field 1</htmlb:gridLayoutCell>
      <htmlb:gridLayoutCell columnIndex="2" rowIndex="1">Value 1</htmlb:gridLayoutCell>
      <htmlb:gridLayoutCell columnIndex="1" rowIndex="2" colSpan="2">
      <htmlb:gridLayout columnSize="2" rowSize="2" cellPadding="5">
      <htmlb:gridLayoutCell columnIndex="1" rowIndex="1">Field 2</htmlb:gridLayoutCell>
      <htmlb:gridLayoutCell columnIndex="2" rowIndex="1">Value 2</htmlb:gridLayoutCell>
      <htmlb:gridLayoutCell columnIndex="1" rowIndex="2">Field 3</htmlb:gridLayoutCell>
      <htmlb:gridLayoutCell columnIndex="2" rowIndex="2">Value 3</htmlb:gridLayoutCell>
      </htmlb:gridLayout>
      </htmlb:gridLayoutCell>
    </htmlb:gridLayout>
    In this way, you´re "grouping" rows 2 and 3 within another grid.

  • If statement within a view is not working correctly ?

    Hi all,
    maybe i am wrong but i think the if statement within a view is not working correctly. See code down below.
    I would like to use the Hallo World depending on the page attribute isFrame with or without all the neccessary html tags. Therefore i have embedded the htmlb tags in an if statement. But for any reason if isframe is initial it isn't working. It would be great if anybody could help me.
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <% if not isframe is initial. %>
      <htmlb:content design="design2003">
         <htmlb:page title = "Top Level Navigation view">
    <% endif. %>
    hallo world
    <% if not isframe is initial. %>
         </htmlb:page>
      </htmlb:content>
    <% endif. %>
    thanks in advance and best regards
    Matthias Hlubek

    Matthias,
    The short answer: your example is <b>NOT</b> going to work. The long answer will probably 5 pages to describe. So first let me rewrite the example so that it could work, and then give a short version of the long answer. Do not be disappointed if it is not totally clear. It is rather complicated. (See the nice form of IF statements that are possible since 620.)
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <% if isframe is <b>NOT</b> initial. %>
    <htmlb:content design="design2003">
      <htmlb:page title = "Top Level Navigation view">
        hallo world
      </htmlb:page>
    </htmlb:content>
    <% else. %>
      hallo world
    <% endif. %>
    So why does your example not work? Let us start with a simple tag:
      <htmlb:page title = "Top Level Navigation view">
      </htmlb:page>
    Now, for each tag, we have effectively the opening part (<htmlb:page>), an optional body, and then the closing part (</htmlb:page>). We are now at the level of the BSP runtime processing one tag. What the runtime does not know, is whether the tag wants to process its body or not. Each tag can decide dynamically at runtime whether the body should be processed. So the BSP compiler generates the following code:
      DATA: tag TYPE REF TO cl_htmlb_page.
      CREATE OBJECT tag.
      tag->title = 'Top Level Navigation view'.
      IF tag->DO_AT_BEGINNING( ) = CONTINUE.
      ENDIF.
      tag->DO_AT_END( ).
    You should actually just debug your BSP code at ABAP level, and then you will immediately see all of this. Now, let us mix in your example with our code generation. First you simplified example:
    <% if isframe is NOT initial. %>
      <htmlb:page title = "Top Level Navigation view">
    <% endif. %>
    <% if isframe is NOT initial. %>
      </htmlb:page>
    <% endif. %>
    And then with our generated code. Look specifically at how the IF/ENDIF blocks suddenly match!
    if isframe is NOT initial.
      DATA: tag TYPE REF TO cl_htmlb_page.
      CREATE OBJECT tag.
      tag->title = 'Top Level Navigation view'.
      IF tag->DO_AT_BEGINNING( ) = CONTINUE.
    endif.
    if isframe is NOT initial.
      ENDIF.
      tag->DO_AT_END( ).
    endif.
    You can see that your ENDIF statements are closing IF blocks generated by the BSP compiler. Such a nesting will not work. This is a very short form of the problem, there are a number of variations, and different types of the same problem.
    The only way to solve this problem, is probably to put the body into a page fragment and include it like I did above with the duplicate HelloWorld strings. But this duplicates source code. Better is to put body onto a view, that can be processed as required.
    brian

  • Script not working in SharePoint content editor webpart

    Hi All,
    <html>
    <head>
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script language="javascript" type="text/javascript">
    $(document).ready(function () {
    //Call your function here like
    //retrieveListItems();
    ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "SP.js");
    var siteUrl = '/vceo/PMO/EPMO/';
    var close1 = ''; var close2 = ''; var high = ''; var low = ''; var medium = ''; var lowMedium = ''; var mediumHigh = '';
    var open1 = ''; var open2 = ''; var high1 = ''; var low1 = ''; var medium1 = ''; var lowMedium1 = ''; var mediumHigh1 = '';
    var count = 0; var count1 = 0;
    var initiate = 0; var planning = 0; var execution = 0; var closing = 0;
    var sumMinimal = 0; var sumModerate = 0; var sumCritical = 0; var sumSevere = 0;
    var sumHighlyLikely = 0; var sumLikely = 0; var sumSomewhat = 0; var sumUnlikely = 0;
    var sumBudget = 0; var sumCommitted = 0; var sumConsumption = 0;
    function retrieveListItems() {
    alert("Welcome to Dashboard");
    var clientContext = new SP.ClientContext(siteUrl); alert("site url");
    var oList = clientContext.get_web().get_lists().getByTitle('Project Issues and Risks');
    var oList1 = clientContext.get_web().get_lists().getByTitle('Project');
    var oList2 = clientContext.get_web().get_lists().getByTitle('Risk Impact');
    var oList3 = clientContext.get_web().get_lists().getByTitle('Risk Probability'); alert("get by title");
    var camlQuery = new SP.CamlQuery(); var camlQuery1 = new SP.CamlQuery(); var camlQuery2 = new SP.CamlQuery(); var camlQuery3 = new SP.CamlQuery(); var camlQuery4 = new SP.CamlQuery(); var camlQuery5 = new SP.CamlQuery(); var camlQuery6 = new SP.CamlQuery();
    camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Project_x0020_Issue_x0020_Status" /><Value Type="Choice">Issue</Value></Eq></Where></Query></View>');
    camlQuery1.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Project_x0020_Issue_x0020_Status" /><Value Type="Choice">Risk</Value></Eq></Where></Query></View>');
    camlQuery2.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Overall_x0020_Status" /><Value Type="Choice">Open</Value></Eq></Where></Query></View>');
    camlQuery3.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Overall_x0020_Status" /><Value Type="Choice">Closed</Value></Eq></Where></Query></View>');
    camlQuery4.set_viewXml('<View><Query><Where><IsNotNull><FieldRef Name="Project_x0020_Code" /></IsNotNull></Where></Query></View>');
    camlQuery5.set_viewXml('<View><Query><Where><IsNotNull><FieldRef Name="Project_x0020_Code" /></IsNotNull></Where></Query></View>');
    camlQuery6.set_viewXml('<View><Query><Where><IsNotNull><FieldRef Name="Project_x0020_Code" /></IsNotNull></Where></Query></View>');
    this.collListItem = oList.getItems(camlQuery); this.collListItem1 = oList.getItems(camlQuery1); this.collListItem2 = oList1.getItems(camlQuery2); this.collListItem3 = oList1.getItems(camlQuery3);
    this.collListItem4 = oList2.getItems(camlQuery4); this.collListItem5 = oList3.getItems(camlQuery5); this.collListItem6 = oList1.getItems(camlQuery6);
    clientContext.load(collListItem); clientContext.load(collListItem1); clientContext.load(collListItem2); clientContext.load(collListItem3); clientContext.load(collListItem4); clientContext.load(collListItem5); clientContext.load(collListItem6);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    alert("retrieve list");
    function onQuerySucceeded(sender, args) {
    alert("succeed");
    var listItemEnumerator = collListItem.getEnumerator(); var listItemEnumerator1 = collListItem1.getEnumerator(); var listItemEnumerator2 = collListItem2.getEnumerator();
    var listItemEnumerator3 = collListItem3.getEnumerator(); var listItemEnumerator4 = collListItem4.getEnumerator(); var listItemEnumerator5 = collListItem5.getEnumerator(); var listItemEnumerator6 = collListItem6.getEnumerator();
    var sumClose = 0; var sumClose1 = 0; var sumHigh = 0; var sumMedium = 0; var sumLow = 0; var sumLowMedium = 0; var sumMediumHigh = 0;
    var sumOpen = 0; var sumOpen1 = 0; var sumHigh1 = 0; var sumMedium1 = 0; var sumLow1 = 0; var sumLowMedium1 = 0; var sumMediumHigh1 = 0;
    while (listItemEnumerator.moveNext()) { var oListItem = listItemEnumerator.get_current(); sumClose += oListItem.get_item('Close'); sumOpen += oListItem.get_item('Open'); sumHigh += oListItem.get_item('High'); sumMedium += oListItem.get_item('Medium'); sumLow += oListItem.get_item('Low'); sumLowMedium += oListItem.get_item('LowMedium'); sumMediumHigh += oListItem.get_item('MediumHigh'); }
    while (listItemEnumerator1.moveNext()) { var oListItem1 = listItemEnumerator1.get_current(); sumClose1 += oListItem1.get_item('Close'); sumOpen1 += oListItem1.get_item('Open'); sumHigh1 += oListItem1.get_item('High'); sumMedium1 += oListItem1.get_item('Medium'); sumLow1 += oListItem1.get_item('Low'); sumLowMedium1 += oListItem1.get_item('LowMedium'); sumMediumHigh1 += oListItem1.get_item('MediumHigh'); }
    while (listItemEnumerator4.moveNext()) { var oListItem4 = listItemEnumerator4.get_current(); sumMinimal += oListItem4.get_item('Minimal'); sumModerate += oListItem4.get_item('Moderate'); sumSevere += oListItem4.get_item('Severe'); sumCritical += oListItem4.get_item('Critical'); }
    while (listItemEnumerator5.moveNext()) { var oListItem5 = listItemEnumerator5.get_current(); sumUnlikely += oListItem5.get_item('Unlikely'); sumSomewhat += oListItem5.get_item('Somewhat'); sumLikely += oListItem5.get_item('Likely'); sumHighlyLikely += oListItem5.get_item('HighlyLikely'); }
    while (listItemEnumerator6.moveNext()) { var oListItem6 = listItemEnumerator6.get_current(); sumBudget += oListItem6.get_item('Project_x0020_Budget_x0020_Amoun'); sumCommitted += oListItem6.get_item('Committed_x0020_Budget'); }
    count = this.collListItem2.get_count();
    count1 = this.collListItem3.get_count();
    while (listItemEnumerator2.moveNext()) {
    var oListItem2 = listItemEnumerator2.get_current();
    var stat = oListItem2.get_item('Project_x0020_Status');
    if (stat == "Intiation") {
    initiate = initiate + 1
    if (stat == "Planning") {
    planning = planning + 1
    if (stat == "Execution") {
    execution = execution + 1
    if (stat == "Closing") {
    closing = closing + 1
    //alert("initiate" + initiate); alert("planning" + planning); alert("execution" + execution); alert("closing" + closing);
    //alert("countOpen" + count); alert("closed:" + count1);
    window.close1 = sumClose; window.close2 = sumClose1; window.high = sumHigh; window.low = sumLow; window.medium = sumMedium; window.mediumHigh = sumMediumHigh; window.lowMedium = sumLowMedium;
    window.open1 = sumOpen; window.open2 = sumOpen1; window.high1 = sumHigh1; window.low1 = sumLow1; window.medium1 = sumMedium1; window.mediumHigh1 = sumMediumHigh1; window.lowMedium1 = sumLowMedium1;
    drawChart();
    function onQueryFailed(sender, args) { alert('Request failed.. ' + args.get_message() + '\n' + args.get_stackTrace()); }
    google.load("visualization", "1", { packages: ["corechart"] });
    function drawChart() {
    var data = google.visualization.arrayToDataTable([['Task', 'Issues'], ['Close', window.close1], ['Open', window.open1]]);
    var data1 = google.visualization.arrayToDataTable([['Task', 'Risks'], ['Close', window.close2], ['Open', window.open2]]);
    var data2 = google.visualization.arrayToDataTable([['Program', 'High', 'Medium-High', 'Medium', 'Low-Medium', 'Low'], ['Category', window.high, window.mediumHigh, window.medium, window.lowMedium, window.low]]);
    var data3 = google.visualization.arrayToDataTable([['Program', 'High', 'Medium-High', 'Medium', 'Low-Medium', 'Low'], ['Category', window.high1, window.mediumHigh1, window.medium1, window.lowMedium1, window.low1]]);
    var data4 = google.visualization.arrayToDataTable([['Project', 'Status'], ['Closed', count1], ['Open', count]]);
    var data5 = google.visualization.arrayToDataTable([['Project', 'Status'], ['Initiation', initiate], ['Planning', planning], ['Execution', execution], ['Closing', closing]]);
    var data6 = google.visualization.arrayToDataTable([['Program', 'Impact'], ['Minimal', sumMinimal], ['Moderate', sumModerate], ['Severe', sumSevere], ['Critical', sumCritical]]);
    var data7 = google.visualization.arrayToDataTable([['Program', 'Probability'], ['Highly Likely/Probable(76%-100%)', sumHighlyLikely], ['Likely(51%-76%)', sumLikely], ['Somewhat Likely(26%-50%)', sumSomewhat], ['Unlikely/Improbable(0%-25%)', sumUnlikely]]);
    var data8 = google.visualization.arrayToDataTable([['Project', 'Budget'], ['Approved', sumBudget], ['Committed', sumCommitted]]);
    var options = { title: 'Program Issues', width: 200, height: 300, legend: 'bottom', pieSliceText: 'value', pieStartAngle: 180, };
    var options1 = { title: 'Program Risks', width: 200, height: 300, legend: 'bottom', pieSliceText: 'value', pieStartAngle: 180, };
    var options2 = { width: 200, height: 200, legend: { position: 'top', maxLines: 3 }, bar: { groupWidth: '25%' }, isStacked: true, vAxis: { title: 'Open', titleTextStyle: { color: 'red' } } };
    var options3 = { width: 200, height: 200, legend: { position: 'top', maxLines: 3 }, bar: { groupWidth: '25%' }, isStacked: true, vAxis: { title: 'Open', titleTextStyle: { color: 'red' } } };
    var options4 = { title: 'Project Status', width: 225, height: 300, legend: 'bottom', pieSliceText: 'value', pieStartAngle: 180, };
    var options5 = { width: 175, height: 200, legend: { position: 'top', maxLines: 10 }, pieSliceText: 'value', };
    var options6 = { title: 'Program Risk Impact', width: 300, height: 300, legend: 'right', pieSliceText: 'value', };
    var options7 = { title: 'Program Risk Probable', width: 300, height: 300, legend: 'right', pieSliceText: 'value', };
    var options8 = { title: 'Project Budget', width: 300, height: 300, legend: 'bottom', pieSliceText: 'value', };
    var chart = new google.visualization.PieChart(document.getElementById('chart_div3'));
    chart.draw(data, options);
    var chart1 = new google.visualization.PieChart(document.getElementById('chart_div'));
    chart1.draw(data1, options1);
    var chart2 = new google.visualization.ColumnChart(document.getElementById('chart_div1'));
    chart2.draw(data2, options2);
    var chart3 = new google.visualization.ColumnChart(document.getElementById('chart_div2'));
    chart3.draw(data3, options3);
    var chart4 = new google.visualization.PieChart(document.getElementById('chart_div4'));
    chart4.draw(data4, options4);
    var chart5 = new google.visualization.PieChart(document.getElementById('chart_div5'));
    chart5.draw(data5, options5);
    var chart6 = new google.visualization.PieChart(document.getElementById('chart_div6'));
    chart6.draw(data6, options6);
    var chart7 = new google.visualization.PieChart(document.getElementById('chart_div7'));
    chart7.draw(data7, options7);
    var chart8 = new google.visualization.ColumnChart(document.getElementById('chart_div8'));
    chart8.draw(data8, options8);
    </script>
    </head>
    <body>
    <table >
    <tbody>
    <tr>
    <td id="chart_div8" colspan="2" style="border-bottom:ridge;border-left:ridge;border-top:ridge"></td>
    <td id="chart_div4" style="border-bottom:ridge;border-left:ridge;border-top:ridge"></td>
    <td id="chart_div5" style="border-bottom:ridge;border-right:ridge;border-top:ridge"></td>
    </tr>
    <tr>
    <td id="chart_div" style="border-bottom:ridge;border-left:ridge;"></td>
    <td id="chart_div2" style="border-bottom:ridge;"></td>
    <td id="chart_div3" style="border-bottom:ridge;border-left:ridge;"></td>
    <td id="chart_div1" style="border-bottom:ridge;border-right:ridge""></td>
    </tr>
    <tr>
    <td id="chart_div6" colspan="2" style="border-bottom:ridge;border-left:ridge;"></td>
    <td id="chart_div7" colspan="2" style="border-bottom:ridge;border-left:ridge;border-right:ridge"></td>
    </tr>
    </tbody>
    </table>
    </body>
    </html>
    This content editor webpart not working in sharepoint page. Once I checked out to the page then chart is working. When i checkedin function not get called. How to fix this?
    THanks in advance!

    In SharePoint 2013, sp.js and sp.runtime.js does not load on the page in published mode. You need to explicitly load these files. You can check using IE developer tools in the Script section that in published mode these files are missing.
    In order to fix this issue explictly refer these two js files on your page.
    <script type="text/javascript" src="_layouts/15/sp.runtime.js"></script>
    <script type="text/javascript" src="_layouts/15/sp.js"></script>
    Geetanjali Arora | My blogs |

  • JNLP - Swing application compiled in jdk1.5 not working in jdk1.6

    I have one swing application, compiled in jdk 1.5 and deployed in JNLP with jdk 1.5. When client machine try to access the application and having jre 1.5 then it works fine. but if client machine having jre 1.6 or version greater than 1.5 then application does not work properly.
    Please help me, i got stuck and not able to solve the problem.
    this is my JNLP
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://10.1.1.145:8080/uttimesheet" href="launch.jnlp">
    <information>
    <title>TimeSheet Portal</title>
    <vendor>Geometric Global</vendor>
    <description>A simple java desktop application based on Swing Application Framework</description>
    <description kind="short">TimeSheet Portal</description>
    <homepage href="http://appframework.dev.java.net"/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.5+" />
    <jar href="UTTimeSheet.jar" main="true" download="eager"/>
    <jar href="lib/antlr-2.7.5H3.jar" download="eager"/>
    <jar href="lib/appframework-1.0.3.jar" download="eager"/>
    <jar href="lib/asm.jar" download="eager"/>
    <jar href="lib/cglib-2.1.jar" download="eager"/>
    <jar href="lib/commons-collections-2.1.1.jar" download="eager"/>
    <jar href="lib/commons-logging-1.0.4.jar" download="eager"/>
    <jar href="lib/dom4j-1.6.jar" download="eager"/>
    <jar href="lib/hibernate3.jar" download="eager"/>
    <jar href="lib/jta.jar" download="eager"/>
    <jar href="lib/log4j-1.2.9.jar" download="eager"/>
    <jar href="lib/poi-3.0.2.jar" download="eager"/>
    <jar href="lib/postgresql-8.3-603.jdbc3.jar" download="eager"/>
    <jar href="lib/swing-layout-1.0.3.jar" download="eager"/>
    <jar href="lib/swing-worker-1.1.jar" download="eager"/>
    <jar href="lib/swingx-0.9.2.jar" download="eager"/>
    </resources>
    <application-desc main-class="timesheetproject.TimeSheetProjectApp">
    </application-desc>
    </jnlp>
    Thanks in Advance.

    Thanks Luca for your time,
    we have deployed application in tomcat and changed the home page of tomcat to our application home page(html page). and url is http://10.1.1.145:8080/
    Application home page contain link to jnlp. so whenever user click on link (in home page) then jnlp will execute and launch the swing application.
    do you need some more clarification?
    below is the home page(html).
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Launch TimeSheet Portal via JNLP</title>
    </head>
    <body>
         <center>
              <br>
              <img src="images/Geo-logo.JPG" />          
              <br>
              <hr width="70%" />
              <br>
              <table width="70%">
                   <tr><td> </td></tr>
                   <tr>
                        <td colspan="2" align="center">
                             <align="center">
                                  <h2>Welcome to TimeSheet Portal.</h3>
                             </align>
                        </td>
                   </tr>
                   <tr><td> </td></tr>
                   <tr><td> </td></tr>
                   <tr>
                        <td align="center">
                             <align="center">
                                  <h3><u>Live Sites:</u></h3>
                             </align>
                        </td>
                        <td align="center">
                             <align="center">
                                  <h3><u>Demo Sites:</u></h3>
                             </align>
                        </td>
                   </tr>
                   <tr>
                        <td width="50%" align="center">
                             <img src="images/launchPortal.png" onmouseover="this.src='images/launchPortalMouseOver.png';" onmouseout="this.src='images/launchPortal.png';" border="0"/>          
                             <br><br>
                             <img src="images/launchAdminPortal.png" onmouseover="this.src='images/launchAdminPortalMouseOver.png';" onmouseout="this.src='images/launchAdminPortal.png';" border="0"/>          
                        </td>
                        <td width="50%" align="center">
                             <img src="images/demoPortal.png" onmouseover="this.src='images/demoPortalMouseOver.png';" onmouseout="this.src='images/demoPortal.png';" border="0"/>
                             <br><br>
                             <img src="images/demoAdminPortal.png" onmouseover="this.src='images/demoAdminPortalMouseOver.png';" onmouseout="this.src='images/demoAdminPortal.png';" border="0"/>
                        </td>
                   </tr>
                   <tr><td> </td></tr>
                   <tr><td> </td></tr>
         </table>
         <table width="70%">
              <tr><td> </td></tr>
              <tr><td> </td></tr>
              <tr><td align="center">
                   FAQ   |  
                   Help   |  
                   Why Timesheet   |  
                   Report a bug   |  
                   Contact Us   |  
    Subtask Mapping   
              </td></tr>
         </table>
         <br><br><br><br>
         <table width="70%" bgcolor="#C0C0C0" style="vertical-align: bottom">
              <tr>
                   <td colspan="2" align="center" style="vertical-align: bottom" bgcolor="#C0C0C0">
                        ©<font size="1.5" face="Verdana"> 2008 Geometric Ltd. All rights reserved.<br>
                             Best optimized for a resolution of 1024 and above. JRE 1.5 is a pre-requisite                          for using these applications.
                        </font>
                   </td>
              </tr>
         </table>
         </center>
    </body>
    </html>
    Thanks.

  • I am trying to add lightbox widget to my site but its not working NEED HELP

    i can create the light box widget as a new page but when i paste the codes into the actual site it will not work and the images will not enlarge
    what or where did i go wrong.  This is all the codes for the site including the lightbox widget. i can use all the help i can get even if some one or anyone
    can show me the corrections i need to fix that would be great i am using dreamweaver cs6 incase you need to know...
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <title>MachoMan Madness</title>
    <map name="11_1x1">
    <area shape="rect" coords="474,138,578,150" href="http://macho-madness.net" alt="">
    <area shape="rect" coords="606,136,712,150" href="mailto:[email protected]" alt="">
    <area shape="rect" coords="737,136,835,152" href="http://daxstudios.net" alt="">
    </map>
    <style type="text/css">
    <!--
    .index{
              margin:0px;
              padding:0px;
              border:0px;
              background-image:url(back.jpg);
              background-repeat:repeat-x;
              background-color: #f5f5f5;
    h1{
              margin:0px;
              padding:15px;
              background-color:#222;
              font-family: Verdana, Geneva, sans-serif;
              font-size: 20px;
              line-height: 25px;
              color: #c8c8c8;
              letter-spacing:-1px;
    h2{
              margin:0px;
              padding:10px;
              background-color:#333;
              font-family: Verdana, Geneva, sans-serif;
              font-size: 14px;
              line-height: 15px;
              color: #c8c8c8;
              letter-spacing:-1px;
    p {
              padding:3px;
              padding-top:0px;
              font-family: Verdana, Geneva, sans-serif;
              font-size: 13px;
              line-height: 20px;
              color: #777;
              text-align:justify;
    b, strong {color: #7fa0af;}
    em {color: #555;}
    u {color: #555;}
    a:link, a:visited, a:active {text-decoration:none;color: #ada295;}
    a:hover {text-decoration:none;color:#c8c8c8;}
    -->
    </style>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Lightbox Gallery : grey</title>
    <script type='text/javascript' src='scripts/jquery.js'></script>
    <script type='text/javascript' src='scripts/lightbox.js'></script>
    <link type='text/css' href='css/lightbox.css' rel='stylesheet'/>
    <link type='text/css' href='css/sample_lightbox_layout.css' rel='stylesheet'/>
    <style type="text/css">
    .lbGallery {
                                  /*gallery container settings*/
                                  background-color: #666666;
                                  padding-left: 20px; 
                                  padding-top: 20px; 
                                  padding-right: 20px; 
                                  padding-bottom: 20px; 
                                  width: 540px;
                                  height: auto;
                                  text-align:left;
                                  box-shadow: 10px 10px 10px black;
                                  border-radius: 20px;
                                  margin-left:auto;
                                  margin-right:auto;
                        .lbGallery ul { list-style: none; margin:0;padding:0; }
                        .lbGallery ul li { display: inline;margin:0;padding:0; }
                        .lbGallery ul li a{text-decoration:none;}
                        .lbGallery ul li a img {
                                  /*border color, width and margin for the images*/
                                  border-color: #ffffff;
                                  border-left-width: 10px;
                                  border-top-width: 10px;
                                  border-right-width: 10px;
                                  border-bottom-width: 20px;
                                  margin-left:5px;
                                  margin-right:5px;
                                  margin-top:5px;
                                  margin-bottom:5px:
                        .lbGallery ul li a:hover img {
                                  /*background color on hover*/
                                  border-color: #cccccc;
                                  border-left-width: 10px;
                                  border-top-width: 10px;
                                  border-right-width: 10px;
                                  border-bottom-width: 20px;
                        #lightbox-container-image-box {
                                  border-top: 2px solid #ffffff;
                                  border-right: 2px solid #ffffff;
                                  border-bottom: 2px solid #ffffff;
                                  border-left: 2px solid #ffffff;
                        #lightbox-container-image-data-box {
                                  border-top: 0px;
                                  border-right: 2px solid #ffffff;
                                  border-bottom: 2px solid #ffffff;
                                  border-left: 2px solid #ffffff;
    </style>
    </head>
    <body class="index">
    <!-- Begin Table -->
    <table border="0" cellpadding="0" cellspacing="0" width="909" align="center">
    <tr>
    <td rowspan="1" colspan="3" width="909" height="166">
              <img name="a10" src="11_1x1.jpg" usemap="#11_1x1"  width="909" height="166" border="0" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="1" colspan="1" width="54" height="320">
              <img name="a11" src="11_2x1.jpg" width="54" height="320" border="0" alt="" /></td>
    <td rowspan="1" colspan="1" width="796" height="320" background="11_2x2.jpg">
              <link rel="stylesheet" type="text/css" href="slides/style.css" />
              <style type="text/css">a#vlb{display:none}</style>
              <script type="text/javascript" src="slides/jquery.js"></script>
              <script type="text/javascript" src="slides/slider.js"></script>
              <div id="wowslider-container1">
              <div class="ws_images">
    <span><img src="slides/9.jpg" alt="" title="" id="wows0"/></span>
    <span><img src="slides/2.jpg" alt="" title="" id="wows1"/></span>
    <span><img src="slides/3.jpg" alt="" title="" id="wows2"/></span>
    <span><img src="slides/4.jpg" alt="" title="" id="wows3"/></span>
    <span><img src="slides/5.jpg" alt="" title="" id="wows4"/></span>
    <span><img src="slides/6.jpg" alt="" title="" id="wows5"/></span>
    <span><img src="slides/7.jpg" alt="" title="" id="wows6"/></span>
    <span><img src="slides/8.jpg" alt="" title="" id="wows7"/></span>
    <span><img src="slides/1.jpg" alt="" title="" id="wows8"/></span>
    </div>
    <div class="ws_bullets"><div>
    <a href="#wows0" title="">1</a>
    <a href="#wows1" title="">2</a>
    <a href="#wows2" title="">3</a>
    <a href="#wows3" title="">4</a>
    <a href="#wows4" title="">5</a>
    <a href="#wows5" title="">6</a>
    <a href="#wows6" title="">7</a>
    <a href="#wows7" title="">8</a>
    <a href="#wows8" title="">9</a>
    </div></div></div></div>
              <script type="text/javascript" src="slides/script.js"></script></td>
    <td rowspan="1" colspan="1" width="59" height="320">
              <img name="a13" src="11_2x3.jpg" width="59" height="320" border="0" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="1" colspan="3" width="909" height="63">
              <img name="a14" src="11_3x1.jpg" width="909" height="63" border="0" alt="" /></td>
    </tr>
    </table>
    <!-- End Table -->
    <table width="840" border="0" cellspacing="0" cellpadding="0" align="center">
      <tr>
       <td class="mainlink">
    <center>
    <!--drop down menu start HTML-->
    <link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-base.css" />
    <link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-topbar.css" />
    <link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-sidebar.css" />
    <script type="text/javascript" src="ddlevelsfiles/ddlevelsmenu.js"></script>
    <div id="ddtopmenubar" class="mattblackmenu">
    <ul>
    <li><a target=main href="index.html">Home</a></li>
    <li><a target=main href="#" rel="ddsubmenu2">Biography</a></li>
    <li><a target=main href="#" rel="ddsubmenu3">To Be Lead</a></li>
    <li><a target=main href="#" rel="ddsubmenu4">Gallery</a></li>
    <li><a target=main href="#">Videos</a></li>
    <li><a target=main href="#">Memorial Page</a></li>
    <li><a target=main href="#">Wallpaper</a></li>
    <li><a target=main href="#">Shop</a></li>
    <li><a target=main href="#">Blog</a></li>
    <li><a target=main href="#">Join Us</a></li>
    <li><a target=main href="#">Contact</a></li>
    </ul>
    </div>
    <script type="text/javascript">
    ddlevelsmenu.setup("ddtopmenubar", "topbar") //ddlevelsmenu.setup("mainmenuid", "topbar|sidebar")
    </script>
    <!--Biography HTML-->
    <ul id="ddsubmenu2" class="ddsubmenustyle">
    <li><a target=main href="randy savage bio.html">Randy Savage Bio</a></li>
    <li><a target=main href="Randy facts 101.html">Randy's Facts 101</a></li>
    <li><a target=main href="his early career.html">His Early Career</a></li>
    <li><a target=main href="Randys career in wwf.html">Randy's Career in the WWF</a></li>
    <li><a target=main href="randys career wcw.html">Randy's Career in WCW</a></li>
    <li><a target=main href="#">The Mega Powers </a>
      <ul>
      <li><a target=main href="mega powers bio.html">Mega powers Bio</a></li>
      <li><a target=main href="mega powers facts 101.html">Mega Powers Facts 101</a></li>
      </ul>
    </li>
    <li><a target=main href="pm from randy.html">PM to fans & Elizabeth</a></li>
    <li><a target=main href="#">Randy's Radio interview</a></li>
    <li><a target=main href="#">His Death</a></li>
    </ul>
    <!--To be Lead HTML-->
    <ul id="ddsubmenu3" class="ddsubmenustyle">
    <li><a target=main href="#">Elizabeth Hulette</a>
      <ul>
      <li><a target=main href="#">Elizabeth Bio</a></li>
      <li><a target=main href="#">Elizabeth Facts 101</a></li>
      <li><a target=main href="#">Her Career in the WWF</a></li>
      <li><a target=main href="#">Her Career in WCW</a></li>
      <li><a target=main href="#">Later Life</a></li>
      <li><a target=main href="#">Farewell to a Princess</a></li>
      <li><a target=main href="#">Elizabeth's Radio Interview</a></li>
      <li><a target=main href="#">Elizabeth Death</a></li>
      </ul>
    </li>
    <li><a target=main href="#">Sherri Martel</a></li>
    <li><a target=main href="#">Gorgeous George</a></li>
    <li><a target=main href="#">Team Madness</a></li>
    </ul>
    <!--Photo Gallery HTML-->
    <ul id="ddsubmenu4" class="ddsubmenustyle">
    <li><a target=main href="#">Early Years</a></li>
    <li><a target=main href="#">ICW Gallery</a></li>
    <li><a target=main href="#">WWF Gallery</a></li>
    <li><a target=main href="#">WCW Gallery</a></li>
    <li><a target=main href="#">NWO Gallery</a></li>
    </ul>
    <!--drop down menu end HTML-->
    </center>
    </td>
      </tr>
    </table>
    <br><Br>
    <table width="840" border="0" cellspacing="0" cellpadding="0" align="center">
      <tr>
        <td>
        <!-- Start Page Content-->
        <h1>Early Years Gallery</h1>
    <div id="gallery" class="lbGallery">
                                  <ul>
                                            <li>
                                                      <a href="images/images (11).jpg" title=""><img src="images/images (11)_thumb.jpg" width="72" height="72" alt="Flower" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/images (16).jpg" title=""><img src="images/images (16)_thumb.jpg" width="72" height="72" alt="Tree" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/images (17).jpg" title=""><img src="images/images (17)_thumb.jpg" width="72" height="72" alt="" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/images (18).jpg" title=""><img src="images/images (18)_thumb.jpg" width="72" height="72" alt="" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/images (19).jpg" title=""><img src="images/images (19)_thumb.jpg" width="72" height="72" alt="" /></a>
                                            </li>
                    <li>
                                                      <a href="images/images (20).jpg" title=""><img src="images/images (20)_thumb.jpg" width="72" height="72" alt="Flower" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/images (22).jpg" title=""><img src="images/images (22)_thumb.jpg" width="72" height="72" alt="Tree" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/images (23).jpg" title=""><img src="images/images (23)_thumb.jpg" width="72" height="72" alt="" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/images (25).jpg" title=""><img src="images/images (25)_thumb.jpg" width="72" height="72" alt="" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/images (27).jpg" title=""><img src="images/images (27)_thumb.jpg" width="72" height="72" alt="" /></a>
                                            </li>
                    <li>
                                                      <a href="images/images (29).jpg" title=""><img src="images/images (29)_thumb.jpg" width="72" height="72" alt="Flower" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/images (30).jpg" title=""><img src="images/images (30)_thumb.jpg" width="72" height="72" alt="Tree" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/images (31).jpg" title=""><img src="images/images (31)_thumb.jpg" width="72" height="72" alt="" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/images (32).jpg" title=""><img src="images/images (32)_thumb.jpg" width="72" height="72" alt="" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/images.jpg" title=""><img src="images/images_thumb.jpg" width="72" height="72" alt="" /></a>
                                            </li>
                    <li>
      </ul>
                </div>
    <script type="text/javascript">
    $(function(){
                                  $('#gallery a').lightBox({
                                            imageLoading:                              'images/lightbox/lightbox-ico-loading.gif',                    // (string) Path and the name of the loading icon
                                            imageBtnPrev:                              'images/lightbox/lightbox-btn-prev.gif',                              // (string) Path and the name of the prev button image
                                            imageBtnNext:                              'images/lightbox/lightbox-btn-next.gif',                              // (string) Path and the name of the next button image
                                            imageBtnClose:                              'images/lightbox/lightbox-btn-close.gif',                    // (string) Path and the name of the close btn
                                            imageBlank:                                        'images/lightbox/lightbox-blank.gif',                              // (string) Path and the name of a blank image (one pixel)
                                            fixedNavigation:                    true,                    // (boolean) Boolean that informs if the navigation (next and prev button) will be fixed or not in the interface.
                                            containerResizeSpeed:          400,                               // Specify the resize duration of container image. These number are miliseconds. 400 is default.
                                            overlayBgColor:                     "#cccccc",                    // (string) Background color to overlay; inform a hexadecimal value like: #RRGGBB. Where RR, GG, and BB are the hexadecimal values for the red, green, and blue values of the color.
                                            overlayOpacity:                              .6,                    // (integer) Opacity value to overlay; inform: 0.X. Where X are number from 0 to 9
                                            txtImage:                                        'Image',                                        //Default text of image
                                            txtOf:                                                  'of'
    </script>
        <div align="left"></div>
    </p>
        <!-- End Page Content-->
        </td>
      </tr>
    </table>
    <br><br><bR>
    <div style="background-color:#222;width:100%;"><bR>
    <table width="870" border="0" cellspacing="10" cellpadding="0" align="center">
      <tr>
       <td width="35%" valign="top">
    <h2>Site Disclaimer</h2>
    <p><strong>Macho-madness</strong> is in no way in contact with World Wrestling Entertainment. All photos are copyright to World Wrestling Entertainment or their respective owners and is being used under the fair copyright of Law 107.</p>
    <p><font color="#000000">©macho-madness.net All right's Reserved.</font> </p>
       </div></td>
        <td width="35%" valign="top">
    <h2>Offical Links</h2>
    <div align="center">
      <table width="269" border="0">
        <tr>
          <td width="94"><div align="center"><a href="https://www.facebook.com/TheMadnessWillNeverBeForgotten"><img src="fb logo.jpg" width="94" height="87" alt="fb logo" longdesc="http://www.macho-madness.net" /></a></div></td>
          <td width="76"><div align="center"><a href="https://twitter.com/machomadnessnet"><img src="twitter logo.jpg" width="76" height="91" alt="twitter logo" longdesc="http://www.macho-madness.net" /></a></div></td>
          <td width="85"><div align="center"><a href="http://pinterest.com/machomadness/"><img src="pinterest logo.jpg" width="79" height="87" alt="pin logo" longdesc="http://www.macho-madness.net" /></a></div></td>
          </tr>
        <tr>
          <td><div align="center"><a href="https://vimeo.com/user13202435"><img src="vimeo.jpg" width="98" height="90" alt="vimeo" longdesc="http://www.macho-madness.net" /></a></div></td>
          <td><div align="center"><a href="http://www.youtube.com/user/mich0679"><img src="youtube logo.jpg" width="83" height="95" alt="youtube logo" longdesc="http://www.macho-madness.net" /></a></div></td>
          <td><div align="center"></div></td>
          </tr>
      </table>
    </div>
    </div></td><td width="29%" valign="top">
    <h2>About Us</h2>
    <p>Macho-madness.net is the  place for all things Randy Savage and is dedicated to the &quot;Memories of Randy Savage.&quot;  We hope you'll take some time to look around and relive some classic moment's from Randy's long time career, and Enjoy!</p>
    </td></tr></table></div>
    </body>
    </html>

    i have done all repairs you have adviced but there are still 32 errors and 3 warnings.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>MachoMan Madness</title>
    </head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <script type='text/javascript' src='scripts/jquery.js'></script>
    <script type='text/javascript' src='scripts/lightbox.js'></script>
    <link type='text/css' href='css/lightbox.css' rel='stylesheet'/>
    <link type='text/css' href='css/sample_lightbox_layout.css' rel='stylesheet'/>
    <style type="text/css">
    .lbGallery {
                                  /*gallery container settings*/
                                  background-color: #666666;
                                  padding-left: 20px; 
                                  padding-top: 20px; 
                                  padding-right: 20px; 
                                  padding-bottom: 20px; 
                                  width: 540px;
                                  height: auto;
                                  text-align:left;
                                  box-shadow: 10px 10px 10px black;
                                  border-radius: 20px;
                                  margin-left:auto;
                                  margin-right:auto;
                        .lbGallery ul { list-style: none; margin:0;padding:0; }
                        .lbGallery ul li { display: inline;margin:0;padding:0; }
                        .lbGallery ul li a{text-decoration:none;}
                        .lbGallery ul li a img {
                                  /*border color, width and margin for the images*/
                                  border-color: #ffffff;
                                  border-left-width: 10px;
                                  border-top-width: 10px;
                                  border-right-width: 10px;
                                  border-bottom-width: 20px;
                                  margin-left:5px;
                                  margin-right:5px;
                                  margin-top:5px;
                                  margin-bottom:5px:
                        .lbGallery ul li a:hover img {
                                  /*background color on hover*/
                                  border-color: #cccccc;
                                  border-left-width: 10px;
                                  border-top-width: 10px;
                                  border-right-width: 10px;
                                  border-bottom-width: 20px;
                        #lightbox-container-image-box {
                                  border-top: 2px solid #ffffff;
                                  border-right: 2px solid #ffffff;
                                  border-bottom: 2px solid #ffffff;
                                  border-left: 2px solid #ffffff;
                        #lightbox-container-image-data-box {
                                  border-top: 0px;
                                  border-right: 2px solid #ffffff;
                                  border-bottom: 2px solid #ffffff;
                                  border-left: 2px solid #ffffff;
    </style>
    <style type="text/css">
    <!--
    .index{
              margin:0px;
              padding:0px;
              border:0px;
              background-image:url(back.jpg);
              background-repeat:repeat-x;
              background-color: #f5f5f5;
    h1{
              margin:0px;
              padding:15px;
              background-color:#222;
              font-family: Verdana, Geneva, sans-serif;
              font-size: 20px;
              line-height: 25px;
              color: #c8c8c8;
              letter-spacing:-1px;
    h2{
              margin:0px;
              padding:10px;
              background-color:#333;
              font-family: Verdana, Geneva, sans-serif;
              font-size: 14px;
              line-height: 15px;
              color: #c8c8c8;
              letter-spacing:-1px;
    p {
              padding:3px;
              padding-top:0px;
              font-family: Verdana, Geneva, sans-serif;
              font-size: 13px;
              line-height: 20px;
              color: #777;
              text-align:justify;
    b, strong {color: #7fa0af;}
    em {color: #555;}
    u {color: #555;}
    a:link, a:visited, a:active {text-decoration:none;color: #ada295;}
    a:hover {text-decoration:none;color:#c8c8c8;}
    -->
    </style></head>
    <body class="index">
    <!-- Begin Table -->
    <table border="0" cellpadding="0" cellspacing="0" width="909" align="center">
    <tr>
    <td rowspan="1" colspan="3" width="909" height="166">
              <img name="a10" src="11_1x1.jpg" usemap="#11_1x1"  width="909" height="166" border="0" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="1" colspan="1" width="54" height="320">
              <img name="a11" src="11_2x1.jpg" width="54" height="320" border="0" alt="" /></td>
    <td rowspan="1" colspan="1" width="796" height="320" background="11_2x2.jpg">
              <link rel="stylesheet" type="text/css" href="slides/style.css" />
              <style type="text/css">a#vlb{display:none}</style>
              <script type="text/javascript" src="slides/jquery.js"></script>
              <script type="text/javascript" src="slides/slider.js"></script>
              <div id="wowslider-container1">
              <div class="ws_images">
    <span><img src="slides/9.jpg" alt="" title="" id="wows0"/></span>
    <span><img src="slides/2.jpg" alt="" title="" id="wows1"/></span>
    <span><img src="slides/3.jpg" alt="" title="" id="wows2"/></span>
    <span><img src="slides/4.jpg" alt="" title="" id="wows3"/></span>
    <span><img src="slides/5.jpg" alt="" title="" id="wows4"/></span>
    <span><img src="slides/6.jpg" alt="" title="" id="wows5"/></span>
    <span><img src="slides/7.jpg" alt="" title="" id="wows6"/></span>
    <span><img src="slides/8.jpg" alt="" title="" id="wows7"/></span>
    <span><img src="slides/1.jpg" alt="" title="" id="wows8"/></span>
    </div>
    <div class="ws_bullets"><div>
    <a href="#wows0" title="">1</a>
    <a href="#wows1" title="">2</a>
    <a href="#wows2" title="">3</a>
    <a href="#wows3" title="">4</a>
    <a href="#wows4" title="">5</a>
    <a href="#wows5" title="">6</a>
    <a href="#wows6" title="">7</a>
    <a href="#wows7" title="">8</a>
    <a href="#wows8" title="">9</a>
    </div></div></div></div>
              <script type="text/javascript" src="slides/script.js"></script></td>
    <td rowspan="1" colspan="1" width="59" height="320">
              <img name="a13" src="11_2x3.jpg" width="59" height="320" border="0" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="1" colspan="3" width="909" height="63">
              <img name="a14" src="11_3x1.jpg" width="909" height="63" border="0" alt="" /></td>
    </tr>
    </table>
    <!-- End Table -->
    <table width="840" border="0" cellspacing="0" cellpadding="0" align="center">
      <tr>
       <td class="mainlink">
    <center>
    <!--drop down menu start HTML-->
    <link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-base.css" />
    <link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-topbar.css" />
    <link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-sidebar.css" />
    <script type="text/javascript" src="ddlevelsfiles/ddlevelsmenu.js"></script>
    <div id="ddtopmenubar" class="mattblackmenu">
    <ul>
    <li><a target="main" href="index.html">Home</a></li>
    <li><a target="main" href="#" rel="ddsubmenu2">Biography</a></li>
    <li><a target="main" href="#" rel="ddsubmenu3">To Be Lead</a></li>
    <li><a target="main" href="#" rel="ddsubmenu4">Gallery</a></li>
    <li><a target="main" href="#">Videos</a></li>
    <li><a target="main" href="#">Memorial Page</a></li>
    <li><a target="main" href="#">Wallpaper</a></li>
    <li><a target="main" href="#">Blog</a></li>
    <li><a target="main" href="#">Join Us</a></li>
    <li><a target="main" href="#">Contact</a></li>
    </ul>
    </div>
    <script type="text/javascript">
    ddlevelsmenu.setup("ddtopmenubar", "topbar") //ddlevelsmenu.setup("mainmenuid", "topbar|sidebar")
    </script>
    <!--Biography HTML-->
    <ul id="ddsubmenu2" class="ddsubmenustyle">
    <li><a target="main" href="randy savage bio.html">Randy Savage Bio</a></li>
    <li><a target="main" href="Randy facts 101.html">Randy's Facts 101</a></li>
    <li><a target="main" href="his early career.html">His Early Career</a></li>
    <li><a target="main" href="Randys career in wwf.html">Randy's Career in the WWF</a></li>
    <li><a target="main" href="randys career wcw.html">Randy's Career in WCW</a></li>
    <li><a target="main" href="#">The Mega Powers </a>
      <ul>
      <li><a target="main" href="mega powers bio.html">Mega powers Bio</a></li>
      <li><a target="main" href="mega powers facts 101.html">Mega Powers Facts 101</a></li>
      </ul>
    </li>
    <li><a target="main" href="pm from randy.html">PM to fans & Elizabeth</a></li>
    <li><a target="main" href="#">Randy's Radio interview</a></li>
    <li><a target="main" href="#">His Death</a></li>
    </ul>
    <!--To be Lead HTML-->
    <ul id="ddsubmenu3" class="ddsubmenustyle">
    <li><a target="main" href="#">Elizabeth Hulette</a>
      <ul>
      <li><a target="main" href="#">Elizabeth Bio</a></li>
      <li><a target="main" href="#">Elizabeth Facts 101</a></li>
      <li><a target="main" href="#">Her Career in the WWF</a></li>
      <li><a target="main" href="#">Her Career in WCW</a></li>
      <li><a target="main" href="#">Later Life</a></li>
      <li><a target="main" href="#">Farewell to a Princess</a></li>
      <li><a target="main" href="#">Elizabeth's Radio Interview</a></li>
      <li><a target="main" href="#">Elizabeth Death</a></li>
      </ul>
    </li>
    <li><a target="main" href="#">Sherri Martel</a></li>
    <li><a target="main" href="#">Gorgeous George</a></li>
    <li><a target="main" href="#">Team Madness</a></li>
    </ul>
    <!--Photo Gallery HTML-->
    <ul id="ddsubmenu4" class="ddsubmenustyle">
    <li><a target="main" href="#">Early Years</a></li>
    <li><a target="main" href="#">ICW Gallery</a></li>
    <li><a target="main" href="#">WWF Gallery</a></li>
    <li><a target="main" href="#">WCW Gallery</a></li>
    <li><a target="main" href="#">NWO Gallery</a></li>
    </ul>
    <!--drop down menu end HTML-->
    </center>
    </td>
      </tr>
    </table>
    <br/><br/>
    <table width="840" border="0" cellspacing="0" cellpadding="0" align="center">
      <tr>
        <td>
        <!-- Start Page Content-->
    </head>
    <body>
        <map name="11_1x1" id="logo_11_1x1">
    <area shape="rect" coords="474,138,578,150" href="http://macho-madness.net" alt=""/>
    <area shape="rect" coords="606,136,712,150" href="mailto:[email protected]" alt=""/>
    <area shape="rect" coords="737,136,835,152" href="http://daxstudios.net" alt=""/>
    </map>
        <h1>Early Years Gallery</h1>
    <div id="gallery" class="lbGallery">
                                  <ul>
                                            <li>
                                                      <a href="images/11.jpg" title=""><img src="images/11_thumb.jpg" width="72" height="72" alt="Flower" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/16.jpg" title=""><img src="images/16_thumb.jpg" width="72" height="72" alt="Tree" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/17.jpg" title=""><img src="images/17_thumb.jpg" width="72" height="72" alt="" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/18.jpg" title=""><img src="images/18_thumb.jpg" width="72" height="72" alt="" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/19.jpg" title=""><img src="images/19_thumb.jpg" width="72" height="72" alt="" /></a>
                                            </li>
                    <li>
                                                      <a href="images/20.jpg" title=""><img src="images/20_thumb.jpg" width="72" height="72" alt="Flower" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/22.jpg" title=""><img src="images/22_thumb.jpg" width="72" height="72" alt="Tree" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/23.jpg" title=""><img src="images/23_thumb.jpg" width="72" height="72" alt="" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/25.jpg" title=""><img src="images/25_thumb.jpg" width="72" height="72" alt="" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/27.jpg" title=""><img src="images/27_thumb.jpg" width="72" height="72" alt="" /></a>
                                            </li>
                    <li>
                                                      <a href="images/29.jpg" title=""><img src="images/29_thumb.jpg" width="72" height="72" alt="Flower" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/30.jpg" title=""><img src="images/30_thumb.jpg" width="72" height="72" alt="Tree" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/31.jpg" title=""><img src="images/31_thumb.jpg" width="72" height="72" alt="" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/32.jpg" title=""><img src="images/32_thumb.jpg" width="72" height="72" alt="" /></a>
                                            </li>
                                            <li>
                                                      <a href="images/images.jpg" title=""><img src="images/images_thumb.jpg" width="72" height="72" alt="" /></a>
                                            </li>
                    <li>
      </ul>
    </div>
    <script type="text/javascript">
    $(function(){
                                  $('#gallery a').lightBox({
                                            imageLoading:                              'images/lightbox/lightbox-ico-loading.gif',                    // (string) Path and the name of the loading icon
                                            imageBtnPrev:                              'images/lightbox/lightbox-btn-prev.gif',                              // (string) Path and the name of the prev button image
                                            imageBtnNext:                              'images/lightbox/lightbox-btn-next.gif',                              // (string) Path and the name of the next button image
                                            imageBtnClose:                              'images/lightbox/lightbox-btn-close.gif',                    // (string) Path and the name of the close btn
                                            imageBlank:                                        'images/lightbox/lightbox-blank.gif',                              // (string) Path and the name of a blank image (one pixel)
                                            fixedNavigation:                    true,                    // (boolean) Boolean that informs if the navigation (next and prev button) will be fixed or not in the interface.
                                            containerResizeSpeed:          400,                               // Specify the resize duration of container image. These number are miliseconds. 400 is default.
                                            overlayBgColor:                     "#cccccc",                    // (string) Background color to overlay; inform a hexadecimal value like: #RRGGBB. Where RR, GG, and BB are the hexadecimal values for the red, green, and blue values of the color.
                                            overlayOpacity:                              .6,                    // (integer) Opacity value to overlay; inform: 0.X. Where X are number from 0 to 9
                                            txtImage:                                        'Image',                                        //Default text of image
                                            txtOf:                                                  'of'
    </script>
        <div align="left"></div>
    </p>
        <!-- End Page Content-->
        </td>
      </tr>
    </table>
    <br/><br/><br/>
    <div style="background-color:#222;width:100%;"><br/>
    <table width="870" border="0" cellspacing="10" cellpadding="0" align="center">
      <tr>
       <td width="35%" valign="top">
    <h2>Site Disclaimer</h2>
    <p><strong>Macho-madness</strong> is in no way in contact with World Wrestling Entertainment. All photos are copyright to World Wrestling Entertainment or their respective owners and is being used under the fair copyright of Law 107.</p>
    <p><font color="#000000">&copy;macho-madness.net All right's Reserved.</font> </p>
       </div></td>
        <td width="35%" valign="top">
    <h2>Offical Links</h2>
    <div align="center">
      <table width="269" border="0">
        <tr>
          <td width="94"><div align="center"><a href="https://www.facebook.com/TheMadnessWillNeverBeForgotten"><img src="fb logo.jpg" width="94" height="87" alt="fb logo" longdesc="http://www.macho-madness.net" /></a></div></td>
          <td width="76"><div align="center"><a href="https://twitter.com/machomadnessnet"><img src="twitter logo.jpg" width="76" height="91" alt="twitter logo" longdesc="http://www.macho-madness.net" /></a></div></td>
          <td width="85"><div align="center"><a href="http://pinterest.com/machomadness/"><img src="pinterest logo.jpg" width="79" height="87" alt="pin logo" longdesc="http://www.macho-madness.net" /></a></div></td>
          </tr>
        <tr>
          <td><div align="center"><a href="https://vimeo.com/user13202435"><img src="vimeo.jpg" width="98" height="90" alt="vimeo" longdesc="http://www.macho-madness.net" /></a></div></td>
          <td><div align="center"><a href="http://www.youtube.com/user/mich0679"><img src="youtube logo.jpg" width="83" height="95" alt="youtube logo" longdesc="http://www.macho-madness.net" /></a></div></td>
          <td><div align="center"></div></td>
          </tr>
      </table>
    </div>
    </div></td><td width="29%" valign="top">
    <h2>About Us</h2>
    <p>Macho-madness.net is the  place for all things Randy Savage and is dedicated to the &quot;Memories of Randy Savage.&quot;  We hope you'll take some time to look around and relive some classic moment's from Randy's long time career, and Enjoy!</p>
    </td></tr></table></div>
    </body>
    </html>

  • In AJAX4JSF, reRender is not working properly.

    Hi,
    I am using JSF with ajax4jsf version 1.0.2.
    I am having the following jsf page and the corresponding bean class. If bean throws any error message, the javascript method "showErrorMsg" is getting called, but, "userProfoileErrMsg" is always empty. The same logic worked in one page, but not working here. Can somebody tell why this is not working.
    What I wanted to do is once an exception is thrown by the backend, I will catch that error in the bean class and take the error message from that exception and display that to the user using AJAX.
    I have a doubt here. How does reRender or targetid work in this case?
    Thanks
    -raju
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=utf-8"
    session="true" errorPage="/error.jsp"%>
    <%@ taglib uri="http://java.sun.com/jsf/html"
    prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core"
    prefix="f"%>
    <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax"
    prefix="a4j"%>
    <f:view>
      <html>
        <head>
          <meta http-equiv="Content-Type"
    content="text/html; charset=utf-8"/>
          <title>iTools</title>
          <link rel="StyleSheet" href="../css/iTools.css"
    type="text/css" media="screen"/>
          <script type="text/javascript">
            function showErrorMsg() {
                alert('error');
    if(document.getElementById('profile:userProfoileErrMsg').value
    != '') {
    alert(document.getElementById('profile:userProfoileErrMsg').value);
    document.getElementById('profile:userProfoileErrMsg').value='';
          </script>
        </head>
        <body topmargin="30">
            <h2 class="title">Modify Session User
    Profile</h2>
            <h:form
    binding="#{backing_General_userProfile.profile}"
    id="profile">
                <table cellpadding="2" cellspacing="2"
    border="0" summary="" align="center"
    class="onlyBorder">
                    <tbody><tr>
                        <td class="fieldColumnNR">First
    Name</td>
                        <td class="fieldColumnNR">:</td>
                        <td class="dataColumnNR">
                            <h:inputText
    binding="#{backing_General_userProfile.iuser__userfname}"
    id="iuser__userfname" size="20" maxlength="512"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldColumnNR">Last
    Name</td>
                        <td class="fieldColumnNR">:</td>
                        <td class="dataColumnNR">
                            <h:inputText
    binding="#{backing_General_userProfile.iuser__userlname}"
    id="iuser__userlname" size="20" maxlength="512"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldColumnNR"><font
    color="red">Email (*)</font></td>
                        <td class="fieldColumnNR">:</td>
                        <td class="dataColumnNR">
                            <h:inputText
    binding="#{backing_General_userProfile.iuser__useremail}"
    id="iuser__useremail" size="20" maxlength="512"
    required="true"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="dataColumnNR"
    colspan="3">
                            <h:selectBooleanCheckbox
    binding="#{backing_General_userProfile.changePassword}"
    id="changePassword"/>Change Password
                        </td>
                    </tr>
                    <tr>
                        <td
    class="fieldColumnNR">Password</td>
                        <td class="fieldColumnNR">:</td>
                        <td class="dataColumnNR">
                            <h:inputSecret
    binding="#{backing_General_userProfile.iuser__userpasswd}"
    id="iuser__userpasswd" size="20" maxlength="20"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldColumnNR">Re-type
    Password</td>
                        <td class="fieldColumnNR">:</td>
                        <td class="dataColumnNR">
                            <h:inputSecret
    binding="#{backing_General_userProfile.passwordRetype}"
    id="passwordRetype" size="20" maxlength="20"/>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <a4j:commandButton
    styleClass="tabactive1" style="PADDING-RIGHT: 1px;
    PADDING-LEFT: 1px; FONT-WEIGHT: bold; PADDING-BOTTOM:
    1px; PADDING-TOP: 1px" value="Submit"
    action="#{backing_General_userProfile.submit_action}"
    reRender="userProfoileErrMsg"
    oncomplete="showErrorMsg()"/>
                        </td>
                        <td><h:inputHidden
    id="userProfoileErrMsg"
    binding="#{backing_General_userProfile.userProfoileErrMsg}"/></td>
                        <td align="left">
                            <input type="reset"
    value="Reset" class="tabactive1" style="PADDING-RIGHT:
    1px; PADDING-LEFT: 1px; FONT-WEIGHT: bold;
    PADDING-BOTTOM: 1px; PADDING-TOP: 1px"/>
                        </td>
                    </tr>
                </tbody></table>
            </h:form>
        </body>
      </html>
    </f:view>
    package com.itools.vs.view.backing.General;
    import com.itools.vs.model.exception.UnknownException;
    import com.itools.vs.model.exception.WarningException;
    import com.itools.vs.model.session.DefaultSession;
    import com.itools.vs.model.util.CatalogHelper;
    import com.itools.vs.view.exception.ViewException;
    import com.itools.vs.view.util.ViewUtil;
    import java.rmi.RemoteException;
    import java.util.Hashtable;
    import javax.faces.component.html.HtmlForm;
    import javax.faces.component.html.HtmlInputHidden;
    import javax.faces.component.html.HtmlInputSecret;
    import javax.faces.component.html.HtmlInputText;
    import
    javax.faces.component.html.HtmlSelectBooleanCheckbox;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpSession;
    public class UserProfile {
        private HtmlForm profile;
        private HtmlInputText iuser__userfname;
        private HtmlInputText iuser__userlname;
        private HtmlInputText iuser__useremail;
        private HtmlInputSecret iuser__userpasswd;
        private HtmlInputSecret passwordRetype;
        private HtmlSelectBooleanCheckbox changePassword;
        private HtmlInputHidden userProfoileErrMsg;
        private DefaultSession ds = null;
        private HttpSession session = null;
        public UserProfile() throws ViewException {
            ExternalContext context =
    FacesContext.getCurrentInstance().getExternalContext();
            HttpServletRequest request =
    (HttpServletRequest) context.getRequest();
            session = request.getSession(true);
            ds =
    (DefaultSession)session.getAttribute("DefaultSession");
            HtmlInputHidden em;
            if (ds == null) {
                CatalogHelper ch = new
    CatalogHelper("ITOOLS_100013");
                em = new HtmlInputHidden();
                em.setValue(ch.getCatalogMessage());
                setUserProfoileErrMsg(em);
                throw new ViewException (ch);
            Hashtable sdetails = null;
            try {
                sdetails = ds.getSessionUserDetails();
            } catch (WarningException we) {
                em = new HtmlInputHidden();
                em.setValue(we.getCatalogMessage());
                setUserProfoileErrMsg(em);
                throw new ViewException
    (we.getCatalogHelper());
            } catch (UnknownException ue) {
                em = new HtmlInputHidden();
                em.setValue(ue.getCatalogMessage());
                setUserProfoileErrMsg(em);
                throw new ViewException
    (ue.getCatalogHelper());
            } catch (RemoteException re) {
                CatalogHelper ch = new
    CatalogHelper("ITOOLS_100012", re.getMessage());
                em = new HtmlInputHidden();
                em.setValue(ch.getCatalogMessage());
                setUserProfoileErrMsg(em);
                throw new ViewException (ch);
            if ((sdetails == null) || sdetails.isEmpty())
                CatalogHelper ch = new
    CatalogHelper("ITOOLS_050002");
                em = new HtmlInputHidden();
                em.setValue(ch.getCatalogMessage());
                setUserProfoileErrMsg(em);
                throw new ViewException (ch);
            // Intialize userfname.
            String fname =
    (String)sdetails.get("iuser__userfname");
            if (fname == null) {
                fname = "";
            HtmlInputText ftext = new HtmlInputText();
            ftext.setValue(fname);
            setIuser__userfname(ftext);
            // Initialize userlname
            String lname =
    (String)sdetails.get("iuser__userlname");
            if (lname == null) {
                lname = "";
            HtmlInputText ltext = new HtmlInputText();
            ltext.setValue(lname);
            setIuser__userlname(ltext);
            // Intialize useremail
            String email =
    (String)sdetails.get("iuser__useremail");
            if (email == null) {
                email = "";
            HtmlInputText etext = new HtmlInputText();
            etext.setValue(email);
            setIuser__useremail(etext);
            // Intialize password field
            HtmlInputSecret passwd = new
    HtmlInputSecret();
            passwd.setValue("");
            setIuser__userpasswd(passwd);
            // Initialize retype password
            HtmlInputSecret retype = new
    HtmlInputSecret();
            retype.setValue("");
            setPasswordRetype(retype);
            // Intialize checkbox
            HtmlSelectBooleanCheckbox check = new
    HtmlSelectBooleanCheckbox();
            check.setValue("1");
            this.setChangePassword(check);
            // Intialize error message
            HtmlInputHidden hid = new HtmlInputHidden();
            hid.setValue("");
            setUserProfoileErrMsg(hid);
        public void setProfile(HtmlForm profile) {
            this.profile = profile;
        public HtmlForm getProfile() {
            return profile;
        public void setIuser__userfname(HtmlInputText
    iuser__userfname) {
            this.iuser__userfname = iuser__userfname;
        public HtmlInputText getIuser__userfname() {
            return iuser__userfname;
        public void setIuser__userlname(HtmlInputText
    iuser__userlname) {
            this.iuser__userlname = iuser__userlname;
        public HtmlInputText getIuser__userlname() {
            return iuser__userlname;
        public void setIuser__useremail(HtmlInputText
    iuser__useremail) {
            this.iuser__useremail = iuser__useremail;
        public HtmlInputText getIuser__useremail() {
            return iuser__useremail;
        public void setIuser__userpasswd(HtmlInputSecret
    iuser__userpasswd) {
            this.iuser__userpasswd = iuser__userpasswd;
        public HtmlInputSecret getIuser__userpasswd() {
            return iuser__userpasswd;
        public void setPasswordRetype(HtmlInputSecret
    passwordRetype) {
            this.passwordRetype = passwordRetype;
        public HtmlInputSecret getPasswordRetype() {
            return passwordRetype;
        public void
    setChangePassword(HtmlSelectBooleanCheckbox
    changePassword) {
            this.changePassword = changePassword;
        public HtmlSelectBooleanCheckbox
    getChangePassword() {
            return changePassword;
        public void setUserProfoileErrMsg (HtmlInputHidden
    userProfoileErrMsg) {
            this.userProfoileErrMsg = userProfoileErrMsg;
        public HtmlInputHidden getUserProfoileErrMsg() {
            return userProfoileErrMsg;
        public String submit_action() {
            Hashtable userDetails = new Hashtable();
            userDetails.put ("iuser__userlname",
    getIuser__userlname().getValue());
            userDetails.put ("iuser__userfname",
    getIuser__userfname().getValue());
            userDetails.put ("iuser__useremail",
    getIuser__useremail().getValue());
            userDetails.put ("iuser__userpasswd",
    getIuser__userpasswd().getValue());
            userDetails.put ("PasswordRetype",
    getPasswordRetype().getValue());
            Boolean cp =
    (Boolean)getChangePassword().getValue();
            if (cp != null) {
                userDetails.put ("ChangePassword", cp);
            } else {
                userDetails.put ("ChangePassword",
    Boolean.valueOf(false));
            HtmlInputHidden msg;
            try {
                ds.modifySessionUserProfile(userDetails);
            } catch (WarningException we) {
                msg = new HtmlInputHidden();
                msg.setValue(we.getCatalogMessage());
                setUserProfoileErrMsg(msg);
                ViewUtil.addWarningMessage(we);
                return "Failure";
            } catch (UnknownException ue) {
                msg = new HtmlInputHidden();
                msg.setValue(ue.getCatalogMessage());
                setUserProfoileErrMsg(msg);
                ViewUtil.addWarningMessage(ue);
                return "Failure";
            } catch (RemoteException re) {
                msg = new HtmlInputHidden();
                msg.setValue(re.getMessage());
                setUserProfoileErrMsg(msg);
                ViewUtil.addFatalMessage(re);
                return "Failure";
            return "Success";
    faces-config.xml
    <managed-bean>
    <managed-bean-name>backing_General_userProfile</managed-bean-name>
    <managed-bean-class>com.itools.vs.view.backing.General.UserProfile</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>
      <navigation-rule>
    <from-view-id>/General/userProfile.jsp</from-view-id>
        <navigation-case>
          <from-outcome>Success</from-outcome>
    <to-view-id>/General/generalInfo.jsp</to-view-id>
        </navigation-case>
      </navigation-rule>

    Hi,
    Replacing "Failure" with "null" did not work. However, when I added few println statements, I came to know that, reRender is getting executed before, catch block is entered. Hennce, I am getting the value of the of hidden variable as empty.
    06/10/20 11:10:24 In the set profile error message.
    (This is while loading the page)
    06/10/20 11:10:24 In get Profile err msg :
    (This is while loading the page)
    06/10/20 11:10:49 In the set profile error message.
    06/10/20 11:10:49 In the set profile error message.
    (Don't know why two times set profile error message is executed)
    (Now the catch block is executed.)
    2006-10-20 11:10:49.828 WARNING J2EE RMI-00009 Exception returned by remote server: {0}
    06/10/20 11:10:49 Exception occured.
    06/10/20 11:10:49 Error message is set
    Is this the right behaviour or reRender? Not sure what I am doing wrong here.
    regds
    -raju

  • Urgent: SAX parser bean is not working in JSP page

    Hi All,
    I have created a bean "ReadAtts" and included into a jsp file using
    "useBean", It is not working. I tried all possibilities. But Failed Plz Help me.
    Below are the details:
    Java Bean: ReadAtts.java
    package sax;
    import java.io.*;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import java.util.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.ParserConfigurationException;
    public class ReadAtts extends DefaultHandler implements java.io.Serializable
         private Vector attNames = new Vector(); //Stores all the att names from the XML
         private Vector attValues = new Vector();
         private Vector att = new Vector();
         private Locator locator;
         private static String start="",end="",QueryString="",QString1="",QString2="";
    private static boolean start_collecting=false;
         public ReadAtts()
         public Vector parse(String filename,String xpath) throws Exception
    QueryString=xpath;
         StringTokenizer QueryString_ST = new StringTokenizer(QueryString,"/");
         int stLen = QueryString_ST.countTokens();
         while(QueryString_ST.hasMoreTokens())
              if((QueryString_ST.countTokens())>1)
              QString1 = QueryString_ST.nextToken();
    else if((QueryString_ST.countTokens())>0)
                   QString2 = QueryString_ST.nextToken();
         SAXParserFactory spf =
    SAXParserFactory.newInstance();
    spf.setValidating(false);
    SAXParser saxParser = spf.newSAXParser();
    // create an XML reader
    XMLReader reader = saxParser.getXMLReader();
    FileReader file = new FileReader(filename);
    // set handler
    reader.setContentHandler(this);
    // call parse on an input source
    reader.parse(new InputSource(file));
         att.add("This is now added");
         //return attNames;
    return att;
    public void setDocumentLocator(Locator locator)
    this.locator = locator;
    public void startDocument() {   }
    public void endDocument() {  }
    public void startPrefixMapping(String prefix, String uri) { }
    public void endPrefixMapping(String prefix) {  }
    /** The opening tag of an element. */
    public void startElement(String namespaceURI, String localName,String qName, Attributes atts)
    start=localName;
    if(start.equals(QString2))
    start_collecting=true; //start collecting nodes
    if(start_collecting)
    if((atts.getLength())>0)
    for(int i=0;i<=(atts.getLength()-1);i++)
    attNames.add((String)atts.getLocalName(i));
    attValues.add((String)atts.getValue(i));
    /** The closing tag of an element. */
    public void endElement(String namespaceURI, String localName, String qName)
    end = localName;
    if(end.equals(QString2))
         start_collecting=false; //stop colelcting nodes
    /** Character data. */
    public void characters(char[] ch, int start, int length) { }
    /** Ignorable whitespace character data. */
    public void ignorableWhitespace(char[] ch, int start, int length){ }
    /** Processing Instruction */
    public void processingInstruction(String target, String data) { }
    /** A skipped entity. */
    public void skippedEntity(String name) { }
    public static void main(String[] args)
    String fname=args[0];
    String Xpath=args[1];
    System.out.println("\n from main() "+(new ReadAtts().parse(fname,Xpath)));
    //System.out.println("\n from main() "+new ReadAtts().attNames());
    //System.out.println("\n from main() "+new ReadAtts().attValues());
    JSP File:
    <%@ page import="sax.*,java.io.*,java.util.*,java.lang.*,java.text.*;" %>
    <jsp:useBean id="p" class="sax.ReadAtts"/>
    Data after Parsing is.....
    <%=p.parse"E:/Log.xml","/acq/service/metrics/system/stackUsage")%>
    Expected Output:
    The jsp file should print all the vector objects from the "ReadAtts" bean
    Actual Output:
    Data after Parsing.......[]
    Thanks for your time.....
    Newton
    Bangalore. INDIA

    the problem is not because of java code insdie jsp page
    I have removed all things but the form and it is still not working
    here is the modified code:
    <!-- add news-->
    <%
    if(request.getParameter("addBTN") != null){
            out.print("addBTN");
    %>
    <!-- end of add news-->
    <form action="" method="post" enctype="multipart/form-data" name="upform" >
      <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
        <tr>
          <td colspan="2" align="right" bgcolor="#EAEAEA" class="borderdTable"><p>'6'A) .(1 ,/J/</p></td>
        </tr>
        <tr>
          <td width="87%" align="right"><label>
            <input name="title" type="text" class="rightText" id="title">
          </label></td>
          <td width="13%" align="right">9FH'F 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><textarea name="elm1" cols="50" rows="10" id="elm1" style="direction:rtl" >
              </textarea></td>
          <td align="right">*A'5JD 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input type="file" name="filename" id="filename">
          </label></td>
          <td align="right">5H1)</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input name="addBTN" type="submit" class="btn" id="addBTN" value="  '6'A) .(1 ">
          </label></td>
          <td align="right"> </td>
        </tr>
      </table>
    </form>
    <!-- TinyMCE -->
    <script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
            tinyMCE.init({
                    mode : "textareas",
                    theme : "simple",
                    directionality : "rtl"
    </script>
    <!--end of TinyMCE -->

  • Spry Menu not working correctly

    Hopefully this is the right part of the forum to post this question, if not, I apologize.
    I have created a site in dreamweaver and am using a single Spry Menu Bar. I have read tons of forum postings about Drop down menus not working in IE, however, mine don't work in any browser or in the Live View either. I have a feeling it has something to do with either the div containing the menu bar or the sizing, but I can't tell.  Please help.
    ul.MenuBarHorizontal
              margin: 0;
              padding: 0;
              list-style-type: none;
              font-size:17px;
              font-family:Tahoma, Geneva, sans-serif;
              cursor: default;
              width: 100%;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
              z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
              margin: 0;
              padding: 0;
              list-style-type: none;
              font-size:100%;
              position: relative;
              text-align: left;
              cursor: pointer;
              width:6.8em;
              height:3.5em;
              float: left;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
              margin: 0;
              padding: 0;
              list-style-type: none;
              font-size:100%;
              z-index: 1020;
              cursor: default;
              width: 8.2em;
              position: absolute;
              left: -1000em;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
              left: auto;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
              width: 8.2em;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
              position: absolute;
              margin: -5% 0 0 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
              left: auto;
              top: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
              border: 1px solid #CCC;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
              display: block;
              cursor: pointer;
              background-color: #CCC;
              padding: 0.7em 0.5em;
              color: #333;
              text-decoration: none;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
              background-color: #33C;
              color: #FFF;
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
              background-color: #33C;
              color: #FFF;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
              background-image: url(SpryMenuBarDown.gif);
              background-repeat: no-repeat;
              background-position: 95% 50%;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
              background-image: url(SpryMenuBarRight.gif);
              background-repeat: no-repeat;
              background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
              background-image: url(SpryMenuBarDownHover.gif);
              background-repeat: no-repeat;
              background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
              background-image: url(SpryMenuBarRightHover.gif);
              background-repeat: no-repeat;
              background-position: 95% 50%;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
              position: absolute;
              z-index: 1010;
              filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
              ul.MenuBarHorizontal li.MenuBarItemIE
                        display: inline;
                        float: left;
                        background: #FFF;
    Here is the code for the page
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <script language="javascript" type="text/javascript" src="http://www.onbile.com/websites/41ea989914d81eb7bd2e415141cd40fe"></script>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>GuitarFusion.com - Play. Learn. Make Music</title>
    <link href="guitarfusionblogstyle.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    <!--[if lt IE 7.]>
    <script defer type="text/javascript" src="pngfix.js"></script>
    <![endif]-->
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-15280994-2']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    </head>
    <body onload="MM_preloadImages('images/homeOver.jpg','images/BioOver.jpg','images/LearnOver.jpg ','images/LessonsOver.jpg','images/ContactOver.jpg')">
    <div id="wrapper">
    <div id="header">
    <div id="logo"></div>
    <div id="social"><a href="http://www.facebook.com/pages/Guitarfusion/208575872514732"><img src="../images/facebook_32.png" width="32" height="32" alt="Facebook" border="0"/></a><a href="http://www.linkedin.com/in/sammills"><img src="../images/linkedin_32.png" width="32" height="32" alt="Linkedin" border="0" /></a><a href="http://www.myspace.com/lucid77"><img src="../images/myspace_32.png" width="32" height="32" alt="Myspace" border="0" /></a><a href="http://twitter.com/#!/guitarfusion"><img src="../images/twitter_32.png" width="32" height="32" alt="Twitter" border="0"></a><a href="http://www.guitarfusion.com/blog"><img src="../images/wordpress_32.png" width="32" height="32" alt="Wordpress" border="0"/></a><a href="http://www.youtube.com/guitarfusiondotcom"><img src="../images/youtube_32.png" width="32" height="32" alt="Youtube" border="0" /></a></div>
    <!-- Old Nav
    <div id="nav"><a href="index.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Home','','images/homeOver.jpg',1)"><img src="images/home.jpg" alt="Home" name="Home" width="97" height="45" border="0" id="Home" /></a><a href="biography.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Bio','','images/BioOver.jpg',1)"><img src="images/Bio.jpg" alt="Biography" name="Bio" width="97" height="45" border="0" id="Bio" /></a><a href="learn.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Learn','','images/LearnOver.jpg',1)"><img src="images/Learn.jpg" alt="Learn Online" name="Learn" width="97" height="45" border="0" id="Learn" /></a>    <a href="lessons.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Lessons','','images/LessonsOver.jpg',1)"><img src="images/Lessons.jpg" alt="Lessons" name="Lessons" width="109" height="45" border="0" id="Lessons" /></a>    <a href="contact.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Contact','','images/ContactOver.jpg',1)"><img src="images/Contact.jpg" alt="Contact" name="Contact" width="126" height="45" border="0" id="Contact" /></a></div>
    End Old Nav -->
    <div id="navdropdown">
      <ul id="MenuBar1" class="MenuBarHorizontal">
        <li><a href="#">Home</a>      </li>
        <li><a href="#" class="MenuBarItemSubmenu">About Me</a>
          <ul>
            <li><a href="#" title="A little about myself.">Biography</a></li>
            <li><a href="#">Cirriculum Vitae</a></li>
            <li><a href="#" title="See me play or teach.">Mp3 &amp; Videos</a></li>
            <li><a href="#" title="Where am I am playing?">Performances</a></li>
            <li><a href="#" title="Want me to play your event or party?">Booking</a></li>
          </ul>
        </li>
        <li><a class="MenuBarItemSubmenu" href="#">Lessons</a>
          <ul>
            <li><a href="#" title="What will you learn?">Syllabus</a>          </li>
            <li><a href="#" title="How much does this cost?">Pricing</a></li>
            <li><a href="#" title="Where do lessons take place?">Locations</a></li>
            <li><a href="#" title="What books and supplies will you need?"> Books &amp; Supplies</a></li>
    </ul>
        </li>
        <li><a href="#" class="MenuBarItemSubmenu">Learn Online</a>
          <ul>
            <li><a href="#">Guitar</a></li>
            <li><a href="#">Bass</a></li>
          </ul>
        </li>
        <li><a href="#" class="MenuBarItemSubmenu">Contact</a>
          <ul>
            <li><a href="#">Email </a></li>
            <li><a href="#" title="Facebook, Twitter, Etc..">Social Media</a></li>
          </ul>
        </li>
      </ul>
    </div>
    </div>
    <div id="content">
      <div id="blog_header"></div>
    <div id="sidebar">
    <form method=post action="http://poll.pollcode.com/Vp1c"><table border=0 width=150 bgcolor="#ffffff" cellspacing=0 cellpadding=2><tr><td colspan=2><font face="Verdana" size=-1 color="teal"><center><b>Most useful video lesson topics:</b></center></font></td></tr><tr><td width=5><input type=radio name=answer value="1"></td><td><font face="Verdana" size=-1 color="000000">Open Chords</font></td></tr><tr><td width=5><input type=radio name=answer value="2"></td><td><font face="Verdana" size=-1 color="000000">Barre Chords</font></td></tr><tr><td width=5><input type=radio name=answer value="3"></td><td><font face="Verdana" size=-1 color="000000">Scales</font></td></tr><tr><td width=5><input type=radio name=answer value="4"></td><td><font face="Verdana" size=-1 color="000000">Arpeggios</font></td></tr><tr><td width=5><input type=radio name=answer value="5"></td><td><font face="Verdana" size=-1 color="000000">Music Reading</font></td></tr><tr><td width=5><input type=radio name=answer value="6"></td><td><font face="Verdana" size=-1 color="000000">Picking Technique</font></td></tr><tr><td width=5><input type=radio name=answer value="7"></td><td><font face="Verdana" size=-1 color="000000">Strumming Patterns</font></td></tr><tr><td width=5><input type=radio name=answer value="8"></td><td><font face="Verdana" size=-1 color="000000">Tab Reading</font></td></tr><tr><td width=5><input type=radio name=answer value="9"></td><td><font face="Verdana" size=-1 color="000000">Songwriting</font></td></tr><tr><td width=5><input type=radio name=answer value="10"></td><td><font face="Verdana" size=-1 color="000000">Improvisation</font></td></tr><tr><td width=5><input type=radio name=answer value="11"></td><td><font face="Verdana" size=-1 color="000000">Triads</font></td></tr><tr><td colspan=2><center><input type=submit value="Vote">  <input type=submit name=view value="View"></center></td></tr><tr><td bgcolor="white" colspan=2 align=right><font face="Verdana" size=-2 color="black">pollcode.com <a href=http://pollcode.com/><font color="navy">free polls</font></a></font></td></tr></table></form><a href="./studies.html">
    <img src="images/studies.jpg" border="0" /></a><br/><br/>
    <script src="http://widgets.twimg.com/j/2/widget.js"></script>
    <script>
    new TWTR.Widget({
      version: 2,
      type: 'profile',
      rpp: 4,
      interval: 6000,
      width: 'auto',
      height: 200,
      theme: {
        shell: {
          background: '#aee5f5',
          color: '#4b508f'
        tweets: {
          background: '#dbdbdb',
          color: '#333333',
          links: '#336699'
      features: {
        scrollbar: true,
        loop: false,
        live: false,
        hashtags: true,
        timestamp: true,
        avatars: false,
        behavior: 'all'
    }).render().setUser('guitarfusion').start();
    </script></font><br/>
    <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like-box href="http://www.facebook.com/pages/Guitarfusion/208575872514732" width="200" show_faces="true" border_color="" stream="true" header="true"></fb:like-box>
    </div>
    <div id="blog">
    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', false);
    require('./blog/wp-blog-header.php');
    ?>
    <?php
    require('./blog/wp-blog-header.php');
    ?>
    <?php
    $posts = get_posts('numberposts=10&order=ASC&orderby=post_title');
    foreach ($posts as $post) : start_wp(); ?>
    <?php the_date(); echo "<br />"; ?>
    <h2><?php the_title(); ?>    </h2>
    <?php the_content() ?>
    <a class="bloglink" href="<?php the_permalink() ?>">
    Read more...</a><br />
    <?php
    endforeach;
    ?>
    </div>
    <div id="ad_middle"></div>
    <div id="blog_bottom2">
    <h1> Free Stuff</h1>
    <br/>
    <ul>
    <li><a href="http://www.metronomeonline" target="_new">Online Metronome</a> - Metronomes are a great tool to use during practice to keep a steady tempo and to help increase speed of passages. Use this online metronome if you do not already have a stand alone metronome.</li><br/>
    <li><a href="http://itunes.apple.com/us/app/id347846503">Iphone / Itouch Metronome</a> - This is an example of several free metronome apps that are available for your phone. Android users can also find free metronomes on the Marketplace. Be sure and read the ratings, some are better at keeping time than others.</li><br/>
    <li><a href="https://market.android.com/details?id=com.pedrocorp.android.guitar&feature=search_result">Android Phone Metronome / Tuner / Chord Dictionary</a>This handy little app will not only provide you with a tuner, but has a built-in metronome and chord dictionary. - </li><br/>
    <li><a href="http://tuxguitar.herac.com.ar/" target="_new">Free Guitar Tab Editor</a> - View / Create Tab - Free alternative to GuitarPro Software. Use this software to open .gp3, .gp4, .gp5 files and search for music online.</li><br/>
    <li><a href="http://www.blanksheetmusic.net/">Free Blank Sheet Music</a> - Print blank sheet music. Choose from standard notation, treble, bass, alto clefs, and tablature. </li><br/>
    <li><a href="http://www.911tabs.com/">Free Tablature Search Engine</a> - This is a great search engine to find tabs. I mainly use this to find .gp5 files for my Tux Guitar Software. </li>
    </ul>
    </div>
    <div id="blog_bottom"><span style="float:left;">
    <img src="images/mapad.jpg" /></span>
    <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?q=1060+West+State+Road+434,+Longwood,+FL&sll=28.697815,-81.364 128&hl=en&sspn=0.006295,0.006295&ie=UTF8&hq=&hnear=1060+Florida+434,+Longwood,+Florida+327 50&ll=28.70572,-81.364145&spn=0.026349,0.036478&z=14&iwloc=A&output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?q=1060+West+State+Road+434,+Longwood,+FL&sll=28.697815,-81.364 128&hl=en&sspn=0.006295,0.006295&ie=UTF8&hq=&hnear=1060+Florida+434,+Longwood,+Florida+327 50&ll=28.70572,-81.364145&spn=0.026349,0.036478&z=14&iwloc=A&source=embed" style="color:#0000FF;text-align:right">View Larger Map</a></small>
    </div>
    </div>
    <div id="footer">
    <ul>
    <li><a href="../index.html">Home</a></li>
    <li><a href="../biography.html">Biography</a></li>
    <li><a href="../learn.html">Learn Guitar</a></li>
    <li><a href="../Lessons.html">Guitar Lessons</a></li>
    <li><a href="../contact.html">Schedule Lessons</a></li>
    <li><a href="mailto:[email protected]">Contact Webmaster</a></li>
    </ul>
    &copy; 2006-2011 Guitarfusion.com All Rights Reserved. Unauthorized Use Prohibited.
    </div>
    </div>
    </body>
    </html>
    And here is the code for the index.php's css
    body {
              background-color: #ff9933;
              font-family:Verdana, Geneva, sans-serif;
              font-size:11px;
    p {
              text-align:center;
              text-indent:15px;
    #wrapper {
              width:960px;
              height:100%;
              margin-left:30px;
              position:absolute;
    #header {
              width:960px;
              height:310px;
              background-image: url(images/gfheader.gif);
              background-position:center;
              background-repeat:no-repeat;
              position:relative;
              z-index:0;
    #logo {
              height:242px;
              width:235px;
              background-image:url(images/GuitarFusionLogo.gif);
              position:relative;
              top:40px;
              left:80px;
              z-index:1;
              visibility:hidden;
    #nav {
              width:600px;
              height:45px;
              z-index:2;
              position:relative;
              top:12px;
              left:290px;
              visibility:hidden;
    #navdropdown {
              background-color:#999;
              width:600px;
              height:45px;
              z-index:3;
              position:relative;
              top:12px;
              left:290px;
    #content {
              width:840px;
              height:1800px;
              background-color:#fff;
              position:relative;
              margin-left:60px;
    #social {
              width:195px;
              height:32px;
              border:none;
              position:relative;
              text-align:right;
              bottom:25px;
              right:65px;
              float:right;
              z-index:3;
              visibility:hidden;
    .social {
              margin-left:50px;
    #blog {
              width:600px;
              height:500px;
              border: thin solid #000;
              position:relative;
              top:15px;
              left:15px;
              float:left;
              z-index:1;
              overflow:auto;
              background-color:#d6e8f7;
    #blog_header {
              width:625px;
              height:45px;
              background-Image:url(images/blogheader.gif);
              position:relative;
              top:20px;
              left:5px;
              z-index:2;
              float:left;
    .nav {
              margin-left:20px;
    #sidebar {
              width:200px;
              height:1500px;
              border:none;
              left:-10px;
              top:10px;
              position:relative;
              float:right;
    #ad_middle {
              width:600px;
              height:200px;
              border: thin solid #000;
              position:relative;
              top:15px;
              left:15px;
              z-index:1;
              overflow:auto;
              float:left;
              background-color:#EFF5E9;
              background-image:url(images/lessonsad.jpg);
              background-repeat:no-repeat;
              background-position:center;
    #blog_bottom {
              width:600px;
              height:370px;
              border: thin solid #000;
              position:relative;
              top:15px;
              left:15px;
              z-index:1;
              overflow:auto;
              float:left;
              background-color:#F6F6F6;
    #contentwrapper {
              width:650px;
              height:500px;
              position:relative;
              top:50px;
              float:left;
              margin-left:95px;
    #header_content {
              width:624px;
              height:43px;
              background-image:url(images/Header.gif);
              text-align:center;
              font-size:28px;
              font-family:"Palatino Linotype", "Book Antiqua", Palatino, serif;
              line-height:40px;
              color:#FFF;
              position:relative;
              left:10px;
    #bio_content {
              width:600px;
              height:1000px;
    .biopic {
              float:left;}
    #learn_content {
              width:600px;
              height:100%;
    #faq {
              width:700px;
              height:600px;
              background-color:#f8f8f8;
              border:thin solid #000;
              margin-left:60px;
    #books {
              width:750px;
              height:700px;
              position:relative;
              float:left;
              margin-left:35px;
    fieldset {
    margin: 1em 0;
    padding: 1em;
    border : 1px solid #ccc;
    background: #f8f8f8;
    legend {
    font-weight: bold;
    #form_content {
              position:relative;
              left:160px;
              height:880px;
              width:500px;
              text-align:center;
              background-color:#E7EFFF;
              border:double #900;
    form div {
              background-color:#f8f8f8;
              padding:0px;
              margin:0px;
    #footer {
              width:960px;
              height:40px;
              bottom:0px;
              position:relative;
              text-align:center;
              line-height:1px;
              font-size:10px;
              padding-bottom:10px;
    #footer ul li {
              display:inline;
              margin:20px;
    #footer ul li a {
              text-decoration:none;}
              #blog_bottom2 {
              width:600px;
              height:370px;
              border: thin solid #000;
              position:relative;
              top:15px;
              left:15px;
              z-index:1;
              overflow:auto;
              float:left;
              background-color:#F6F6F6;
              text-align:center;
    #studies{
                        width:600px;
                        height:800px;
                        position:relative;
                        margin-left:110px;
                        text-align:center;
                        background:#f8f8f8;
    #blog_bottom2 ul li
              {list-style-type:none
    Any help is appreciated.

    You do not have a constructor for the menu bar as in
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    There are too many mistakes in the JS outside of the Spry Menu Bar. Have a look at the following which includes all errors, not just the JS
    Validation Output:   117 Errors
      Line 21, Column 38: character "&" is the first character of a delimiter but occurred as data   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=… ✉  
    This message may appear in several cases:
    You tried to include the "<" character in your page: you should escape it as "&lt;"
    You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
    Another possibility is that you forgot to close quotes in a previous tag.
      Line 21, Column 40: cannot generate system identifier for general entity "i" … var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=… ✉  
    An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".
    Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.
    If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.
    Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
      Line 21, Column 40: general entity "i" not defined and no default entity … var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=… ✉  
    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
      Line 21, Column 41: reference not terminated by REFC delimiter …var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x… ✉  
    If you meant to include an entity that starts with "&", then you should terminate it with ";".  Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
      Line 21, Column 41: reference to entity "i" for which no system identifier could be generated …var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x… ✉  
    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
      Line 21, Column 39: entity was defined here   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=…
      Line 21, Column 50: character "&" not allowed in attribute specification list …,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; ✉  
      Line 21, Column 50: element "a.length" undefined …,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; ✉  
    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:
    incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
      Line 21, Column 51: character "&" is the first character of a delimiter but occurred as data …,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; ✉  
    This message may appear in several cases:
    You tried to include the "<" character in your page: you should escape it as "&lt;"
    You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
    Another possibility is that you forgot to close quotes in a previous tag.
      Line 21, Column 60: character "&" is the first character of a delimiter but occurred as data …,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; ✉  
    This message may appear in several cases:
    You tried to include the "<" character in your page: you should escape it as "&lt;"
    You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
    Another possibility is that you forgot to close quotes in a previous tag.
      Line 21, Column 62: cannot generate system identifier for general entity "x.oSrc" …,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; ✉  
    An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".
    Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.
    If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.
    Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
      Line 21, Column 62: general entity "x.oSrc" not defined and no default entity …,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; ✉  
    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
      Line 21, Column 68: reference to entity "x.oSrc" for which no system identifier could be generated …,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; ✉  
    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
      Line 21, Column 61: entity was defined here …,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
      Line 29, Column 76: character ";" not allowed in attribute specification list …  var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) ✉  
      Line 29, Column 76: element "a.length" undefined …  var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) ✉  
    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:
    incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
      Line 41, Column 57: character "&" is the first character of a delimiter but occurred as data …var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { ✉  
    This message may appear in several cases:
    You tried to include the "<" character in your page: you should escape it as "&lt;"
    You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
    Another possibility is that you forgot to close quotes in a previous tag.
      Line 41, Column 59: cannot generate system identifier for general entity "parent.frames.length" …var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { ✉  
    An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".
    Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.
    If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.
    Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
      Line 41, Column 59: general entity "parent.frames.length" not defined and no default entity …var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { ✉  
    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
      Line 41, Column 79: reference not terminated by REFC delimiter …var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { ✉  
    If you meant to include an entity that starts with "&", then you should terminate it with ";".  Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
      Line 41, Column 79: reference to entity "parent.frames.length" for which no system identifier could be generated …var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { ✉  
    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
      Line 41, Column 58: entity was defined here …var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
      Line 45, Column 15: character "&" is the first character of a delimiter but occurred as data   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms… ✉  
    This message may appear in several cases:
    You tried to include the "<" character in your page: you should escape it as "&lt;"
    You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
    Another possibility is that you forgot to close quotes in a previous tag.
      Line 45, Column 17: cannot generate system identifier for general entity "d.all"   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms… ✉  
    An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".
    Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.
    If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.
    Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
      Line 45, Column 17: general entity "d.all" not defined and no default entity   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms… ✉  
    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
      Line 45, Column 22: reference not terminated by REFC delimiter   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms… ✉  
    If you meant to include an entity that starts with "&", then you should terminate it with ";".  Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
      Line 45, Column 22: reference to entity "d.all" for which no system identifier could be generated   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms… ✉  
    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
      Line 45, Column 16: entity was defined here   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms…
      Line 45, Column 47: character "&" is the first character of a delimiter but occurred as data …x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; ✉  
    This message may appear in several cases:
    You tried to include the "<" character in your page: you should escape it as "&lt;"
    You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
    Another possibility is that you forgot to close quotes in a previous tag.
      Line 45, Column 50: reference not terminated by REFC delimiter …x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; ✉  
    If you meant to include an entity that starts with "&", then you should terminate it with ";".  Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
      Line 45, Column 50: reference to entity "i" for which no system identifier could be generated …x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; ✉  
    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
      Line 21, Column 39: entity was defined here   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=…
      Line 45, Column 65: character ";" not allowed in attribute specification list …x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; ✉  
      Line 45, Column 65: element "d.forms.length" undefined …x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; ✉  
    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:
    incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
      Line 47, Column 13: character "&" is the first character of a delimiter but occurred as data   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum… ✉  
    This message may appear in several cases:
    You tried to include the "<" character in your page: you should escape it as "&lt;"
    You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
    Another possibility is that you forgot to close quotes in a previous tag.
      Line 47, Column 15: cannot generate system identifier for general entity "d.layers"   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum… ✉  
    An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".
    Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.
    If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.
    Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
      Line 47, Column 15: general entity "d.layers" not defined and no default entity   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum… ✉  
    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
      Line 47, Column 23: reference not terminated by REFC delimiter   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum… ✉  
    If you meant to include an entity that starts with "&", then you should terminate it with ";".  Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
      Line 47, Column 23: reference to entity "d.layers" for which no system identifier could be generated   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum… ✉  
    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
      Line 47, Column 14: entity was defined here   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum…
      Line 47, Column 23: character "&" is the first character of a delimiter but occurred as data   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum… ✉  
    This message may appear in several cases:
    You tried to include the "<" character in your page: you should escape it as "&lt;"
    You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
    Another possibility is that you forgot to close quotes in a previous tag.
      Line 47, Column 26: reference not terminated by REFC delimiter   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum… ✉  
    If you meant to include an entity that starts with "&", then you should terminate it with ";".  Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
      Line 47, Column 26: reference to entity "i" for which no system identifier could be generated   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum… ✉  
    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
      Line 21, Column 39: entity was defined here   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=…
      Line 47, Column 42: character ";" not allowed in attribute specification list …or(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].documen… ✉  
      Line 47, Column 42: element "d.layers.length" undefined …or(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].documen… ✉  
    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:
    incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
      Line 49, Column 9: character "&" is the first character of a delimiter but occurred as data   if(!x && d.getElementById) x=d.getElementById(n); return x; ✉  
    This message may appear in several cases:
    You tried to include the "<" character in your page: you should escape it as "&lt;"
    You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
    Another possibility is that you forgot to close quotes in a previous tag.
      Line 49, Column 10: character "&" is the first character of a delimiter but occurred as data   if(!x && d.getElementById) x=d.getElementById(n); return x; ✉  
    This message may appear in several cases:
    You tried to include the "<" character in your page: you should escape it as "&lt;"
    You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
    Another possibility is that you forgot to close quotes in a previous tag.
      Line 59, Column 76: character "<" is the first character of a delimiter but occurred as data …=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) ✉  
    This message may appear in several cases:
    You tried to include the "<" character in your page: you should escape it as "&lt;"
    You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
    Another possibility is that you forgot to close quotes in a previous tag.
      Line 65, Column 9: end tag for "d.layers.length" omitted, but OMITTAG NO was specified </script> ✉  
    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
      Line 47, Column 26: start tag was here   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum…
      Line 65, Column 9: end tag for "d.forms.length" omitted, but OMITTAG NO was specified </script> ✉  
    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
      Line 45, Column 50: start tag was here …x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      Line 65, Column 9: end tag for "a.length" omitted, but OMITTAG NO was specified </script> ✉  
    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
      Line 29, Column 67: start tag was here …  var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
      Line 65, Column 9: end tag for "a.length" omitted, but OMITTAG NO was specified </script> ✉  
    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
      Line 21, Column 41: start tag was here …var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x…
      Line 121, Column 579: end tag for "img" omitted, but OMITTAG NO was specified …ight="32" alt="Twitter" border="0"></a><a href="http://www.guitarfusion.com/bl… ✉  
    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
      Line 121, Column 492: start tag was here …="http://twitter.com/#!/guitarfusion"><img src="../images/twitter_32.png" widt…
      Line 225, Column 14: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified <form method=post action="http://poll.pollcode.com/Vp1c"><table border=0 width=… ✉  
      Line 225, Column 72: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified …poll.pollcode.com/Vp1c"><table border=0 width=150 bgcolor="#ffffff" cellspacin… ✉  
      Line 225, Column 80: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified …lcode.com/Vp1c"><table border=0 width=150 bgcolor="#ffffff" cellspacing=0 cell… ✉  
      Line 225, Column 114: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified …dth=150 bgcolor="#ffffff" cellspacing=0 cellpadding=2><tr><td colspan=2><font … ✉  
      Line 225, Column 128: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified …r="#ffffff" cellspacing=0 cellpadding=2><tr><td colspan=2><font face="Verdana"… ✉  
      Line 225, Column 146: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified …acing=0 cellpadding=2><tr><td colspan=2><font face="Verdana" size=-1 color="te… ✉  
      Line 225, Column 174: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified …d colspan=2><font face="Verdana" size=-1 color="teal"><center><b>Most useful v… ✉  
      Line 225, Column 197: document type does not allow element "center" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag …"Verdana" size=-1 color="teal"><center><b>Most useful video lesson topics:</b>… ✉  
    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
    One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
      Line 225, Column 277: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified …center></font></td></tr><tr><td width=5><input type=radio name=answer value="1… ✉  
      Line 225, Column 291: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified …</td></tr><tr><td width=5><input type=radio name=answer value="1"></td><td><fo… ✉  
      Line 225, Column 302: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified …tr><td width=5><input type=radio name=answer value="1"></td><td><font face="Ve… ✉  
      Line 225, Column 323: end tag for "input" omitted, but OMITTAG NO was specified … type=radio name=answer value="1"></td><td&gt

  • HTML multipart form is not working in jsp page

    Hi
    i have jsp page, has a HTML from with file upload field , when i click the send button , nothing happened as if the button did not submit the form. ie the message at line 12 is not printed out.
    can any one help please.
    <%@ page errorPage="..\error\error.jsp" %>
    <%@ page pageEncoding="windows-1256" %>
    <%@ page language="java" import="javazoom.upload.*,java.util.*,java.sql.ResultSet" %>
    <jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" >
      <jsp:setProperty name="upBean" property="folderstore" value="<%=request.getRealPath("thuraya//uploads")%>"  />
    </jsp:useBean>
    <jsp:useBean id="dbc" class="mypackage.DBConnection" scope="session" />
    <!-- add news-->
    <%
    if(request.getParameter("addBTN") != null){
            out.println("addbtn");
            //do upload file + insert in database
             if (MultipartFormDataRequest.isMultipartFormData(request))
             // Uses MultipartFormDataRequest to parse the HTTP request.
             MultipartFormDataRequest mrequest = new MultipartFormDataRequest(request);
             String todo = null;
             if (mrequest != null) todo = mrequest.getParameter("todo");
                 if ( (todo != null) && (todo.equalsIgnoreCase("upload")) )
                    Hashtable files = mrequest.getFiles();
                    if ( (files != null) && (!files.isEmpty()) )
                        UploadFile file = (UploadFile) files.get("filename");
                        if (file != null)
                                            out.println("<li>Form field : uploadfile"+"<BR> Uploaded file : "+file.getFileName()+" ("+file.getFileSize()+" bytes)"+"<BR> Content Type : "+file.getContentType());
                                            String fileName=file.getFileName();
                                            String ran=System.currentTimeMillis()+"";
                                            String ext=fileName.substring(   ( fileName.length()-4),fileName.length() );
                                            file.setFileName(ran+ext);
                        // Uses the bean now to store specified by jsp:setProperty at the top.
                        upBean.store(mrequest, "filename");
                                            String title=request.getParameter("title");
                                            String content=request.getParameter("elm1");
                                            int x=dbc.addNews(title,content,file.getFileName(),2,1);
                                            if(x==1)
                                                     out.print("New Vedio has been addedd Successfully");
                                                      response.setHeader("Refresh","1;URL=uploadVedio.jsp");
                                                     else{
                                                      out.print("An Error Occured while adding new Vedio");
                                                      response.setHeader("Refresh","1;URL=uploadVedio.jsp");
                    else
                      out.println("<li>No uploaded files");
             else out.println("<BR> todo="+todo);
    %>
    <!-- end of add news-->
    <form action="" method="post" enctype="multipart/form-data" name="upform" >
      <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
        <tr>
          <td colspan="2" align="right" bgcolor="#EAEAEA" class="borderdTable"><p>'6'A) .(1 ,/J/</p></td>
        </tr>
        <tr>
          <td width="87%" align="right"><label>
            <input name="title" type="text" class="rightText" id="title">
          </label></td>
          <td width="13%" align="right">9FH'F 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><textarea name="elm1" cols="50" rows="10" id="elm1" style="direction:rtl" >
              </textarea></td>
          <td align="right">*A'5JD 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input type="file" name="filename" id="filename">
          </label></td>
          <td align="right">5H1)</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input onClick="submit()" name="addBTN" type="button" class="btn" id="addBTN" value="  '6'A) .(1 ">
          </label></td>
          <td align="right"> </td>
        </tr>
      </table>
    </form>
    <!-- TinyMCE -->
    <script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
            tinyMCE.init({
                    mode : "textareas",
                    theme : "simple",
                    directionality : "rtl"
    </script>
    <!--end of TinyMCE -->

    the problem is not because of java code insdie jsp page
    I have removed all things but the form and it is still not working
    here is the modified code:
    <!-- add news-->
    <%
    if(request.getParameter("addBTN") != null){
            out.print("addBTN");
    %>
    <!-- end of add news-->
    <form action="" method="post" enctype="multipart/form-data" name="upform" >
      <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
        <tr>
          <td colspan="2" align="right" bgcolor="#EAEAEA" class="borderdTable"><p>'6'A) .(1 ,/J/</p></td>
        </tr>
        <tr>
          <td width="87%" align="right"><label>
            <input name="title" type="text" class="rightText" id="title">
          </label></td>
          <td width="13%" align="right">9FH'F 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><textarea name="elm1" cols="50" rows="10" id="elm1" style="direction:rtl" >
              </textarea></td>
          <td align="right">*A'5JD 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input type="file" name="filename" id="filename">
          </label></td>
          <td align="right">5H1)</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input name="addBTN" type="submit" class="btn" id="addBTN" value="  '6'A) .(1 ">
          </label></td>
          <td align="right"> </td>
        </tr>
      </table>
    </form>
    <!-- TinyMCE -->
    <script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
            tinyMCE.init({
                    mode : "textareas",
                    theme : "simple",
                    directionality : "rtl"
    </script>
    <!--end of TinyMCE -->

  • Text in Spry Slideshow, not working in Explorer.

    Hi,
    I have attempted to search for a similar topic, but am not able to find anything.
    I have input the spry slideshow into my page, and it is fully functional for safari, chrome, firefox, but seems like it is only not working in IE.
    The text that is supposed to be showing up to the right of the images is not showing with IE.
    I had read a couple things on opacity, or such but am not sure if it applies to the text as well.
    www.i4homedesign.ca
    This is the first time I have posted on this forum and am not sure if I need to be including anything else.
    Thanks
    i4homedesign.

    Here is the code for the Spry Slideshow if it helps...
    <link href="Spry-UI-1.7/css/ContentSlideShow/wanderlust/wanderlust-brown.css" rel="stylesheet" type="text/css">
    <script src="Spry-UI-1.7/includes/SpryDOMUtils.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryDOMEffects.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryWidget.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryPanelSelector.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryPanelSet.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryFadingPanels.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryContentSlideShow.js" type="text/javascript"></script>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2141541" binding="#ImageSlideShow" />
    </oa:widgets>
    -->
    </script>
    <style type="text/css">
    a:link {
    color: #FFF;
    a:visited {
    color: #CCC;
    a:hover {
    color: #999;
    body,td,th {
    font-family: "MS Serif", "New York", serif;
    </style>
    </HEAD>
    <BODY text="#FFFFFF" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
    <table align="center" width="1000" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td><br></td>
    </tr>
    <TABLE align="center" WIDTH=1000 BORDER=0 CELLPADDING=0 CELLSPACING=0>
      <TR>
        <TD ROWSPAN=2><IMG SRC="images/header_01.gif" WIDTH=22 HEIGHT=112 ALT=""></TD>
        <TD COLSPAN=3><IMG SRC="images/header_02.gif" WIDTH=959 HEIGHT=90 ALT=""></TD>
        <TD ROWSPAN=2><IMG SRC="images/header_03.gif" WIDTH=19 HEIGHT=112 ALT=""></TD>
      </TR>
      <TR>
        <TD><IMG SRC="images/header_04.gif" WIDTH=13 HEIGHT=22 ALT=""></TD>
        <TD><IMG SRC="images/header_05.gif" ALT="" WIDTH=929 HEIGHT=22 border="0" usemap="#Map"></TD>
        <TD><IMG SRC="images/header_06.gif" WIDTH=17 HEIGHT=22 ALT=""></TD>
      </TR>
      <TR>
        <TD COLSPAN=5><IMG SRC="images/header_07.gif" WIDTH=1000 HEIGHT=8 ALT=""></TD>
      </TR>
    </TABLE>
    <table align="center" width="930" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><br>
          <h1 align="center">SEE YOUR DREAMS BEFORE YOU BUILD</h1>
          <br>
          <div id="ImageSlideShow" align="center">
            <div class="article">
              <div class="photo"> <img src="Images/house-blueprint.jpg" width="370" height="247">
                <div class="caption">COMPREHENSIVE CONSTRUCTION DOCUMENTS</div>
              </div>
              <div class="story">
                <div class="banner">
                  <div class="title">FULL WORKING PRINTS</div>
                  <div class="subTitle">SOLID DESIGN</div>
                </div>
                <div class="content">
                  <p>Framing and homebuilding experience.
                    Incorporating both inspired creativity and practical design.</p>
                </div>
              </div>
            </div>
            <div class="article">
              <div class="photo"> <img src="Images/Home Render Image_1.png" width="1024" height="600">
                <div class="caption">LEADING EDGE 3D RENDERING</div>
              </div>
              <div class="story">
                <div class="banner">
                  <div class="title">PHOTO REALISITC CAPABILITY</div>
                  <div class="subTitle">LEADING EDGE RENDERINGS</div>
                </div>
                <div class="content">
                  <p>Constantly seeking to be on the edge of new technology.  Providing customers with comprehensive visualization of their home.</p>
                </div>
              </div>
            </div>
            <div class="article">
              <div class="photo"> <img src="Images/Heyn Bathroom Thea 2 Bloom.png" width="1328" height="774">
                <div class="caption">COMPETITIVE RATES, PROMPT TIMELINES</div>
              </div>
              <div class="story">
                <div class="banner">
                  <div class="title">COMPETITIVE RATES</div>
                  <div class="subTitle">Reasonable timelines.</div>
                </div>
                <div class="content">
                  <p>Providing exceptional service in every aspect of the design process of your home.</p>
                </div>
              </div>
            </div>
            <div class="article">
              <div class="photo"> <img src="Images/Thea-Image-11097.gif" width="803" height="522">
                <div class="caption">INNOVATIVE DESIGN</div>
              </div>
              <div class="story">
                <div class="banner">
                  <div class="title">INNOVATIVE DESIGN</div>
                  </div>
                <div class="content">
                  <p>Whether you're seeking a 'Ranch' house, 'Modern' two story, or 'Arts and Craft' bungalow or other style, we provide that "Little extra".</p>
                </div>
              </div>
            </div>
          </div>
          <script type="text/javascript">
    // BeginOAWidget_Instance_2141541: #ImageSlideShow
    var ImageSlideShow = new Spry.Widget.ContentSlideShow("#ImageSlideShow", {
    widgetClass: "WLBSlideShow",
    displayInterval: 8000,
    transitionDuration: 2000
    // EndOAWidget_Instance_2141541
    </script>
        <br>
          <H2 align="center">PREMIERE RESIDENTIAL DRAFTING COMPANY</H2>
          <h3 style="margin-left:200">- Based in the Peace Region.<br>
            - Comprehensive design process.<br>
            - Full working prints.<BR>
            - Leading edge 3D imaging/rendering.<BR>
          </h3>
          <P align="center"> </p></td>
      </tr>
    </table>

  • Link to webpage in a website not working in firefox 6 & 7

    webpage containing bookmark links are not working in http://colorexindia.com/reactive_dyes.html#M link given
    please give the solution for this
    sagar

    coding in incorrect
    The name should not have the #
    * <td colspan="2" class="header_red"><a name="#Vinyl" class="header_red">...</a></td>
    although this would work
    * <td colspan="2" class="header_red"><a name="Vinyl" class="header_red">...</a></td>
    You should really be using id= which can be used with most tags
    * <td colspan="2" class="header_red" id="Vinyl">...</td>..

  • SubmitonEnter is not working in safari

    Hi,
    I have a BSP application which follows MVC pattern and in view I have Htmlb input field code which has submitonEnter="X". If user enters the value and hit Enter button it should go to DO Handle Event. This perfectly works in IE. But in Safari and Chrome its not working.
    Can anyone help how to achieve hit Enter function for an HTMLB Inputfield for Chrome anf Safari browser.
    Please find the code:
                  <htmlb:label for      = "report_by"
                                tooltip  = "<%= lwa_help-field_text %>"
                                text     = "Reported By:UNIX id:"
                                required = "TRUE" />
                 </htmlb:gridLayoutCell>
                 <htmlb:gridLayoutCell columnIndex = "2"
                                       rowIndex    = "1"
                                       width       = "100"
                                       wrapping    = "FALSE" >
                   <htmlb:inputField id        = "report_by"
                                     value     = "<%= controller->v_report_by %>"
                                     maxlength = "12"
                                     submitOnEnter="TRUE"  
                                     size      = "20"
                                     />
    Thanks much in advance.

    Dear Customer,
    There are some limitations coming from BSP Design:
    - Press Enter on inputfield is not working in Design2008, Design2008 is based on U(nified)R(endering). UR does not support this functionality.
    - With Design 2008 with is part of NW 7.02 and higher, Safari 4.05 and higher is supported on Apple MacOS 10.5 and higher.
    Regards,
    Adrian

  • Submit buttons not working....:o( - ANY IDEAS??

    okay i got a form - ApplicantForm.jsp and that has two buttons on it...
    'ACCEPT' and 'REJECT'
    the next page - CurrentStatus.jsp - should be brought up but its just not working!
    whenever a button is pressed a blank screen with just the buttons is being brought up and no changes are being made to the database.
    what needs to happen is that it performs the little calculation - and the updates the value in the database...here's the code
    ApplicantForm.jsp
    (the buttons are declared at the top and the logic at the bottom)
    <%@ page import="java.sql.*, java.net.*" %>
    <HTML>
    <HEAD>
    <TITLE>APPLICANT FORM</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
    <FORM NAME = "ApplicantForm">
    <DIV ALIGN = "center">
    <INPUT TYPE = "submit" VALUE = "ACCEPT" NAME = "AcceptButton">
    <INPUT TYPE = "submit" VALUE = "REJECT" NAME = "RejectButton">
    </DIV>
    <%
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:fypproject","","");
    Statement st = con.createStatement();
    String forename           = request.getParameter("name");
    String surname           = request.getParameter("surname");
    String email = request.getParameter("email");
    int level = 0;
    String query = "SELECT * FROM Login_Details LD, Personal_Details PD, Education E, Work_Experience WE, Skills S WHERE LD.Email_Address = PD.Email_Address AND LD.Email_Address = E.Email_Address AND LD.Email_Address = WE.Email_Address AND LD.Email_Address = S.Email_Address AND PD.Forename = '" + forename + "' AND PD.Surname = '" + surname + "' AND LD.Email_Address = '" + email + "'";
    ResultSet rs = st.executeQuery(query);
    if(rs.next()) {
    %>
    <TABLE WIDTH="760" BORDER="0" CELLSPACING="0" CELLPADDING="0">
    <TR VALIGN="top">
    <TD WIDTH="610" HEIGHT="130">
    <TABLE WIDTH="610" BORDER="0" CELLSPACING="0" CELLPADDING="0">
    <TR>
    <TD WIDTH="10" HEIGHT="192" VALIGN="top"></TD>
    <TD WIDTH="600" HEIGHT="192" VALIGN="top">
    <TABLE WIDTH="600" BORDER="0" CELLSPACING="0" CELLPADDING="0">
    <TR>
    <TD VALIGN="top">
    <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">
              <TR>
              <TD COLSPAN="2"> </TD>
              </TR>          
    <TR>
    <TD COLSPAN="2"><B> <% out.println(rs.getString("Forename")); out.println(rs.getString("Surname")); %></B></TD>
    </TR>
    <TR>
    <TD COLSPAN="2" BGCOLOR="#000000"><FONT COLOR="#FFFFFF" SIZE="4">Personal Details</FONT></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="250"><FONT SIZE="2">Title</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Title")); %></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="250"><FONT SIZE="2">Forename</FONT></TD>
    <TD WIDTH="334"><% out.println(forename); %></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="250"><FONT SIZE="2">Surname</FONT></TD>
    <TD WIDTH="334"><% out.println(surname); %></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="250" HEIGHT="2"><FONT SIZE="2">Date Of Birth</FONT></TD>
    <TD HEIGHT="2" WIDTH="334"><% out.println(rs.getString("DOB")); %></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="250"><FONT SIZE="2">Sex</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Gender")); %></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="250"><FONT SIZE="2">Nationality</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Nationality")); %></TD>
    </TR>
              <TR BGCOLOR="#FFFFFF">
              <TD WIDTH="205"><FONT SIZE="2">Marital Status</FONT></TD>
              <TD WIDTH="334"><% out.println(rs.getString("Marital_Status")); %></TD>
              </TR>
              <TR BGCOLOR="#FFFFFF">
              <TD WIDTH="205"><FONT SIZE="2">Do you require a work permit?</FONT></TD>
              <TD WIDTH="334"><% out.println(rs.getString("Work_Permit_Required")); %></TD>
              </TR>
              <TR BGCOLOR="#FFFFFF">
              <TD WIDTH="205"><FONT SIZE="2">Email Address</FONT></TD>
              <TD WIDTH="334"><% out.println(email); %></TD>
              </TR>
    <TR>
    <TD COLSPAN="2" BGCOLOR="#000000"><FONT COLOR="#FFFFFF" SIZE="4">Education</FONT></TD>
    </TR>
              <TR>
              <TD COLSPAN="2"><FONT SIZE="2">Secondary Education</FONT></TD>
              </TR>
    <TR>
    <TD COLSPAN="2"><FONT SIZE="2">Institution(s)</FONT></TD>
    </TR>
    <TR>
    <TD COLSPAN="2">
    <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">
    <TR>
    <TD WIDTH="47%"><FONT SIZE="2">Name</FONT></TD>
    <TD WIDTH="37%"><FONT SIZE="2">Location</FONT></TD>
    <TD WIDTH="7%"><FONT SIZE="2">From</FONT></TD>
    <TD WIDTH="9%"><FONT SIZE="2">To</FONT></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="32%"><% out.println(rs.getString("Institution_Name_1")); %></TD>
    <TD WIDTH="32%"><% out.println(rs.getString("Institution_Location_1")); %></TD>
    <TD WIDTH="13%"><% out.println(rs.getString("Institution_From_1")); %></TD>
    <TD WIDTH="23%"><% out.println(rs.getString("Institution_To_1")); %></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="32%"><% out.println(rs.getString("Institution_Name_2")); %></TD>
    <TD WIDTH="32%"><% out.println(rs.getString("Institution_Location_2")); %></TD>
    <TD WIDTH="13%"><% out.println(rs.getString("Institution_From_2")); %></TD>
    <TD WIDTH="23%"><% out.println(rs.getString("Institution_To_2")); %></TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    <TR>
    <TD COLSPAN="2"><FONT SIZE="2">'A' Level or Equivalent</FONT></TD>
    </TR>
    <TR>
    <TD COLSPAN="2" VALIGN="top">
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="4" WIDTH="607">
    <TR>
    <TD WIDTH="18"> </TD>
    <TD WIDTH="57"><FONT SIZE="2">Year</FONT></TD>
    <TD WIDTH="250"><FONT SIZE="2">Qualification Name</FONT></TD>
    <TD WIDTH="96"><FONT SIZE="2">Subject</FONT></TD>
    <TD WIDTH="131"><FONT SIZE="2">Grade</FONT></TD>
    </TR>
    <TR>
    <TD WIDTH="18">1</TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("ALevel_Year_1")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("ALevel_Name_1")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="96"><% out.println(rs.getString("ALevel_Subject_1")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="131"><% out.println(rs.getString("ALevel_Grade_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="18">2</TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("ALevel_Year_2")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("ALevel_Name_2")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="96"><% out.println(rs.getString("ALevel_Subject_2")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="131"><% out.println(rs.getString("ALevel_Grade_2")); %></TD>
    </TR>
                   <TR>
    <TD WIDTH="18">3</TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("ALevel_Year_3")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("ALevel_Name_3")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="96"><% out.println(rs.getString("ALevel_Subject_3")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="131"><% out.println(rs.getString("ALevel_Grade_3")); %></TD>
    </TR>
                   <TR>
    <TD WIDTH="18">4</TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("ALevel_Year_4")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("ALevel_Name_4")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="96"><% out.println(rs.getString("ALevel_Subject_4")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="131"><% out.println(rs.getString("ALevel_Grade_4")); %></TD>
    </TR>
                   <TR>
    <TD WIDTH="18">5</TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("ALevel_Year_5")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("ALevel_Name_5")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="96"><% out.println(rs.getString("ALevel_Subject_5")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="131"><% out.println(rs.getString("ALevel_Grade_5")); %></TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    <TR>
              <TD COLSPAN="2"><FONT SIZE="2">Higher & PostGraduate</FONT></TD>
              </TR>
    <TR>
    <TD COLSPAN="2"><% out.println(rs.getString("Degree_Year_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Degree Qualification</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_Qualification_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Degree Subject</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_Subject_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Degree Result</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_Result_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Expected / Obtained</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_ExpObt_1")); %></TD>
    </TR>
              <TR>
    <TD COLSPAN="2"><% out.println(rs.getString("Degree_Year_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Degree Qualification</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_Qualification_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Degree Subject</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_Subject_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Degree Result</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_Result_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Expected / Obtained</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_ExpObt_2")); %></TD>
    </TR>
    <TR>
    <TD COLSPAN="2" BGCOLOR="#000000"><FONT COLOR="#FFFFFF" SIZE="4">Work Experience</FONT></TD>
    </TR>
    <TR>
    <TD COLSPAN="2"><FONT SIZE="2">Employer 1</FONT></TD>
    </TR>
    <TR>
    <TD COLSPAN="2" BGCOLOR="#FFFFFF" VALIGN="top">
    <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">
    <TR>
    <TD WIDTH="30%"><FONT SIZE="2">Employer</FONT></TD>
    <TD COLSPAN="2"><% out.println(rs.getString("Employer_Name_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="30%"><FONT SIZE="2">Dates</FONT></TD>
    <TD WIDTH="17%"><FONT SIZE="2">From</FONT></TD>
    <TD WIDTH="53%"><% out.println(rs.getString("Start_Date_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="30%"> </TD>
    <TD WIDTH="17%">To</TD>
    <TD WIDTH="53%"><% out.println(rs.getString("End_Date_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="30%"><FONT SIZE="2">Role</FONT></TD>
    <TD COLSPAN="2"><% out.println(rs.getString("Role_1")); %></TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    <TR>
    <TD COLSPAN="2"><FONT SIZE="2">Employer 2</FONT></TD>
    </TR>
    <TR>
    <TD COLSPAN="2" BGCOLOR="#FFFFFF" VALIGN="top">
    <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">
    <TR>
    <TD WIDTH="30%"><FONT SIZE="2">Employer</FONT></TD>
    <TD COLSPAN="2"><% out.println(rs.getString("Employer_Name_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="30%"><FONT SIZE="2">Dates</FONT></TD>
    <TD WIDTH="17%"><FONT SIZE="2">From</FONT></TD>
    <TD WIDTH="53%"><% out.println(rs.getString("Start_Date_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="30%"> </TD>
    <TD WIDTH="17%">To</TD>
    <TD WIDTH="53%"><% out.println(rs.getString("End_Date_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="30%"><FONT SIZE="2">Role</FONT></TD>
    <TD COLSPAN="2"><% out.println(rs.getString("Role_2")); %></TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
              <TR>
    <TD COLSPAN="2" BGCOLOR="#000000"><FONT COLOR="#FFFFFF" SIZE="4">Other Skills</FONT></TD>
    </TR>
         <TR>
    <TD COLSPAN="2" VALIGN="top">
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="4" WIDTH="807">
    <TR>
                   <TD COLSPAN="2"><FONT SIZE="2">Foreign Languages</FONT></TD>
                   </TR>
                   <TR>
    <TD WIDTH="57"><FONT SIZE="2">Language</FONT></TD>
    <TD WIDTH="250"><FONT SIZE="2">Proficiency</FONT></TD>
    </TR>
    <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Language_1")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Language_Prof_1")); %></TD>
    </TR>
                                  <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Language_2")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Language_Prof_2")); %></TD>
    </TR>
                                  <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Language_3")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Language_Prof_3")); %></TD>
    </TR>
                   <TR>
                   <TD COLSPAN="2"><FONT SIZE="2">IT Skills</FONT></TD>
                   </TR>
                   <TR>
    <TD WIDTH="57"><FONT SIZE="2">Skill</FONT></TD>
    <TD WIDTH="250"><FONT SIZE="2">Proficiency</FONT></TD>
    </TR>
                   <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Skill_1")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Skill_Prof_1")); %></TD>
    </TR>
                   <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Skill_2")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Skill_Prof_2")); %></TD>
    </TR>
                   <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Skill_3")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Skill_Prof_3")); %></TD>
    </TR>
                   <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Skill_4")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Skill_Prof_4")); %></TD>
    </TR>     
                   </TABLE>          
                   </TABLE>
              </TABLE>
         </TABLE>
    </TABLE>
    <%
    if(request.getParameter("RejectButton") != null) {
    level = Integer.parseInt(rs.getString("Level_ID"));
    level = 4;
    String levelString = Integer.toString(level);
    session.setAttribute("email", email);
    session.setAttribute("level", levelString);
    response.sendRedirect("CurrentStatus.jsp");
    else if(request.getParameter("AcceptButton") != null) {
    level = Integer.parseInt(rs.getString("Level_ID"));
    if(level < 4) {
    level = level + 1;
    String levelString = Integer.toString(level);
    session.setAttribute("email", email);
    session.setAttribute("level", levelString);
    else {
    level = 4;
    String levelString = Integer.toString(level);
    session.setAttribute("email", email);
    session.setAttribute("level", levelString);
    response.sendRedirect("CurrentStatus.jsp");
    st.close();
    con.close();
    %>
    </FORM>
    </BODY>
    </HTML>
    CurrentStatus.jsp
    <%@ page import="java.sql.*, java.net.*" %>
    <HTML>
    <HEAD>
    <TITLE>APPLICANT FORM</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
    <%
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:fypproject","","");
    Statement st = con.createStatement();
    String level                = (String)session.getAttribute("level");
    String email = (String)session.getAttribute("email");
    String query = "UPDATE Login_Details SET Level_ID = '" + level + "' WHERE Email_Address = '" + email + "'";
    st.executeUpdate(query);
    %>
    <DIV ALIGN = "center">
    <H2> Candidate status has been moved to: <% out.println(level); %></H3>
    </DIV>
    </BODY>
    </HTML>
    <%
    st.close();
    con.close();
    %>
    any ideas at all??? please??! :o(

    instead of using a submit input try using two button inputs, names can be the same.
    <input type='button' value='accept' name='aButton' onClick='js_func("accept")'>
    <input type='button' value='reject' name='aButton' onClick='js_func("reject")'>
    write a javascript function and catch the value sent and redirect to a controller (a jsp or a servlet) which would re-route the request to your bean
    function js_function(theValue)
    window.location = "controller.jsp?action=" + theValue
    this is how you can make a button act as a submit button. i guess this is your best bet.
    cem.

  • Ajax4jsf rerender not working properly.

    Hi,
    I am using ajax4jsf, version 1.0.2 in my project.
    I am having the following jsf page and the corresponding bean class. If bean throws any error message, the javascript method "showErrorMsg" is getting called, but, "userProfoileErrMsg" is always empty. The same logic worked in other page, but not working here. Can somebody tell why this is not working.
    Thanks
    -raju
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=utf-8"
    session="true" errorPage="/error.jsp"%>
    <%@ taglib uri="http://java.sun.com/jsf/html"
    prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core"
    prefix="f"%>
    <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax"
    prefix="a4j"%>
    <f:view>
      <html>
        <head>
          <meta http-equiv="Content-Type"
    content="text/html; charset=utf-8"/>
          <title>iTools</title>
          <link rel="StyleSheet" href="../css/iTools.css"
    type="text/css" media="screen"/>
          <script type="text/javascript">
            function showErrorMsg() {
                alert('error');
    if(document.getElementById('profile:userProfoileErrMsg').value
    != '') {
    alert(document.getElementById('profile:userProfoileErrMsg').value);
    document.getElementById('profile:userProfoileErrMsg').value='';
          </script>
        </head>
        <body topmargin="30">
            <h2 class="title">Modify Session User
    Profile</h2>
            <h:form
    binding="#{backing_General_userProfile.profile}"
    id="profile">
                <table cellpadding="2" cellspacing="2"
    border="0" summary="" align="center"
    class="onlyBorder">
                    <tbody><tr>
                        <td class="fieldColumnNR">First
    Name</td>
                        <td class="fieldColumnNR">:</td>
                        <td class="dataColumnNR">
                            <h:inputText
    binding="#{backing_General_userProfile.iuser__userfname}"
    id="iuser__userfname" size="20" maxlength="512"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldColumnNR">Last
    Name</td>
                        <td class="fieldColumnNR">:</td>
                        <td class="dataColumnNR">
                            <h:inputText
    binding="#{backing_General_userProfile.iuser__userlname}"
    id="iuser__userlname" size="20" maxlength="512"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldColumnNR"><font
    color="red">Email (*)</font></td>
                        <td class="fieldColumnNR">:</td>
                        <td class="dataColumnNR">
                            <h:inputText
    binding="#{backing_General_userProfile.iuser__useremail}"
    id="iuser__useremail" size="20" maxlength="512"
    required="true"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="dataColumnNR"
    colspan="3">
                            <h:selectBooleanCheckbox
    binding="#{backing_General_userProfile.changePassword}"
    id="changePassword"/>Change Password
                        </td>
                    </tr>
                    <tr>
                        <td
    class="fieldColumnNR">Password</td>
                        <td class="fieldColumnNR">:</td>
                        <td class="dataColumnNR">
                            <h:inputSecret
    binding="#{backing_General_userProfile.iuser__userpasswd}"
    id="iuser__userpasswd" size="20" maxlength="20"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldColumnNR">Re-type
    Password</td>
                        <td class="fieldColumnNR">:</td>
                        <td class="dataColumnNR">
                            <h:inputSecret
    binding="#{backing_General_userProfile.passwordRetype}"
    id="passwordRetype" size="20" maxlength="20"/>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <a4j:commandButton
    styleClass="tabactive1" style="PADDING-RIGHT: 1px;
    PADDING-LEFT: 1px; FONT-WEIGHT: bold; PADDING-BOTTOM:
    1px; PADDING-TOP: 1px" value="Submit"
    action="#{backing_General_userProfile.submit_action}"
    reRender="userProfoileErrMsg"
    oncomplete="showErrorMsg()"/>
                        </td>
                        <td><h:inputHidden
    id="userProfoileErrMsg"
    binding="#{backing_General_userProfile.userProfoileErrMsg}"/></td>
                        <td align="left">
                            <input type="reset"
    value="Reset" class="tabactive1" style="PADDING-RIGHT:
    1px; PADDING-LEFT: 1px; FONT-WEIGHT: bold;
    PADDING-BOTTOM: 1px; PADDING-TOP: 1px"/>
                        </td>
                    </tr>
                </tbody></table>
            </h:form>
        </body>
      </html>
    </f:view>
    package com.itools.vs.view.backing.General;
    import com.itools.vs.model.exception.UnknownException;
    import com.itools.vs.model.exception.WarningException;
    import com.itools.vs.model.session.DefaultSession;
    import com.itools.vs.model.util.CatalogHelper;
    import com.itools.vs.view.exception.ViewException;
    import com.itools.vs.view.util.ViewUtil;
    import java.rmi.RemoteException;
    import java.util.Hashtable;
    import javax.faces.component.html.HtmlForm;
    import javax.faces.component.html.HtmlInputHidden;
    import javax.faces.component.html.HtmlInputSecret;
    import javax.faces.component.html.HtmlInputText;
    import
    javax.faces.component.html.HtmlSelectBooleanCheckbox;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpSession;
    public class UserProfile {
        private HtmlForm profile;
        private HtmlInputText iuser__userfname;
        private HtmlInputText iuser__userlname;
        private HtmlInputText iuser__useremail;
        private HtmlInputSecret iuser__userpasswd;
        private HtmlInputSecret passwordRetype;
        private HtmlSelectBooleanCheckbox changePassword;
        private HtmlInputHidden userProfoileErrMsg;
        private DefaultSession ds = null;
        private HttpSession session = null;
        public UserProfile() throws ViewException {
            ExternalContext context =
    FacesContext.getCurrentInstance().getExternalContext();
            HttpServletRequest request =
    (HttpServletRequest) context.getRequest();
            session = request.getSession(true);
            ds =
    (DefaultSession)session.getAttribute("DefaultSession");
            HtmlInputHidden em;
            if (ds == null) {
                CatalogHelper ch = new
    CatalogHelper("ITOOLS_100013");
                em = new HtmlInputHidden();
                em.setValue(ch.getCatalogMessage());
                setUserProfoileErrMsg(em);
                throw new ViewException (ch);
            Hashtable sdetails = null;
            try {
                sdetails = ds.getSessionUserDetails();
            } catch (WarningException we) {
                em = new HtmlInputHidden();
                em.setValue(we.getCatalogMessage());
                setUserProfoileErrMsg(em);
                throw new ViewException
    (we.getCatalogHelper());
            } catch (UnknownException ue) {
                em = new HtmlInputHidden();
                em.setValue(ue.getCatalogMessage());
                setUserProfoileErrMsg(em);
                throw new ViewException
    (ue.getCatalogHelper());
            } catch (RemoteException re) {
                CatalogHelper ch = new
    CatalogHelper("ITOOLS_100012", re.getMessage());
                em = new HtmlInputHidden();
                em.setValue(ch.getCatalogMessage());
                setUserProfoileErrMsg(em);
                throw new ViewException (ch);
            if ((sdetails == null) || sdetails.isEmpty())
                CatalogHelper ch = new
    CatalogHelper("ITOOLS_050002");
                em = new HtmlInputHidden();
                em.setValue(ch.getCatalogMessage());
                setUserProfoileErrMsg(em);
                throw new ViewException (ch);
            // Intialize userfname.
            String fname =
    (String)sdetails.get("iuser__userfname");
            if (fname == null) {
                fname = "";
            HtmlInputText ftext = new HtmlInputText();
            ftext.setValue(fname);
            setIuser__userfname(ftext);
            // Initialize userlname
            String lname =
    (String)sdetails.get("iuser__userlname");
            if (lname == null) {
                lname = "";
            HtmlInputText ltext = new HtmlInputText();
            ltext.setValue(lname);
            setIuser__userlname(ltext);
            // Intialize useremail
            String email =
    (String)sdetails.get("iuser__useremail");
            if (email == null) {
                email = "";
            HtmlInputText etext = new HtmlInputText();
            etext.setValue(email);
            setIuser__useremail(etext);
            // Intialize password field
            HtmlInputSecret passwd = new
    HtmlInputSecret();
            passwd.setValue("");
            setIuser__userpasswd(passwd);
            // Initialize retype password
            HtmlInputSecret retype = new
    HtmlInputSecret();
            retype.setValue("");
            setPasswordRetype(retype);
            // Intialize checkbox
            HtmlSelectBooleanCheckbox check = new
    HtmlSelectBooleanCheckbox();
            check.setValue("1");
            this.setChangePassword(check);
            // Intialize error message
            HtmlInputHidden hid = new HtmlInputHidden();
            hid.setValue("");
            setUserProfoileErrMsg(hid);
        public void setProfile(HtmlForm profile) {
            this.profile = profile;
        public HtmlForm getProfile() {
            return profile;
        public void setIuser__userfname(HtmlInputText
    iuser__userfname) {
            this.iuser__userfname = iuser__userfname;
        public HtmlInputText getIuser__userfname() {
            return iuser__userfname;
        public void setIuser__userlname(HtmlInputText
    iuser__userlname) {
            this.iuser__userlname = iuser__userlname;
        public HtmlInputText getIuser__userlname() {
            return iuser__userlname;
        public void setIuser__useremail(HtmlInputText
    iuser__useremail) {
            this.iuser__useremail = iuser__useremail;
        public HtmlInputText getIuser__useremail() {
            return iuser__useremail;
        public void setIuser__userpasswd(HtmlInputSecret
    iuser__userpasswd) {
            this.iuser__userpasswd = iuser__userpasswd;
        public HtmlInputSecret getIuser__userpasswd() {
            return iuser__userpasswd;
        public void setPasswordRetype(HtmlInputSecret
    passwordRetype) {
            this.passwordRetype = passwordRetype;
        public HtmlInputSecret getPasswordRetype() {
            return passwordRetype;
        public void
    setChangePassword(HtmlSelectBooleanCheckbox
    changePassword) {
            this.changePassword = changePassword;
        public HtmlSelectBooleanCheckbox
    getChangePassword() {
            return changePassword;
        public void setUserProfoileErrMsg (HtmlInputHidden
    userProfoileErrMsg) {
            this.userProfoileErrMsg = userProfoileErrMsg;
        public HtmlInputHidden getUserProfoileErrMsg() {
            return userProfoileErrMsg;
        public String submit_action() {
            Hashtable userDetails = new Hashtable();
            userDetails.put ("iuser__userlname",
    getIuser__userlname().getValue());
            userDetails.put ("iuser__userfname",
    getIuser__userfname().getValue());
            userDetails.put ("iuser__useremail",
    getIuser__useremail().getValue());
            userDetails.put ("iuser__userpasswd",
    getIuser__userpasswd().getValue());
            userDetails.put ("PasswordRetype",
    getPasswordRetype().getValue());
            Boolean cp =
    (Boolean)getChangePassword().getValue();
            if (cp != null) {
                userDetails.put ("ChangePassword", cp);
            } else {
                userDetails.put ("ChangePassword",
    Boolean.valueOf(false));
            HtmlInputHidden msg;
            try {
                ds.modifySessionUserProfile(userDetails);
            } catch (WarningException we) {
                msg = new HtmlInputHidden();
                msg.setValue(we.getCatalogMessage());
                setUserProfoileErrMsg(msg);
                ViewUtil.addWarningMessage(we);
                return "Failure";
            } catch (UnknownException ue) {
                msg = new HtmlInputHidden();
                msg.setValue(ue.getCatalogMessage());
                setUserProfoileErrMsg(msg);
                ViewUtil.addWarningMessage(ue);
                return "Failure";
            } catch (RemoteException re) {
                msg = new HtmlInputHidden();
                msg.setValue(re.getMessage());
                setUserProfoileErrMsg(msg);
                ViewUtil.addFatalMessage(re);
                return "Failure";
            return "Success";
    faces-config.xml
    <managed-bean>
    <managed-bean-name>backing_General_userProfile</managed-bean-name>
    <managed-bean-class>com.itools.vs.view.backing.General.UserProfile</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>
      <navigation-rule>
    <from-view-id>/General/userProfile.jsp</from-view-id>
        <navigation-case>
          <from-outcome>Success</from-outcome>
    <to-view-id>/General/generalInfo.jsp</to-view-id>
        </navigation-case>
      </navigation-rule>

    Hi,
    Replacing "Failure" with "null" did not work. However, when I added few println statements, I came to know that, reRender is getting executed before, catch block is entered. Hennce, I am getting the value of the of hidden variable as empty.
    06/10/20 11:10:24 In the set profile error message.
    (This is while loading the page)
    06/10/20 11:10:24 In get Profile err msg :
    (This is while loading the page)
    06/10/20 11:10:49 In the set profile error message.
    06/10/20 11:10:49 In the set profile error message.
    (Don't know why two times set profile error message is executed)
    (Now the catch block is executed.)
    2006-10-20 11:10:49.828 WARNING J2EE RMI-00009 Exception returned by remote server: {0}
    06/10/20 11:10:49 Exception occured.
    06/10/20 11:10:49 Error message is set
    Is this the right behaviour or reRender? Not sure what I am doing wrong here.
    regds
    -raju

Maybe you are looking for

  • Questions on replacing hard drive in Compaq CQ58 for the experts

    I have a Compaq CQ58-bf9WM, product number: C2M29UA#ABA with Window 8 version 6.2.9200 build 9200. Windows 8 is not meeting my needs and I wish to replace it. My plan is to replace the existing hard disk with a new solid state disk. I need to prepare

  • How do I view text in long ePub chapters?

    Hi! I've created a couple of ePub books with a page area of 800 x 600. Each chapter is short and so fits on the page area. If the text does overrun slightly I click the bottom right corner of the page to make it bigger, I see the text and edit it if

  • ORA-01090: shutdown in progress - connection is not permitted

    How to stop the shutdown process ? I can't make no connections because Oracle is not available. Thanks.

  • ATI Radeon 2600 XT Fan Noise

    I just received my new Mac Pro on Friday - it shipped with 10.5.4 installed. After looking at some of the new features of Leopard (had only used Tiger previously), I installed all the available updates -- these were: Mac OS X Update 10.5.5 Aluminum K

  • Need to sync to a different computer

    The mac I used to activate and keep my iphone synced is not available now. I do have another imac at home. Is there any issue connecting my iphone to a different computer? Will my photos, music and contact info be lost or will it be reconciled with w