Error in Struts Application, Form Submit

I've developed a simple struts application which allows user to key in inputs thru a form(registration.jsp), submit n display e inputs keyed in in another page(details.jsp).
i'd succesfully integrate e pdk-struts application to portal, but wen i click on 'Submit', my action r not performed, not directed to my details.jsp, neither do it shows any error.
However, one thing i realised is tat wen integrated to portal, e codes for my action r changed:
registration.jsp
<html:form action="/register" focus="name">
after integrated wit Portal, it was translated to:
<form name="registerForm" method="post" action="http://smeagel:7778/portal/page">
<INPUT TYPE="hidden" name="_pageid" value="6,3,6_22" />
<INPUT TYPE="hidden" name="_dad" value="portal" />
<INPUT TYPE="hidden" name="_schema" value="PORTAL" />
<INPUT TYPE="hidden" name="_piref6_108279_6_3_22.strutsAction" value="register.do" />
After Submit button was clicked, i was directed to a new URL, http://smeagel:7778/portal/page
Any solutions??

provider.xml
<?xml version = '1.0' encoding = 'UTF-8' standalone='yes'?>
<?providerDefinition version="3.1"?>
<provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
<session>true</session>
<passAllUrlParams>true</passAllUrlParams>
<portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
<id>1</id>
<name>MyPortlet</name>
<title>- Registration Form -</title>
<description>My Portlet Description</description>
<timeout>40</timeout>
<showEditToPublic>false</showEditToPublic>
<hasAbout>false</hasAbout>
<showEdit>false</showEdit>
<hasHelp>false</hasHelp>
<showEditDefault>false</showEditDefault>
<showDetails>false</showDetails>
<inputParameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
<name>MyParam</name>
<displayName>My Portlet Parameter</displayName>
</inputParameter>
<renderer class="oracle.portal.provider.v2.render.RenderManager">
<renderContainer>true</renderContainer>
<renderCustomize>true</renderCustomize>
<autoRedirect>true</autoRedirect>
<contentType>text/html</contentType>
<showPage>/registration.jsp</showPage>
<showPage class="oracle.portal.provider.v2.render.http.StrutsRenderer">/register.do</showPage>
</renderer>
</portlet>
</provider>
I'd saw some example, which using <defaultAction>, however, wen i put in <defaultAction>/register.do</defaultAction>
i'll have error in my Provider Test Page. Validation Unsuccessful.
Error: Class oracle.portal.provider.v2.render.http.StrutsRenderer has no set or add method for tag "defaultAction"
Is <defaultAction> a necessary tag? Is tat e reason y my application isnt running?

Similar Messages

  • ERROR while devevloping a struts application

    I am new to struts and trying to develop a simplem applicationusing struts,during which i am gettin an expextion of this sort.I have already placed both struts-core 2.2.1 and xcore 2.2.1 in WEB-INF/lib folder.please help
    SEVERE: Exception starting filter struts2
    java.lang.NoClassDefFoundError: org/apache/struts/action/Action
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1960)
         at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:933)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1405)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
         at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:149)
         at com.opensymphony.xwork2.ObjectFactory.getClassInstance(ObjectFactory.java:107)
         at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:410)
         at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:365)
         at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:479)
         at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275)
         at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
         at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)
         at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
         at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)
         at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)
         at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
         at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)
         at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
         at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
         at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3666)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4258)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:980)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:943)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:448)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

    I was able to rectify that error by placing the struts-core-1.3.10.jarinto the WEB-INf/lib folder.
    But now i am gettin an exception durin the run time
    java.lang.NoSuchMethodException: manipulation.AdditionAction.execute()
         java.lang.Class.getMethod(Unknown Source)
         org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.getActionMethod(AnnotationValidationInterceptor.java:75)
         org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:47)
         com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
         com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:133)
         com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
         com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
         com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
         com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
         com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)
         com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
         com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)
         com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)
         com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
         com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
         com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
         com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:142)
         com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:166)
         com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
         com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)
         com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
         com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:190)
         com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)
         com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
         org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:485)
         org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
    my jsp pages are:
    addition.jsp:
    <%@taglib uri="/struts-tags" prefix="html" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Sample Application</title>
    </head>
    <body>
    <html:form action="Add">
    <html:textfield name="number1" label="Number1" />
    <html:textfield name="number2" label="Number2" />
    <html:submit value="Add" />
    </html:form>
    </body>
    </html>
    success.jsp:
    <html>
    <head>
    <title>Sample Struts Display Name</title>
    </head>
    <body>
    <table width="80%" border="0">
    <tr>
    <td>Addition: <%= request.getAttribute("sum") %> !!</td>
    </tr>
    </table>
    </body>
    </html>
    struts-config.xml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
    <struts-config>
    <form-beans>
    <form-bean name="Addform" type="manipulation.Addform"/>
    </form-beans>
    <global-exceptions>
    </global-exceptions>
    <global-forwards>
    <forward name="welcome" path="/Welcome.do"/>
    </global-forwards>
    <action-mappings>
    <action name="Add" class="manipulation.AdditionAction">
    <forward name="success" path="/success.jsp" />
    <forward name="failure" path="/failure.jsp" />
    </action>
    <action path="/Welcome" forward="/welcomeStruts.jsp"/>
    </action-mappings>
    </struts-config>
    Addform.java:
    package manipulation;
    public class Addform extends org.apache.struts.action.ActionForm
         private int number1;
         private int number2;
         private int sum;
         public Addform()
    }public String getSum()
         return("Result:"+sum);
              }public void setSum(int no1,int no2)
         this.number1=no1;
         this.number2=no2;
         sum=no1+no2;
    } public int getnumber1() {
    return number1;
    } public void setNumber1(int number) {
    this.number1 = number;
    } public int getnumber2 (){
    return number2;
    } public void setNumber2(int number) {
    this.number2= number;
    AdditionAction.java:
    package manipulation;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class AdditionAction extends org.apache.struts.action.Action
         private static final String SUCCESS = "success";
    public ActionForward execute(ActionMapping mapping,ActionForm form,
    HttpServletRequest request, HttpServletResponse response)throws Exception {
         int no1=0;
         int no2=0;
    if ( form != null )
    // Use the NameForm to get the request parameters
    Addform formadd = (Addform) form;
    no1 =formadd.getnumber1() ;
    no2=formadd.getnumber2();
    // if no mane supplied Set the target to failure
    request.setAttribute("number1", no1);
    request.setAttribute("number2", no2);
              return (mapping.findForward(SUCCESS));
    please help...
    }

  • Error when running the struts application

    Hi
    i am getting this error when i run my struts application. Do i need to install the xerces parcer and should my local have the ANT. If so how should i confingure ANT
    /JSP/Login.jsp(12,0) Attribute name invalid for tag form according to TLD
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236)
         org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1200)
         org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:821)
         org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2399)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:489)

    Ya I guess everything is right in both the files. Let me paste the contents :-
    WEB.XML
    <!DOCTYPE web-app PUBLIC
         "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
         "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>My Inventory</display-name>
    <!-- Standard Action Servlet Configuration -->
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <!-- Standard Action Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <!-- The Usual Welcome File List -->
    <welcome-file-list>
    <welcome-file>Login.jsp</welcome-file>
    </welcome-file-list>
    <taglib>
    <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.TLD</taglib-location>
    </taglib>
    </web-app>
    STRUTS-CONFIG.xml
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
    "http://struts.apache.org/dtds/struts-config_1_3.dtd">
    <!--
    Default configuration file for examples application.
    Each module also has its own struts-config under: /WEB-INF/$MODULE/
    @version $Revision: 1.9 $ $Date: 2006-12-03 11:32:52 -0600 (Sun, 03 Dec 2006) $
    -->
    <struts-config>
    <form-beans>
    <form-bean name="Loginform" type = "com.myInventory.Loginform"></form-bean>
    </form-beans>
    <global-exceptions/>
    <global-forwards
    <!-- utilize a custom ActionForward as an example only -->
    </global-forwards>
    <action path="/Login" type="com.myInventory.actions.Loginaction" name="Loginform" input="/Login.jsp">
              <forward name="login_target_success" path="/success.jsp"/>
              <forward name="login_target_failure" path="/login.jsp"/>
              </action>
    </action-mappings>
    <message-resources parameter="MessageResources"/>
    </struts-config>

  • Error when running struts application

    I get this error when i try to run my struts application.
    org.apache.jasper.JasperException: /JSP/Login.jsp(13,0) Attribute name invalid for tag form according to TLD
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236)
         org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1200)
         org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:821)
         org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512)
    Can anybody tell me why this is happening :-(

    org.apache.jasper.JasperException: /JSP/Login.jsp(13,0) Attribute name invalid for tag form according to TLDIt means the attribute(s) you have specified in the Custom tag(<html:form/> in your case) is an invalid one. Check here for valid attributes name.
    [http://struts.apache.org/1.2.x/userGuide/struts-html.html#form|http://struts.apache.org/1.2.x/userGuide/struts-html.html#form]

  • Cfform/cfgrid form submit error

    I have a simple grid:
    <cfgrid name="testGrid" format="flash"
    query="getHistory">
    <cfgridcolumn name="idno" header="Employee ID">
    </cfgrid>
    The grid is populated just fine. When I submit the form
    instead of seeing the form variables I am getting the following
    error:
    The submitted cfgrid form field is corrupt (name:
    __CFGRID__NEWFORM__TESTGRID value: __CFGRID__COLUMN__CFGRIDROWINDEX
    __CFGRID__DATA__1__CFGRID__COLUMN__IDNO__CFGRID__DATA__3000080)
    I've changed columns in the query and no difference. The
    error still occurs.
    Any ideas on where this error comes from?
    We are using CFMX 7.02 on a Windows 2000 Server. Query is
    coming from Oracle 8i.
    thanks.
    Mark

    I found the problem. I was calling a custom tag in
    application.cfm. This is a CF5 app being upgraded.
    <cf_inputFilter scopes="form,url" chars="%&;="
    tags="script,object">
    Apparently this breaks the posting action of a Flash Form. I
    removed the code and now life is good again.
    Mark

  • Compilation error in java for struts application.

    Hello,
    I'm a newbie in java and struts, i was trying a simple struts application given in "struts complete reference".This is my code of its Controller class(Action class):-
    package com.jamesholmes.struts;
    import java.util.ArrayList;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public final class SearchAction extends Action
    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    throws Exception
    EmployeeSearchService service = new EmployeeSearchService();
    ArrayList results;
    SearchForm searchForm = (SearchForm) form;
    //Perform employee search based on what criteria was entered.
    String name = searchForm.getName();
    if(name != null && name.trim().length() > 0)
    results = service.searchByName(name);
    else
    results = service.searchBySsNum(searchForm.getSsNum().trim());
    //place search results in SearchForm for access by jsp.
    searchForm.setResults(results);
    //Forward control to this Action's input page.
    return mapping.getInputForward();
    Now problem is when i'm compiling this java file i'm getting error"can not resolve symbol" for the instances i'm creating for SearchForm(view class) and EmployeeSearchService(model class).can any one help me how to resolve this error. I've tried importing those classes explicitly also, but error gets increased this way.

    Tht problem is solved, it was a mistake frm my side in compilation precedure.Anyway, now the real error-After i compiled and created the war file of application, i was running it in tomcat and got this Error, it is i guess a server sprcific error which i am unable to understand., can any one now help me solving this out?????Error is this :-
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NullPointerException
         org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:521)
         org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:436)
         org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:495)
         org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:353)
         org.apache.jsp.index_jsp._jspx_meth_html_link_0(index_jsp.java:96)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:69)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.
    Apache Tomcat/5.0.27

  • Error while deploying struts application in tomcat

    Hi,
    I'm getting the following error when I start Tomcat using while auto-deploying a struts application.
    2005-09-21 15:28:17 - ContextManager: Adding DEFAULT:/cna
    2005-09-21 15:28:18 - Ctx(/cna) : Validating web.xml
    2005-09-21 15:28:18 - Ctx(/cna) : Class not found: org.apache.struts.action.Acti
    onServlet
    2005-09-21 15:28:18 - Ctx(/cna) : Class not found: org.apache.axis.transport.htt
    p.AdminServlet
    In case anyone is aware how to resolve this issue, please help.
    Thanks,
    Roseline

    Hi,
    1] Remove following from server.xml
    <Context path="/SEA" docBase="SEA" debug="0"/>
    2] Paste SEA.WAR (test WAR file) into /webapps of TOMCAT
    3] Start Tomcat Server - This will create SEA folder under webapps
    4] Stop server.
    5] Add following to server.xml
    <Context path="/SEA" docBase="SEA" debug="0"/>
    6] Start Tomcat Server
    7] Access the URL.
    This will work. Somehow Tomcat does not extract war file contents which are mentioned in server.xml.
    I have Apache Tomcat 4.0.3 and faced this problem. The above solution works for it.
    Regards,
    Sandesh
    hi.
    I have put my SEA.WAR (test WAR file) into /webapps of
    TOMCAT.
    I checked the server.xml and put:
         <Context path="/SEA" docBase="SEA" debug="0"/>
    I restarted TOMCAT and tried to execute the file:
         http://localhost:8080/SEA/index.jsp
    But I got error message:
    Apache Tomcat/4.0.3 - HTTP Status 404 -
    /SEA/index.jsp
    What was happenning?
    Anyone can help me?
    Thank you.

  • Error while deploying struts application

    Hi every body,
    I am new for struts application. While i deploying my application, the following error is comming any body give a remedy to me...
    Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: File "/WEB-INF/struts-html.tld" not found
         at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:214)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:174)
         at org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspParseEventListener.java:1170)
         at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:765)
         at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:125)
         at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:255)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:534)
    --------------------------------------------------------------------------------

    Hi every body,
    I am new for struts application. While i deploying my
    application, the following error is comming any body
    give a remedy to me...
    Apache Tomcat/4.0.4 - HTTP Status 500 - Internal
    Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error
    (Internal Server Error) that prevented it from
    fulfilling this request.
    exception
    org.apache.jasper.JasperException: File
    "/WEB-INF/struts-html.tld" not found
    at
    t
    org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibr
    aryInfoImpl.java:214)
    at
    t
    org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibr
    aryInfoImpl.java:174)
    at
    t
    org.apache.jasper.compiler.JspParseEventListener.proce
    ssTaglibDirective(JspParseEventListener.java:1170)
    at
    t
    org.apache.jasper.compiler.JspParseEventListener.handl
    eDirective(JspParseEventListener.java:765)
    at
    t
    org.apache.jasper.compiler.DelegatingListener.handleDi
    rective(DelegatingListener.java:125)
    at
    t
    org.apache.jasper.compiler.Parser$Directive.accept(Par
    ser.java:255)
    at
    t
    org.apache.jasper.compiler.Parser.parse(Parser.java:11
    45)
    at
    t
    org.apache.jasper.compiler.Parser.parse(Parser.java:11
    03)
    at
    t
    org.apache.jasper.compiler.Parser.parse(Parser.java:10
    99)
    at
    t
    org.apache.jasper.compiler.ParserController.parse(Pars
    erController.java:214)
    at
    t
    org.apache.jasper.compiler.Compiler.compile(Compiler.j
    ava:210)
    at
    t
    org.apache.jasper.servlet.JspServlet.loadJSP(JspServle
    t.java:548)
    at
    t
    org.apache.jasper.servlet.JspServlet$JspServletWrapper
    .loadIfNecessary(JspServlet.java:176)
    at
    t
    org.apache.jasper.servlet.JspServlet$JspServletWrapper
    .service(JspServlet.java:188)
    at
    t
    org.apache.jasper.servlet.JspServlet.serviceJspFile(Js
    pServlet.java:381)
    at
    t
    org.apache.jasper.servlet.JspServlet.service(JspServle
    t.java:473)
    at
    t
    javax.servlet.http.HttpServlet.service(HttpServlet.jav
    a:853)
    at
    t
    org.apache.catalina.core.ApplicationFilterChain.intern
    alDoFilter(ApplicationFilterChain.java:247)
    at
    t
    org.apache.catalina.core.ApplicationFilterChain.doFilt
    er(ApplicationFilterChain.java:193)
    at
    t
    org.apache.catalina.core.StandardWrapperValve.invoke(S
    tandardWrapperValve.java:243)
    at
    t
    org.apache.catalina.core.StandardPipeline.invokeNext(S
    tandardPipeline.java:566)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:472)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:943)
    at
    t
    org.apache.catalina.core.StandardContextValve.invoke(S
    tandardContextValve.java:190)
    at
    t
    org.apache.catalina.core.StandardPipeline.invokeNext(S
    tandardPipeline.java:566)
    at
    t
    org.apache.catalina.valves.CertificatesValve.invoke(Ce
    rtificatesValve.java:246)
    at
    t
    org.apache.catalina.core.StandardPipeline.invokeNext(S
    tandardPipeline.java:564)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:472)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:943)
    at
    t
    org.apache.catalina.core.StandardContext.invoke(Standa
    rdContext.java:2347)
    at
    t
    org.apache.catalina.core.StandardHostValve.invoke(Stan
    dardHostValve.java:180)
    at
    t
    org.apache.catalina.core.StandardPipeline.invokeNext(S
    tandardPipeline.java:566)
    at
    t
    org.apache.catalina.valves.ErrorDispatcherValve.invoke
    (ErrorDispatcherValve.java:170)
    at
    t
    org.apache.catalina.core.StandardPipeline.invokeNext(S
    tandardPipeline.java:564)
    at
    t
    org.apache.catalina.valves.ErrorReportValve.invoke(Err
    orReportValve.java:170)
    at
    t
    org.apache.catalina.core.StandardPipeline.invokeNext(S
    tandardPipeline.java:564)
    at
    t
    org.apache.catalina.valves.AccessLogValve.invoke(Acces
    sLogValve.java:468)
    at
    t
    org.apache.catalina.core.StandardPipeline.invokeNext(S
    tandardPipeline.java:564)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:472)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:943)
    at
    t
    org.apache.catalina.core.StandardEngineValve.invoke(St
    andardEngineValve.java:174)
    at
    t
    org.apache.catalina.core.StandardPipeline.invokeNext(S
    tandardPipeline.java:566)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:472)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:943)
    at
    t
    org.apache.catalina.connector.http.HttpProcessor.proce
    ss(HttpProcessor.java:1027)
    at
    t
    org.apache.catalina.connector.http.HttpProcessor.run(H
    ttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:534)
    --------------------------i am try to run struts application. but it shows following error
    org.apache.jasper.JasperException: File "/WEB-INF/struts-html.tld" not found
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

  • Application error while generating PDF form

    Hello there,
    I am getting the message "Application error while generating PDF form" and when you hover it has additional information Message Class HREIC_APPL - Message number 258.
    I get this upon doing the following steps:
    1. Enter SAP R3, enter HREIC on the transaction code input.
    2. Enter EIC, Activity Search. Searched for an Activity, selected it and click the "PRINT" button.
    3. After clicking the PRINT button, I get the error message "Application error while generating PDF form".
    Installed this on development box, did the same configuration in test system, but still I get this error. ADS Configuration is working fine and configured fine.
    Is there anything else that is needed to be checked? like Ports, Firewalls, etc?
    Thanks a lot.

    Be sure that the RFC name is "ADS" and not anything else.
    Thanks.

  • I am facing a problem while working in Muse... The issue is I cannot delete a page from my plan, when I am trying to delete it showing an error and the application shuts down. I am working on an emergency project which I got to submit it tomorrow I hope y

    I am facing a problem while working in Muse... The issue is I cannot delete a page from my plan, when I am trying to delete it showing an error and the application shuts down. I am working on an emergency project which I got to submit it tomorrow I hope you will find a solution for the same.Help with using Adobe Muse CC

    Thanks,
    I have tried with a new site it's working perfectly.
    See the screenshot of the error.
    Thanks for your support Rohit

  • Acrobat 9: Error when PDF form submit with file attachment

    Hi all,
    Hope you can provide some help with my PDF form submit issue. I am getting this error "There is no PDDoc associated with this CosDoc." in Acrobat 9 (Reader and Pro) when I try to submit a PDF form with a file attachment field (the file is specified). The same PDF form works fine in Acrobat 7 or 8 (Reader and Pro) with file attachment.
    If no file attachment is specified (user did not select a file) then the PDF form submits fine in acrobat 9. The form data submission format is in FDF. Same problem if I change to XFDF.
    There are no differences in the problem if the PDF form is created in Acrobat 7 or Acrobat 9, the same submit issue exists in Acrobat 9 but not in the older Acrobat versions.
    Is this a known issue and are there any workarounds/solutions?
    Thanks.

    Sounds like a bug to me. Please report it: http://www.adobe.com/support/feature.html
    George

  • Error in simple struts application

    Hi friends,
    Happy to meet again. Please help me out from this situation which kills me for the past 1 week. While i try to deploy my first struts application through eclipse 3.2 with jdk1.5 and tomcat 5.5.25 and struts 2.0.9 i'm getting this error. what is this regarding.
    FYI
    I'm just using two text boxes and trying to get those in next page....
    The error goes like this
    exception
    org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.html.MessagesTei
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:281)
         org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:423)
         org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:249)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:163)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:424)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:493)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1557)
         org.apache.jasper.compiler.Parser.parse(Parser.java:127)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:212)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:156)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1362)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1208)
         org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:420)
         org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:249)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:163)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:424)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:493)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1557)
         org.apache.jasper.compiler.Parser.parse(Parser.java:127)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:212)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:156)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

    See http://forum.java.sun.com/thread.jspa?messageID=3866745&tstart=0

  • Please debug my javascript (error with form.submit())

    help!! help!! i have used form.submit() where form = document.forms[0] but this time it gives me an error, please help, i will give you $10
    <html>
    <head>
    <script>
    <!--
    var sw;//switch
    sw=true;//default true
    var str;//string used if invalid data
    //validates all required form fields
    function validate(form){
    sw=true;//default true
    str="The following errors occurred while processing...\n";
    form = document.forms[0];
    //check name
    if(isWhitespace(form.fullName.value)){
    str += "-You must enter your Full Name\n";
    sw=false;
    }else
    if(!isAlphabetic(form.fullName.value)){
    str += "-Your Full Name must consist of only letters\n";
    sw=false;
    //check company name
    if(isWhitespace(form.compName.value)){
    str += "-You must enter your Company Name\n";
    sw=false;
    //check address
    if(isWhitespace(form.add1.value)){
    str += "-You must enter your Address\n";
    sw=false;
    //check city
    if(isWhitespace(form.city.value)){
    str += "-You must enter your City\n";
    sw=false;
    //check state
    if(isWhitespace(form.state.value)){
    str += "-You must enter your State\n";
    sw=false;
    //check zip
    if(isWhitespace(form.zip.value)){
    str += "-You must enter your Zip Code\n";
    sw=false;
    }else
    if(!isZIPCode(form.zip.value)){
    str += "-Your Zip Code must be digits only\n";
    sw=false;
    //check email
    if(isWhitespace(form.email.value)){
    str += "-You must enter your E-Mail\n";
    sw=false;
    }else
    if(!isEmail(form.email.value)){
    str += "-You must have a valid E-Mail address\n";
    sw=false;
    //check dayPhoneNumber
    if(isWhitespace(form.dayPhone.value)){
    str += "-You must enter your Day Time Phone Number\n";
    sw=false;
    }else
    if(form.dayPhone.value.length < 10 || form.dayPhone.value.length > 14 )
    str += "-You must enter a valid Day Time Phone Number (XXX)XXX-XXXX\n";
    sw=false;
    //check evePhoneNumber
    if(isWhitespace(form.evePhone.value)){
    str += "-You must enter your Evening Phone Number\n";
    sw=false;
    }else
    if(form.evePhone.value.length < 10 || form.evePhone.value.length > 14 )
    str += "-You must enter a valid Evening Phone Number (XXX)XXX-XXXX\n";
    sw=false;
    if(sw)
    form.submit();
    else
    alert(str);
    }//end validate
    // whitespace characters
    var whitespace = " \t\n\r";
    // non-digit characters which are allowed in ZIP Codes
    var ZIPCodeDelimiters = "-";
    // our preferred delimiter for reformatting ZIP Codes
    var ZIPCodeDelimeter = "-";
    // U.S. ZIP codes have 5 or 9 digits.
    // They are formatted as 12345 or 12345-6789.
    var digitsInZIPCode1 = 5;
    var digitsInZIPCode2 = 9;
    var defaultEmptyOK = false;
    // Returns true if string s is empty or
    // whitespace characters only.
    function isWhitespace (s)
    {   var i;
    // Is s empty?
    if (isEmpty(s)) return true;
    // Search through string's characters one by one
    // until we find a non-whitespace character.
    // When we do, return false; if we don't, return true.
    for (i = 0; i < s.length; i++)
    // Check that current character isn't whitespace.
    var c = s.charAt(i);
    if (whitespace.indexOf(c) == -1) return false;
    // All characters are whitespace.
    return true;
    // Check whether string s is empty.
    function isEmpty(s)
    {   return ((s == null) || (s.length == 0))
    // isAlphabetic (STRING s [, BOOLEAN emptyOK])
    // Returns true if string s is English letters
    // (A .. Z, a..z) only.
    // For explanation of optional argument emptyOK,
    // see comments of function isInteger.
    // NOTE: Need i18n version to support European characters.
    // This could be tricky due to different character
    // sets and orderings for various languages and platforms.
    function isAlphabetic (s)
    {   var i;
    if (isEmpty(s))
    if (isAlphabetic.arguments.length == 1) return defaultEmptyOK;
    else return (isAlphabetic.arguments[1] == true);
    // Search through string's characters one by one
    // until we find a non-alphabetic character.
    // When we do, return false; if we don't, return true.
    for (i = 0; i < s.length; i++)
    // Check that current character is letter.
    var c = s.charAt(i);
    if (!isLetter(c))
    return false;
    // All characters are letters.
    return true;
    // Returns true if character c is an English letter
    // (A .. Z, a..z).
    // NOTE: Need i18n version to support European characters.
    // This could be tricky due to different character
    // sets and orderings for various languages and platforms.
    function isLetter (c)
    {   return ( ((c >= "a") && (c <= "z")) || ((c >= "A") && (c <= "Z")) )
    // isZIPCode (STRING s [, BOOLEAN emptyOK])
    // isZIPCode returns true if string s is a valid
    // U.S. ZIP code. Must be 5 or 9 digits only.
    // NOTE: Strip out any delimiters (spaces, hyphens, etc.)
    // from string s before calling this function.
    // For explanation of optional argument emptyOK,
    // see comments of function isInteger.
    function isZIPCode (s)
    {  if (isEmpty(s))
    if (isZIPCode.arguments.length == 1) return defaultEmptyOK;
    else return (isZIPCode.arguments[1] == true);
    return (isInteger(s) &&
    ((s.length == digitsInZIPCode1) ||
    (s.length == digitsInZIPCode2)))
    // isEmail (STRING s [, BOOLEAN emptyOK])
    // Email address must be of form [email protected] -- in other words:
    // * there must be at least one character before the @
    // * there must be at least one character before and after the .
    // * the characters @ and . are both required
    // For explanation of optional argument emptyOK,
    // see comments of function isInteger.
    function isEmail (s)
    {   if (isEmpty(s))
    if (isEmail.arguments.length == 1) return defaultEmptyOK;
    else return (isEmail.arguments[1] == true);
    // is s whitespace?
    if (isWhitespace(s)) return false;
    // there must be >= 1 character before @, so we
    // start looking at character position 1
    // (i.e. second character)
    var i = 1;
    var sLength = s.length;
    // look for @
    while ((i < sLength) && (s.charAt(i) != "@"))
    { i++
    if ((i >= sLength) || (s.charAt(i) != "@")) return false;
    else i += 2;
    // look for .
    while ((i < sLength) && (s.charAt(i) != "."))
    { i++
    // there must be at least one character after the .
    if ((i >= sLength - 1) || (s.charAt(i) != ".")) return false;
    else return true;
    // isInteger (STRING s [, BOOLEAN emptyOK])
    // Returns true if all characters in string s are numbers.
    // Accepts non-signed integers only. Does not accept floating
    // point, exponential notation, etc.
    // We don't use parseInt because that would accept a string
    // with trailing non-numeric characters.
    // By default, returns defaultEmptyOK if s is empty.
    // There is an optional second argument called emptyOK.
    // emptyOK is used to override for a single function call
    // the default behavior which is specified globally by
    // defaultEmptyOK.
    // If emptyOK is false (or any value other than true),
    // the function will return false if s is empty.
    // If emptyOK is true, the function will return true if s is empty.
    // EXAMPLE FUNCTION CALL: RESULT:
    // isInteger ("5") true
    // isInteger ("") defaultEmptyOK
    // isInteger ("-5") false
    // isInteger ("", true) true
    // isInteger ("", false) false
    // isInteger ("5", false) true
    function isInteger (s)
    {   var i;
    if (isEmpty(s))
    if (isInteger.arguments.length == 1) return defaultEmptyOK;
    else return (isInteger.arguments[1] == true);
    // Search through string's characters one by one
    // until we find a non-numeric character.
    // When we do, return false; if we don't, return true.
    for (i = 0; i < s.length; i++)
    // Check that current character is number.
    var c = s.charAt(i);
    if (!isDigit(c)) return false;
    // All characters are numbers.
    return true;
    // Returns true if character c is a digit
    // (0 .. 9).
    function isDigit (c)
    {   return ((c >= "0") && (c <= "9"))
    //-->
    </script>
    <body>
    <form method="post" enctype="text/plain" action="mailto:[email protected]">
    <table border="0" bgcolor="yellow">
    <tr>
    <td width="150">Name*</td>
    <td width="250"><input type="text" size="30" maxlength="60" name="fullName"></td>
    </tr>
    <tr>
    <td width="150">Company Name*</td>
    <td width="250"><input type="text" size="30" maxlength="50" name="compName"></td>
    </tr>
    <tr>
    <td width="150">Address- Line1* </td>
    <td width="250"><input type="text" size="30" maxlength="50" name="add1"></td>
    </tr>
    <tr>
    <td width="150">Address- Line 2</td>
    <td width="250"><input type="text" size="30" maxlength="50" name="add2"></td>
    </tr>
    <tr>
    <td width="150">City*</td>
    <td width="250"><input type="text" size="15" maxlength="30" name="city"></td>
    </tr>
    <tr>
    <td width="150">State*</td>
    <td width="250"><input type="text" size="10" maxlength="25" name="state"></td>
    </tr>
    <tr>
    <td width="150">Zip Code*</td>
    <td width="250"><input type="text" size="5" maxlength="10" name="zip"></td>
    </tr>
    <tr>
    <td width="150">E-mail*</td>
    <td width="250"><input type="text" size="30" maxlength="50" name="email"></td>
    </tr>
    <tr>
    <td width="150">Day Phone*</td>
    <td width="250"><input type="text" size="15" maxlength="25" name="dayPhone"></td>
    </tr>
    <tr>
    <td width="150">Evening Phone*</td>
    <td width="250"><input type="text" size="15" maxlength="25" name="evePhone"></td>
    </tr>
    <tr>
    <td width="150">Fax Number</td>
    <td width="250"><input type="text" size="15" maxlength="25" name="fax"></td>
    </tr>
    </table>
    <br>
    <table>
    <tr><td><input type="button" value="next" size="20" name="submit" onClick="validate(this.form)"></td></tr>
    </table>
    </form>
    </body>
    </html>

    With this changes your program works:
    function validate(){
    if(sw)
    return true;
    else {
    alert(str);
    return false;}
    <form method="post" enctype="text/plain" action="mailto:[email protected]" onSubmit:"return validate()">
    <tr><td><input type="submit" value="next" size="20" name="submit"></td></tr>
    (also, note that you should advice that you need 5 digits in the ZIP field.
    Fill the field with 3 digits to see what I mean).
    �am �am duke duke duke :) dollarssss

  • Common errors that occur when doing struts application

    hello friends,
    I am attending an interview, can any one help me in giving common errors that occurs in struts application.

    hello friends,
    I am attending an interview, can any one help me in giving common errors that occurs in struts application.

  • Console error while deploying a struts application..

    I am getting following exception while deploying a struts application:-
    javax.servlet.ServletException: org/apache/commons/logging/LogFactory
         at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:884)
         at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:848)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:787)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3252)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3197)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3174)
         at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:5647)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:869)
         at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2022)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2063)
         at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2592)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2515)
         at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2317)
         at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2399)
         at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2311)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2479)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    please help me out.

    The ServletException is just a wrapper exception which informs about an underlying failure. When interpreting stacktraces,the bottommost root cause parts is the most important part. I assume that it's just a java.lang.ClassNotFoundException on org/apache/commons/logging/LogFactory. In that case, the exception is self-explaining enough. The mentioned class is missing in the classpath. The solution is also obvious: add the mentioned class (or at least, the JAR file with the mentioned class) to the classpath and you're fine. As the package name already hints, you can download it at [http://commons.apache.org/logging].
    For future java.lang.* exceptions please consult 'New to Java' forum. This is unrelated to Java Servlet.

Maybe you are looking for

  • Can't delete photos from camera roll

    I took several photos over the weekend and downloaded them to iPhoto last night. I chose the 'delete photos' option at the end, but today some of the photos were still there. I synced my iPhone just a few minutes ago, and iPhoto offered to download t

  • How to get the last(latest or previous) working day

    hi, using sysdate we may be getting today's date and sysdate-1 will be fetching the yesterday's date. but if sysdate-1 turns to be sunday or a holiday then we need to get the previous date to that holiday date .THe list of holidays are in lt_list_hol

  • Hyper-V NAT networking

    Hi everyone.. I'm educating myself within IT and I'm going to school at the moment. I've got the task of greating a virtual environment with a Windows Server 2012 and a client with a OS of my own choice (Win7 or 8). I'm using Hyper-V and wanna set up

  • Passing dynamic parameters to an IR Report

    Hello, We have installed Hyperion BI+ 9.3.1. We are in the process of evaluating the development of IR reports which would have a requirement to have parameters passed dynamically. For example, we'd be interested in passing a date as a parameter whic

  • Install and test of Adobe Air on Mac OS X did not go well

    I downloaded and installed Adobe Air onto my Mac OS X 10.5.5 machine. I then downloaded about six different Adobe Air apps, and tried to start each one in the usual way (double clicking on them). The error message I got in each case is the following: