[jboss-user] [JBoss Seam] - Re: Remoting with Apache ? a problem

sumitgarg1 do-not-reply at jboss.com
Mon Oct 15 01:20:56 EDT 2007


hi am facing same problem while making application on net bean can any one help?

my jsp



<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ taglib uri="/WEB-INF/tlds/common.tld" prefix="cm"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>




   

    function doit() {
        alert(11);
         var na ='cc';

      Seam.Component.getInstance("myBean").doit(na, doitCallback);
    }

    function doitCallback(result) {
      alert(result);
    }

   
  

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">


    
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        Register New User
    
    
    
        <f:view >
            <h:form >  
                Sdoit

</h:form>
        </f:view>
     




i have made entried in web.xml

 
    <servlet-name>Seam Resource Servlet</servlet-name>
    <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
  

  <servlet-mapping>
    <servlet-name>Seam Resource Servlet</servlet-name>
    <url-pattern>/seam/resource/*</url-pattern>
  </servlet-mapping>


still getting error in browser...............seam is undefined

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095081#4095081

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095081



More information about the jboss-user mailing list