AJAX Spry not working on a page

I recently upgraded to CS3 from MX and bought the Adobe
Training Source Book by Bardzell and Flynn. No problems until
chapter 9. I have attached XML data sets, Get Schema and built Spry
Tables literally dozens of times by modifying or starting
completely from scratch over the last few days with no luck at all.
I am able to preview the data in the Spry XML Data Set dialog
window, so it seems to be able to correctly read it, however, when
saved, uploaded to live server and viewed in browser, the page
contains only the HTML heading and the footer and no dynamic tables
or data whatsover.
I do not want to continue not understanding what is not
working properly and why. Any suggestions?
Thanks in advance.

Thank you for the response.
However, even after correcting the <h1
spry:detailregion="ds1"> it is still not working.
I am on Vista Ultimate and use IE, Opera, Maxthon and Firefox
browsers and have tested on all four.
No data shows up in DW design window. Just a small table
representing:
<table>
<tr>
<th spry:sort="countryName">Country Name</th>
<th spry:sort="region">Region</th>
</tr>
<tr spry:repeat="ds1" spry:setrow="ds1">
<td>{countryName}</td>
<td>{region}</td>
</tr>
</table>
With blue {countryName} {region} fields.
I am unsure about the xpath.js and SpryData.js files as I had
deleted the initial ones that were created on my first try in an
attempt to recreate them but upon subsequent attempts, the dialog
window that informs that the files were created did not appear
again upon recreation. I manually added them from the CD and
uploaded them. Can I force a recreation of these files? Can I test
these files to ensure that they are working properly? My remote
server is not as current as it could be: PHP 4.3.11, MySQL 3.23 on
Apache Tomcat 4, Linux ES 2.1 - Could that be an issue for any of
this?
Thanks again.

Similar Messages

  • AJAX with PageMethods works in Application Pages but not with PageLayouts

    Hi All,
    I have created a class which contains public static method decorated with WebMethod and SciptMethod attributes
    Public class BasePage : Microsoft.SharePoint.Publishing.PublishingLayoutPage
            [WebMethod(EnableSession = true)]
            [ScriptMethod(ResponseFormat = ResponseFormat.Json, UseHttpGet = false)]
            public static string HelloWorld()
                return "Hello world is working!";
    Now I changed the <%Page ..> Tag of the PageLayout to inherit from the above class.
    There is a ScriptManager in the master page with EnablePageMethods = true
    I can see the Javascript methods are generated for HelloWorld(..) however the return result is "The Server Method HelloWorld failed." Error code is 500
    However the exact same code when I use with a application page (_layouts) and change the Page tag to inherit from the same base class above - it works OK.
    Both of them Page Layout and Application Page use the same master page - but one works and other does not.
    Additional Information:
    a) Am using Jquery and JqueryUI in the master page.
    b) Site use Publishing Template
    c) Variation is enabled on site
    d) Site has both Anonymous and Windows NT authentication
    The method Path for Application page shows as
    /_layouts/test.aspx/HelloWorld
    and for the page created using the Page layout is:
    /en-us/Company/Pages/Default.aspx/HelloWorld.
    Could anyone please advise what could be wrong where it does not work with Publishing Pages?
    Would please appreciate ideas / thoughts.
    Thanks,
    Mohan
    -- Mohan | My Blog

    Are you sure that you are getting HTTP 500 error ?. Usually HTTP 500 error denotes service unavailable at the server side or at the server end point. What is the exact fiddler trace you are getting ?
    If it is still HTTP 500, then one of the referenced components in the page layouts conflicts the ajax page methods call. Please let me know your findings
    Please mark the replies as answers if they help or unmark if not.

  • Bug? ajax layers not working.

    hi
    just installed safari 5. i like the new address feature where we can type the page's title instead of the url. anyway, its a feature that firefox already had quite sometime.
    anyway, most pages with ajax is not working, especially those with layers. for example, the template monster search form, the options is not displaying. works fine in firefox though.
    is it a bug?

    hi
    just reset safari, and its now working.

  • I wanted to send a push notification, unfortunately it does not work. The page will not load. Anyone know why?

    I wanted to send a push notification, unfortunately it does not work. The page will not load. Anyone know why?

    Push notifications, I believe, is only for iOS.
    If it is for iOS, take a look at Using Apple push notifications with Digital Publishing Suite | Adobe Developer Connection

  • UIComponent broadCastAction is not working in mobile page

    We are using the broadCastAction in one of our critical flows to submit to an action in Managed bean but we are facing issue in our ADF fusion web app for mobile . When we create a page with mobile render option selected the broadCastAction is not getting triggered . broadCastAction shows null in the getter of BroadCastAction.
    <tr:commandButton text="AutoSubmit" id="cb2"
    action="processResponse"
    binding="#{pageFlowScope.testBean.braodCastAction}"
    rendered="false"/>
    This is working in normal page without "render in mobile" selected , we need a solution for it to work on mobile compatible page as well

    Hi Frank
    UIComponent braodCastAction is from javax.faces.component.UIComponent . It is used to invoke action of a UI component through Java code
    if we have button like
    <tr:commandButton text="AutoSubmit" id="testCommandbtn" action="processMobile"
    binding="#{pageFlowScope.mobileBean.braodCastAction}"
    rendered="true" />
    Then through getter method of broadcastAction we can invoke the action of this button using the below code
    braodCastAction.broadcast(new ActionEvent(braodCastAction));
    This is working in the normal jspx page but not working in a page where we select render in mobile

  • When iam using jdownloader for dowload, the firefox did not work at any page, as like there in no internet conexion?

    When iam using jdownloader for dowload, the firefox did not work at any page, as like`` there in no internet conexion?``

    you need to check whether '''jdownloader''' is compatible with the Firefox version you are using.
    -> Tap ALT key or press F10 to show the Menu Bar
    -> go to Tools Menu -> Add-ons -> Extension section -> check the Status of '''jdownloader''' extension -> if '''an update''' is available for this add-on then install the update -> Restart Firefox and check again check the compatibility -> if it is '''GREYED with Exclamation mark''' then it is incompatible with Firefox
    Try using this extension to force compatibility.
    https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
    Check and tell if its working.

  • ScriptLink tag not working for application page sharepoint 2010

    <ScriptLink> tag not working for application page sharepoint 2010 for including javascript in application page, it appends either 1033 or _layout to path specified for javascript.But javascripts are located in custom document library on site and not
    in _layouts folder.
    Please help and explain in details as I tried lot on this.

    Hi,
    Use the following line of code
    <SharePoint:Scriptlink runat="server" Name="~sitecollection/Style Library/[YOUR SITE]/js/functions.js" Language="javascript" />
    Thanks,
    Vivek
    Please vote or mark your question answered, if my reply helps you

  • Spry Framework for Ajax does not work on google chrome

    I downloaded this beautiful gallery to use it on my site    http://adobe.github.com/Spry/demos/gallery/index.html
    Everything ok on InternetExplorer and Firefox but it does not work on Google Chrome.
    Can you help me to solve this problem? 

    sorry but this forum is for questions about JavaScript inside Acrobat and not general language frameworks. We don't have a discussion topic for Spry.

  • Spry not working properly in IE (again !)

    Hello everybody,
    I have put multiple vertical spry menu bars on my page, they are working as expected on all other major browsers except IE :S ....as usual. When you go to the page on any other browser you shall see that the sub menus overlap the other spry menus, but when you go through IE they don't overlap instead the sub menus come under the other spry menus. I've tried many a things to resolve the situation here but all have deemed fruitless :|
    http://bonzo.bonzoline.com/
    I would appreciate any help from any of you guys, looking forward to you response(s). Cheers !
    Kamil

    There are still many errors left in your markup. Doubling up on links to CSS and JS do not help. Also, unneccessary markup, style rules and JS does not help. The following illustrates this
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar3 = new Spry.Widget.MenuBar("MenuBar3", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar4 = new Spry.Widget.MenuBar("MenuBar4", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar5 = new Spry.Widget.MenuBar("MenuBar5", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar6 = new Spry.Widget.MenuBar("MenuBar6", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar7 = new Spry.Widget.MenuBar("MenuBar7", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar8 = new Spry.Widget.MenuBar("MenuBar8", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar9 = new Spry.Widget.MenuBar("MenuBar9", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar10 = new Spry.Widget.MenuBar("MenuBar10", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar11 = new Spry.Widget.MenuBar("MenuBar11", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar12 = new Spry.Widget.MenuBar("MenuBar12", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    Remember KISS
    Look at the following where I have linked the support files to Adobe to ensure that we use un-adulterated versions.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="http://labs.adobe.com/technologies/spry/widgets/menubar/SpryMenuBarVertical.css" rel="stylesheet">
    <style>
    body {
        width: 980px;
        margin: auto;
    ul.MenuBarVertical {
        height: 100px;
        background-color: #EEE;
        display: block;
        float: left;
        margin: 20px;
    ul#MenuBar1.MenuBarActive {
        z-index: 2000;
    </style>
    </head>
    <body>
    <ul id="MenuBar1" class="MenuBarVertical">
      <li><a class="MenuBarItemSubmenu" href="#">Community</a>
        <ul>
          <li><a href="#">Item 1.1</a></li>
          <li><a href="#">Item 1.2</a></li>
          <li><a href="#">Item 1.3</a></li>
        </ul>
      </li>
    </ul>
    <ul id="MenuBar2" class="MenuBarVertical">
      <li><a class="MenuBarItemSubmenu" href="#">Jobs</a>
        <ul>
          <li><a href="#">Item 1.1</a></li>
          <li><a href="#">Item 1.2</a></li>
          <li><a href="#">Item 1.3</a></li>
        </ul>
      </li>
    </ul>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryMenuBar.js"></script>
    <script>
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    Gramps

  • Ajax tabs not working when asp dropdown list in the tab

    I am using asp.net 3.5 framework. My page has modelpopup in that ajax tab controls used. one of the tab has asp:dropdownlist, this dropdown list is binding data from dataset. the tab which has dropdown lists is not working. it is working fine in IE9.0.
    Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

    changed to enableEventValidation="false", then it is working fine.

  • Spry not working

    I'm trying to get this to work and am having some difficulty.
    I've got ax XML file of about 900 dog shows that I'm trying
    to display the following information. The Sponsoring club, the
    date, and the state in which the show is taking place. I'd like to
    be able to sort alphabetically by club, by state and sort by date.
    The basic Spry table seems to be the logical place to start. I've
    managed to get this to work on my local machine. File references in
    the code however are of the following format
    <script src="file:///C|/Users/Ben
    Galkin.LJDwork-PC/Documents/ESAA-Development4/SpryAssets/xpath.js"
    type="text/javascript"></script>
    When I change this to <script src= "SpryAssets/xpath.js"
    type ="text/javascript"></script> It does not work locally
    or on my hosted site.
    Obviously I'm doing something wrong. Any help would be
    appreciated. Thanks
    Ideally I'd like to "page thru" this data displaying 15
    shows at a time with details about each show in a column to the
    right. I've managed to get a detail region working (again locally)
    but have not been able to understand how to do the paging. I've
    looked at the examples from the PagedView and the Paging examples
    with no luck
    Here's the url for the site .
    http://www.whiskyridge.com/Shows.html
    The xml file is at www.whiskyridge.com/data/Events5to11-2.xml Many
    thanks if someone can help
    LJD

    its because your SpryData.js is empty, there is no data in
    the file, i suggest reuploading the file and i should work

  • Accordion panel spry not working...

    Can someone please look at this site and see what I am doing wrong?
    My accordion is not working on the "heaven" page, but does work on the "about" page. ???
    This link is the problem page.
    This link, with the same accordion (on the same site) works fine!
    I am not sure if it is a file location problem or what.
    My SpryAssets folder is inside the root folder.
    BTW, it works fine on my local machine, just not when i upload it.
    At a loss,
    Thank you!
    MG
    Also posted on the spry forum (with no responses).

    OK.  I'll have a go.
    Have you thought about comparing the top section of code in the two pages.  i.e. in the <head>
    Take a look at this bit in particular.
    <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />
    <link href="cbc.css" rel="stylesheet" type="text/css" />
    </head>
    Have you got your site management set up?
    Also, checking your page in the validator shows a few stray closing tags.  </p> in the good page and a </div> in the bad page.  I'm not sure, but a missed matched <div> tag might cause difficulties.
    Martin

  • SharePoint 2013 "Help Menu" not working (Sorry, the page you're looking for can't be found)

    The Built in SharePoint 2013 Help Menu (?) on our Enterprise Farm for both the sites and Central
    Admin does not work.
    On Central Admin help the error comes back as: "Sorry, the page you're looking for can't be found".
    The site collections Help menu gets the error :
    "Unfortunately, help seems to be broken...
    There aren't any help collections in the current language for the site you're using."
    We have installed on all servers in the farm:
    December 9, 2014 Cumulative Update for SharePoint Server 2013 package (build 15.0.4675.1000)
    as well as the latest SharePoint update KB2768001 1/15/2013.
    I have checked:
    Get-SPHelpCollection
    Title                                                                                              
    Name
    SharePoint Help                                                                                    
    WSSEndUser.1033.15
    SharePoint Foundation 2010                                                                         
    WSSEndUser.1033.12
    Central Administration Help                                                                        
    WSSCentralAdmin.1033.15
    SharePoint Server 2010                                                                             
    OSSEndUser.1033.12
    SharePoint Help                                                                                    
    OSSEndUser.1033.15
    SharePoint Foundation 2010 Central Administration                                                  
    WSSCentralAdmin.1033.12
    Teacher Help                                                                                       
    EDUTEACHER.1033.15
    Central Administration Help                                                                        
    OSSCentralAdmin.1033.15
    Student Help                                                                                       
    EDUSTUDENT.1033.15
    SharePoint Server 2010 Central Administration                                                      
    OSSCentralAdmin.1033.12
    PerformancePoint Dashboard Designer 2010 Help and How-to                                           
    DashboardDesigner.1033.12
    The URL for the site collections is https://servername...../_layouts/15/help.aspx?Lcid=1033&Key=HelpHome&ShowNav=true
    We are only using Default English (US) language packs.
    In the directory of
    Directory of C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\HCCab\1033
    there are cab files.
    There are no pending upgrades on any SharePoint or SQL server, all other SharePoint components are working
    normally.
    Any ideas or suggestions?
    Thanks.
    John
        

    I'm interested in getting the local help to work while this is offline, I saw the following in an article, did you do this and it still does not work for you?
    "However the help won’t show up in
    SharePoint 2013 sites. You need to change the Help Collection item property SharePoint
    Version to15 to
    make it work."

  • 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 -->

  • 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 -->

Maybe you are looking for